refactor(mkimg): using --force for systemd-firstboot

Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
This commit is contained in:
Coelacanthus 2022-05-24 17:38:06 +08:00
parent 1e005718e9
commit f6c057bb16
No known key found for this signature in database
GPG key ID: E35C89E45867AE35

View file

@ -13,7 +13,7 @@ toggle-systemd-firstboot() {
sudo arch-chroot qcow2 cat << EOF | tee /etc/systemd/system/systemd-firstboot.service.d/install.conf
[Service]
ExecStart=
ExecStart=/usr/bin/systemd-firstboot --prompt
ExecStart=/usr/bin/systemd-firstboot --prompt --force
[Install]
WantedBy=sysinit.target
@ -118,10 +118,9 @@ yes y | sudo pacman \
--sysroot ./rootfs \
--sync --clean --clean
# Using fixed password for systemd-firstboot don't ask password for unknown reason
# https://github.com/CoelacanthusHex/archriscv-scriptlet/issues/1
#toggle-systemd-firstboot
use-fixed-password
toggle-systemd-firstboot
#use-fixed-password
msg2 "Unmount..."
sudo umount qcow2