Improved on the post-install provisioning

This commit is contained in:
2024-04-21 01:54:33 -04:00
parent a051724f38
commit 4e00aa8ba7
11 changed files with 64 additions and 7 deletions

View File

@ -135,6 +135,7 @@ tasksel tasksel/first multiselect standard
# Individual additional packages to install
d-i pkgsel/include string \
apt-transport-https \
bash \
curl \
dnsutils \
openssh-server \
@ -158,4 +159,5 @@ d-i finish-install/reboot_in_progress note
#d-i preseed/early_command string anna-install some-udeb
# This command is run just before the install finishes, but when there is still a usable /target directory.
#d-i preseed/late_command string in-target wget -O /root/post-install.sh http://tarsonis.metaunix.net/scripts/post-install.sh; in-target chmod +x /root/post-install.sh; in-target /root/post-install.sh
d-i preseed/late_command string in-target usermod -aG sudo xadmin; in-target systemctl enable qemu-guest-agent
d-i preseed/late_command string in-target systemctl enable qemu-guest-agent; \
echo 'xadmin ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/xadmin;