Destroyed Autorun on Arch Live CD (markdown)
parent
fcd4cd363e
commit
b6894a35fd
|
|
@ -1,41 +0,0 @@
|
|||
This guides you on how to create a ISO that auto-starts archinstall.<br>
|
||||
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`.<br>
|
||||
*(some packages like `git` and `python-systemd` will be optional in the future)*
|
||||
```
|
||||
# cd ~/archlive
|
||||
# cat <<EOF >> packages.x86_64
|
||||
git
|
||||
python
|
||||
python-psutil
|
||||
python-systemd
|
||||
python-pygeoip
|
||||
geoip-database
|
||||
which
|
||||
EOF
|
||||
# cat <<EOF >> ./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.
|
||||
Loading…
Reference in New Issue