Browse Source

attempt to fix/debug success_command problems

tags/nilmdbuntu-1
Jim Paris 10 years ago
parent
commit
5cd4b16a89
1 changed files with 7 additions and 4 deletions
  1. +7
    -4
      customize.sh

+ 7
- 4
customize.sh View File

@@ -22,15 +22,18 @@ cat >> ${ISO}/preseed/nilmdbuntu.seed <<"EOF"
# 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 \
echo "success_command running" >/target/var/log/installer/postinst.log; \
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; \
chroot /target update-grub \
>>/target/var/log/installer/postinst.log 2>&1; \
rm -f /target/etc/ssh/ssh_host_*; \
chroot /target dpkg-reconfigure openssh-server \
>>/target/var/log/installer/postinst.log 2>&1; \
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 update-grub; \
echo "done"
echo "success_command done" >>/target/var/log/installer/postinst.log

# Default user. Ubiquity should let them change this
d-i passwd/user-fullname string NILM User


Loading…
Cancel
Save