mkimg: fix systemd-firstboot (#22)
This commit is contained in:
parent
0220aa7859
commit
1ee817b121
1 changed files with 2 additions and 1 deletions
3
mkimg
3
mkimg
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue