refactor(mkimg): remove hack for systemd-firstboot since 252 has released
Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
This commit is contained in:
parent
e5043640bd
commit
850d7c93e3
1 changed files with 0 additions and 9 deletions
9
mkimg
9
mkimg
|
@ -59,15 +59,6 @@ parse-args() {
|
||||||
toggle-systemd-firstboot() {
|
toggle-systemd-firstboot() {
|
||||||
msg2 "Toggle systemd-firstboot..."
|
msg2 "Toggle systemd-firstboot..."
|
||||||
sudo rm -f qcow2/etc/{machine-id,hostname,shadow}
|
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
|
sudo arch-chroot qcow2 systemctl enable systemd-firstboot.service
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue