refactor(mkimg): remove hack for systemd-firstboot since 252 has released

Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
This commit is contained in:
Celeste Liu 2022-11-24 13:21:47 +08:00
parent e5043640bd
commit 850d7c93e3
No known key found for this signature in database
GPG key ID: E35C89E45867AE35

9
mkimg
View file

@ -59,15 +59,6 @@ parse-args() {
toggle-systemd-firstboot() {
msg2 "Toggle systemd-firstboot..."
sudo rm -f qcow2/etc/{machine-id,hostname,shadow}
sudo mkdir -p qcow2/etc/systemd/system/systemd-firstboot.service.d
cat << EOF | sudo tee qcow2/etc/systemd/system/systemd-firstboot.service.d/install.conf
[Service]
ExecStart=
ExecStart=/usr/bin/systemd-firstboot --prompt --force
[Install]
WantedBy=sysinit.target
EOF
sudo arch-chroot qcow2 systemctl enable systemd-firstboot.service
}