nilmbuntu/README.md

45 lines
978 B
Markdown
Raw Permalink Normal View History

2020-08-07 12:29:31 -04:00
Nilmbuntu
=========
2016-06-27 17:01:49 -04:00
Tools to customize an Ubuntu Live CD. Many parts of this will end up
being version-specific. The host machine must be running systemd,
since the image is executed inside a systemd-nspawn container.
2013-08-17 22:28:49 -04:00
2020-08-07 12:29:31 -04:00
Set up host machine:
2013-08-17 22:28:49 -04:00
2020-08-07 12:29:31 -04:00
sudo apt install squashfs-tools xorriso isolinux systemd-container iptables
sudo systemctl start systemd-networkd
2013-08-17 22:28:49 -04:00
2016-06-27 17:01:49 -04:00
Choose a config:
2013-08-17 22:28:49 -04:00
2020-08-07 12:29:31 -04:00
export BUILD_CONFIG=20.04.1
2013-08-17 22:28:49 -04:00
2016-06-27 17:01:49 -04:00
Download and extract the original ISO:
2013-08-17 22:28:49 -04:00
2020-08-07 12:29:31 -04:00
./extractiso.sh
2013-08-17 22:28:49 -04:00
2016-06-27 17:01:49 -04:00
Apply customizations, both to the outer ISO and the inner image.
This will also run customizer-inner.sh inside a container:
2013-08-19 14:25:05 -04:00
2020-08-07 12:29:31 -04:00
./customize.sh
2013-08-19 14:25:05 -04:00
2016-06-27 17:01:49 -04:00
(Optional) Run and enter a shell in the container, for manual customization:
2020-08-07 12:29:31 -04:00
./enter.sh
2016-06-27 17:01:49 -04:00
Build the new ISO:
2020-08-07 12:29:31 -04:00
./buildiso.sh
2016-06-27 17:01:49 -04:00
Boot the ISO in QEMU with a blank HDD, to test and install:
2020-08-07 12:29:31 -04:00
./run.sh -c
2016-06-27 17:01:49 -04:00
Boot QEMU with the same HDD image as above, to test an "installed" system:
2020-08-07 12:29:31 -04:00
./run.sh -d
2016-06-27 17:01:49 -04:00
Remove everything but the ISOs:
2020-08-07 12:29:31 -04:00
./cleanup.sh