|
|
@@ -19,19 +19,16 @@ cat >> ${ISO}/preseed/nilmdbuntu.seed <<"EOF" |
|
|
|
# Commands to run on successful install: |
|
|
|
# - Regenerate SSH host keys |
|
|
|
# - Remove "quiet splash" from grub command line |
|
|
|
d-i preseed/late_command string \ |
|
|
|
in-target sh -c "rm /etc/ssh/ssh_host_*"; \ |
|
|
|
in-target dpkg-reconfigure openssh-server; \ |
|
|
|
in-target sed -i -s -e 's/quiet splash//g' /etc/default/grub; \ |
|
|
|
in-target update-grub; \ |
|
|
|
echo "done" |
|
|
|
|
|
|
|
# Ubiquity doesn't actually use preseed/late_command, so copy those. |
|
|
|
# If these end up running twice, it's KK. |
|
|
|
# Ubiquity doesn't actually use preseed/late_command, so we do it |
|
|
|
# in ubiquity/success_command (which needs things mounted) |
|
|
|
ubiquity ubiquity/success_command string \ |
|
|
|
in-target sh -c "rm /etc/ssh/ssh_host_*"; \ |
|
|
|
for i in /dev /dev/pts /dev/shm /sys /sys/kernel/security /proc /cdrom; do \ |
|
|
|
mount --bind $i target/$i; done; \ |
|
|
|
sed -i -e 's/quiet splash//g' /target/etc/default/grub; \ |
|
|
|
chroot /target update-grub; \ |
|
|
|
for i in /dev/pts /dev/shm /dev /sys/kernel/security /sys /proc /cdrom; do \ |
|
|
|
umount /target/$i; done; \ |
|
|
|
in-target dpkg-reconfigure openssh-server; \ |
|
|
|
in-target sed -i -s -e 's/quiet splash//g' /etc/default/grub; \ |
|
|
|
in-target update-grub; \ |
|
|
|
echo "done" |
|
|
|
|
|
|
|