Enable post.bookworm script…

This commit is contained in:
Jeremy Gardais 2023-06-13 17:03:31 +02:00
parent 0b55464805
commit 9b0cb33ff1
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 5 additions and 11 deletions

View File

@ -408,18 +408,12 @@ d-i cdrom-detect/eject boolean false
# 1. Umount and remove temp lvm lv_free # 1. Umount and remove temp lvm lv_free
# 2. Allow root connections with SSH # 2. Allow root connections with SSH
# 3. Download and run a post.bookworm.sh script # 3. Download and run a post.bookworm.sh script
# TODO: PROD
#d-i preseed/late_command string in-target umount /dev/sys/lv_free ; \
#lvremove -f /dev/sys/lv_free ; \
#in-target /bin/rmdir /mnt/free ; in-target /bin/sed -i '/lv_free/d' /etc/fstab ; \
#in-target /bin/sed -i 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /etc/ssh/sshd_config ; \
#in-target /usr/bin/tftp 129.20.203.27 -c get scripts/latecommand.tar.gz /tmp/latecommand.tar.gz ; \
#in-target tar xzf /tmp/latecommand.tar.gz -C /tmp/ ; \
#in-target /bin/sh /tmp/latecommand/post.bookworm.sh
# TODO: DEV
d-i preseed/late_command string in-target umount /dev/sys/lv_free ; \ d-i preseed/late_command string in-target umount /dev/sys/lv_free ; \
lvremove -f /dev/sys/lv_free ; \ lvremove -f /dev/sys/lv_free ; \
in-target /bin/rmdir /mnt/free ; in-target /bin/sed -i '/lv_free/d' /etc/fstab ; \ in-target /bin/rmdir /mnt/free ; in-target /bin/sed -i '/lv_free/d' /etc/fstab ; \
in-target /bin/sed -i 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /etc/ssh/sshd_config ; in-target /bin/sed -i 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /etc/ssh/sshd_config ; \
in-target /usr/bin/tftp 129.20.203.27 -c get scripts/latecommand.tar.gz /tmp/latecommand.tar.gz ; \
in-target tar xzf /tmp/latecommand.tar.gz -C /tmp/ ; \
in-target /bin/sh /tmp/latecommand/post.bookworm.sh
################################################################## ]]] ################################################################## ]]]