You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

33 lines
1.4 KiB

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