mkimg: fix systemd-firstboot (#22)

This commit is contained in:
Felix Yan 2024-10-02 16:05:47 +03:00 committed by GitHub
parent 0220aa7859
commit 1ee817b121
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

3
mkimg
View file

@ -77,7 +77,8 @@ parse-args() {
toggle-systemd-firstboot() {
msg2 "Toggle systemd-firstboot..."
sudo rm -f mnt/etc/{machine-id,hostname,shadow}
sudo systemd-nspawn -D mnt systemctl enable systemd-firstboot.service
# Mask Arch filesystem's factory to avoid the removed shadow file being copied over
sudo ln -s /dev/null mnt/etc/tmpfiles.d/arch.conf
}
use-fixed-password() {