Run postinstall script

This commit is contained in:
Ben Gras 2006-02-06 16:17:54 +00:00
parent cde8d88dcc
commit b561091d13
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,11 @@
#!/bin/sh
echo -n "Would you like to install binary packages from the CD? (y/N) "
read y
if [ "$y" = y ]
then echo "Ok, showing you a list of packages, please type y"
echo "for every package you want installed."
/usr/bin/packme
else echo "Ok, not installing binary packages."
fi
echo "Use the 'packme' command after rebooting MINIX to get another chance"
echo "to install binary packages."

View file

@ -638,7 +638,14 @@ then if mount /dev/$home /home 2>/dev/null
fi
fi
echo "Saving random data.."
echo "Install is done. Running postinstall script.."
# Now chroot-mount the new system and run the postinstall script
mount /dev/$root /mnt || exit 1
mount /dev/$usr /mnt/usr || exit 1
chroot /mnt '/bin/sh /usr/src/commands/scripts/postinstall.sh'
echo "Postinstall script done. Saving random data.."
dd if=/dev/random of=/mnt/adm/random.dat bs=1024 count=1
echo "