No description
- Shell 83.3%
- Makefile 16.7%
A golden archlinux vm image build with mkosi(1).
Usage
make clean build
# install image to /var/lib/machines as RO image.
sudo make install
# clone and start vm via machinectl (nspawn)
machinectl clone vm testvm
machinectl start testvm
# start vm as qemu (kvm)
sudo ./qemu.sh
Tricks
# change/customize the image before boot
sudo systemd-firstboot --force --prompt --image=PATH
# change root password inside image
sudo systemd-firstboot --force --prompt-root-password --image=PATH
# mount an $image to $dir
sudo systemd-dissect -M IMAGE DIR
Notes
- 2026年07月01日 atm esp partition is mounted at /boot (setup via files/scripts in mkosi.{skeleton,finalize.d}). systemd autom. mounts esp (identified via part UUID) to /boot and mkinitcpio is configured by default to /boot as well.
- https://github.com/systemd/systemd/issues/3847 :overlay :hack