fix(mkimg): systemd-firstboot conf needn't use chroot

Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
This commit is contained in:
Coelacanthus 2022-07-28 15:07:13 +08:00
parent 75c5f99571
commit 11246769a0
No known key found for this signature in database
GPG key ID: E35C89E45867AE35

View file

@ -11,7 +11,7 @@ toggle-systemd-firstboot() {
msg2 "Toggle systemd-firstboot..."
sudo rm ./qcow2/etc/{machine-id,localtime,hostname,shadow,locale.conf}
sudo arch-chroot qcow2 mkdir -p /etc/systemd/system/systemd-firstboot.service.d
sudo arch-chroot qcow2 cat << EOF | tee /etc/systemd/system/systemd-firstboot.service.d/install.conf
cat << EOF | sudo tee qcow2/etc/systemd/system/systemd-firstboot.service.d/install.conf
[Service]
ExecStart=
ExecStart=/usr/bin/systemd-firstboot --prompt --force