Add test script using QEMU

This commit is contained in:
2024-04-22 14:16:40 +02:00
parent 147866ca69
commit 49a7762e6c
2 changed files with 274 additions and 5 deletions

View File

@@ -115,11 +115,14 @@ EOF
# ExecStartPost=/bin/rmdir /etc/systemd/system/getty@tty1.service.d/
# Run
cat << EOF > /root/.bash_profile
if /var/lib/dotfiles/install.sh ; then
rm -f /root/.bash_profile
reboot
fi
cat << 'EOF' > /root/.bash_profile
if [[ "\$(tty)" == "/dev/tty1" ]] ; then
rm -rf /etc/systemd/system/getty@tty1.service.d/
if /var/lib/dotfiles/install.sh ; then
rm -f /root/.bash_profile
reboot
fi
fi
EOF
CHROOTSCRIPT