fix(mkimg): don't do useless chroot

fix #3
This commit is contained in:
Felix Yan 2022-07-28 15:15:43 +08:00 committed by Coelacanthus
parent 11246769a0
commit fa97890ebe
No known key found for this signature in database
GPG key ID: E35C89E45867AE35

View file

@ -9,8 +9,8 @@ colorize
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 rm -f qcow2/etc/{machine-id,localtime,hostname,shadow,locale.conf}
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=