|
- # Commands to run at casper boot:
- # - Regenerate SSH keys
- # - Append /etc/hosts.nilm to /etc/hosts
- d-i preseed/early_command string \
- echo "early_command running" ; \
- chroot /root sh -c "rm -f /etc/ssh/ssh_host_*" ; \
- chroot /root sh -c "dpkg-reconfigure openssh-server" ; \
- chroot /root sh -c "cat /etc/hosts.nilm >> /etc/hosts" ; \
- echo "early_command done"
-
- # Commands to run on successful install:
- # (Ubiquity doesn't actually use preseed/late_command, so we do it
- # in ubiquity/success_command (which needs things mounted))
- # - Remove "quiet splash" from grub command line
- # - Append /etc/hosts.nilm to /etc/hosts
- ubiquity ubiquity/success_command string \
- echo "success_command running" >/target/var/log/installer/postinst.log; \
- mount --bind /dev /target/dev ; \
- in-target sh -c "sed -i -e 's/quiet splash//g' /etc/default/grub" ; \
- in-target sh -c "update-grub >>/var/log/installer/postinst.log 2>&1" ; \
- in-target sh -c "cat /etc/hosts.nilm >> /etc/hosts " ; \
- umount /target/dev ; \
- echo "success_command done" >>/target/var/log/installer/postinst.log
-
- # Default user. Ubiquity should let them change this.
- # (To skip the dialog completely, maybe set a password?)
- d-i passwd/user-fullname string NILM User
- d-i passwd/username string nilm
- #d-i passwd/user-password password nilm
- #d-i passwd/user-password-again password nilm
- d-i user-setup/allow-password-weak boolean true
- d-i passwd/auto-login boolean true
|