]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix umount order in setup.sh 79/3279/3
authorLionel Sambuc <lionel.sambuc@gmail.com>
Thu, 31 Dec 2015 17:41:27 +0000 (18:41 +0100)
committerLionel Sambuc <lionel.sambuc@gmail.com>
Sat, 16 Jan 2016 13:04:26 +0000 (14:04 +0100)
Change-Id: Ife0c36b0fdc70e4b7ae86278d0df8d6d00d19df4

minix/commands/setup/setup.sh

index d309b7a3603abf02ec6f40f64249900b6aa94ebb..b4e54c38edc360a687a50ae318fffd5f38279a24 100644 (file)
@@ -298,9 +298,9 @@ done        # while step3 != ok
 root=${primary}s0
 home=${primary}s1
 usr=${primary}s2
-umount /dev/$root 2>/dev/null && echo "Unmounted $root for you."
 umount /dev/$home 2>/dev/null && echo "Unmounted $home for you."
 umount /dev/$usr 2>/dev/null && echo "Unmounted $usr for you."
+umount /dev/$root 2>/dev/null && echo "Unmounted $root for you."
 
 devsizemb="`expr $devsize / 1024 / 2`"
 maxhome="`expr $devsizemb - $TOTALMB - 1`"