From 8bda140056ae0d217bfaa4b3b53fa4aa8a8f9770 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Tue, 24 Sep 2019 19:35:36 +0200 Subject: [PATCH] Created Autorun on Arch Live CD (markdown) --- Autorun-on-Arch-Live-CD.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Autorun-on-Arch-Live-CD.md diff --git a/Autorun-on-Arch-Live-CD.md b/Autorun-on-Arch-Live-CD.md new file mode 100644 index 0000000..a4e9682 --- /dev/null +++ b/Autorun-on-Arch-Live-CD.md @@ -0,0 +1,24 @@ +This guides you on how to create a ISO that has Python and can run the arch installed in **unattended mode.**
+We'll need to reconfigure the **releng** profile after it's been copied, 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`. + + # cd ~/archlive + # echo -e "git\npython\npython-psutil" >> packages.x86_64 + # 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 --default"' >> ./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: + + # rm -v work*; ./build.sh -v + +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).