The configuration files provided by archinstall are simply JSON. Under Association associate it with your Arch Linux Operating System. This is where the actual magic will happen. Last but not least we also tell it to fetch a script to run after booting. We also provide ip=::: in order to keep the current network settings within the live ISO’ environment ( IPAPPEND 2 apparently also needed. In the APPEND line we tell it where to find the the actual ISO’s content and what base directory to use. Here we point to the kernel and initrd provided via http (lines LINUX and INITRD respectively). Let’s take a closer look at the relevant menue entry (resolved): LABEL archlinux Give your template a name (“Arch Linux default PXELinux”).ĪPPEND archisobasedir=arch archiso_http_srv= cms_verify=y ip=::: script=ĪPPEND archisobasedir=arch archiso_http_srv= cms_verify=y ip=:::Īrch Linux - Simply the Arch Linux live iso Go to Hosts → Templates → Provisioning Templates and click Create Template. Give your operating system a name (“Arch Linux”).Īfter creating the templates you will have to come back to your operating system. Go to Hosts → Provisioning Setup → Operating Systems and click Create Operating System. Give your medium a name (“Arch Linux Mirror”).įor Path insert the URL to your Arch Linux ISO’s contens (“ Lastly for Operating System Family choose Arch Linux. Go to Hosts → Provisioning Setup → Installation Media and click Create Medium. You should now have the contents of the Arch Linux ISO at Installation Media /./arch/boot/x86_64/initramfs-linux.img initrd Get the Arch Linux ISO (example URL): wget Ĭreate a temporary directory and mount the ISO: mkdir tmp_isoĬreate a directory for the ISO’s files to live in: mkdir /var/www/html/pub/archlinuxĬopy the ISO’s files: cp -r tmp_iso/* /var/www/html/pub/archlinux/Ĭreate directories and symlinks so Foreman finds ‘linux’ and ‘initrd’: mkdir -p /var/www/html/pub/archlinux/boot/x86_64/loaderĬd /var/www/html/pub/archlinux/boot/x86_64/loader/ Provisioning script ( Arch Linux default).PXELinux template ( Arch Linux default PXELinux).adjust kernel parameters to run a provision script.provide the Arch Linux ISO’s files via http.For that reason we need to adjust a few things after the script has run (setting passwords for example). The archinstall script is not mature enough (currently). We also need to adjust where Arch Linux can find the actual ISO files. It will be provided via http.įor this we will also use some symlinks in order to point Foreman to the correct path. The next thing we need is a way to start the live ISO’s kernel. Those configuration files can be baked into partition tables and provisioning scripts. This way we can use host specific information within the archinstall script (hostname, etc.).Īrchinstall can save your manually provided configuration to files which you can then use to run the script non-interactively. You can point the parameter - that determines which script to run at boot - to a URL → e.g. It does however offer the ability to run a script when booting into the live ISO.Īrch Linux also offers the archinstall script, which can be used to install the system either interactively or non-interactively. RequirementsĪrch Linux does not provide anything similar to preseed or autoyast. TLDRīut the scripts used still need some love. So please bear with me and my code style. I am not deep into ERB or the Foreman ecosystem itself. Since I am a pretty big fan of A) automation and B) Arch Linux I instantly tried to integrate Arch. I am pretty new to the Foreman project and was just recently introduced to it. A Guide To Install Arch Linux Using Foreman
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |