diff options
author | Marc Zyngier <maz@kernel.org> | 2019-08-18 12:34:55 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2019-08-18 12:34:55 +0100 |
commit | f40f038d98893d24044f203938c78ee059feb9d0 (patch) | |
tree | 48e0ec9d29e0957be84d8215e6569c9bb7b78652 | |
parent | 8d61c8c69dea1a7696ca449db767e36048f1baf5 (diff) | |
download | vminstall-f40f038d98893d24044f203938c78ee059feb9d0.tar.gz |
preseed: Halt VM after reboot
Signed-off-by: Marc Zyngier <maz@kernel.org>
-rw-r--r-- | preseed.cfg | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/preseed.cfg b/preseed.cfg index 7137367..65a1faa 100644 --- a/preseed.cfg +++ b/preseed.cfg @@ -426,4 +426,6 @@ d-i finish-install/reboot_in_progress note # directly, or use the apt-install and in-target commands to easily install # packages and run commands in the target system. #d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh - +d-i preseed/late_command string \ +in-target /bin/sh -c 'echo "#!/bin/bash \nrm /etc/rc.local\nhalt -p" > /etc/rc.local' ; \ +in-target chmod +x /etc/rc.local |