]> Zhao Yanbai Git Server - minix.git/commitdiff
umount /usr first
authorBen Gras <ben@minix3.org>
Mon, 6 Feb 2006 16:40:15 +0000 (16:40 +0000)
committerBen Gras <ben@minix3.org>
Mon, 6 Feb 2006 16:40:15 +0000 (16:40 +0000)
commands/scripts/setup.sh

index 427d225a1dfc22f8ac27181faaabd44f042557b7..a0c4c89d017eaa96e920a043d1f2046599afd07b 100755 (executable)
@@ -641,6 +641,7 @@ fi
 echo "Install is done. Running postinstall script.."
 
 # Now chroot-mount the new system and run the postinstall script
+umount /dev/$usr || exit 1
 mount /dev/$root /mnt || exit 1
 mount /dev/$usr /mnt/usr || exit 1
 chroot /mnt '/bin/sh /usr/src/commands/scripts/postinstall.sh'