From b6894a35fd2e22d0627de77ef98e8e49f48da7d5 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 13 Aug 2020 08:17:54 +0200 Subject: [PATCH] Destroyed Autorun on Arch Live CD (markdown) --- Autorun-on-Arch-Live-CD.md | 41 -------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 Autorun-on-Arch-Live-CD.md diff --git a/Autorun-on-Arch-Live-CD.md b/Autorun-on-Arch-Live-CD.md deleted file mode 100644 index 5bdbb26..0000000 --- a/Autorun-on-Arch-Live-CD.md +++ /dev/null @@ -1,41 +0,0 @@ -This guides you on how to create a ISO that auto-starts archinstall.
-We'll base the ISO off the [releng](https://wiki.archlinux.org/index.php/Archiso#Setup) profile, to include Python etc. - -To do so, we need to add some packages to `packages.x86_64` and add some commands to `customize_airootfs.sh`.
-*(some packages like `git` and `python-systemd` will be optional in the future)* -``` -# cd ~/archlive -# cat <> packages.x86_64 -git -python -python-psutil -python-systemd -python-pygeoip -geoip-database -which -EOF -# cat <> ./airootfs/root/customize_airootfs.sh -cd /root -git clone https://github.com/Torxed/archinstall.git -chmod +x ~/archinstall/archinstall.py -EOF -# mkdir ./airootfs/etc/skel -# echo ''[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && sh -c "~/archinstall/archinstall.py"' >> ./airootfs/etc/skel/.zprofile -``` - -> Note: `~/archlive` might be different on your system, see [ArchISO#Setup](https://wiki.archlinux.org/index.php/archiso#Setup) for more info. - -After all those commands are done, you can go ahead and run *(Note that both commands are run as root, or sudo if you will)*: - - # rm -v work*; ./build.sh -v - -> Note: Don't forget the `-v` flag, otherwise the build script can fail silently in the background and no ISO gets produced. - -When the `build.sh` script finishes, an ISO named `archlinux-YYYY.MM.DD-PLATFORM.iso` gets produced in `~/archlive/out` - -Whenever this live-cd boots, from here on now - it'll run `archinstall.py` and attempt to unattendely install a default Arch Linux base OS with `base base-devel` as packages. -Or - if successfull - a MAC-address matches a profile at [/deployments](https://github.com/Torxed/archinstall/tree/master/deployments) for the machine to be installed. - -> **CAUTION**: If no parameters are given, **it will devour the first disk in your system** (Usually `/dev/sda`, `/dev/nvme0n1` etc). - -> Note: If you get random building errors, update your packages and reboot the computer as a first step of remediation.