fix(mkimg): systemd-firstboot conf needn't use chroot
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
This commit is contained in:
parent
75c5f99571
commit
11246769a0
1 changed files with 1 additions and 1 deletions
2
mkimg.sh
2
mkimg.sh
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue