From: Ben Gras Date: Tue, 22 Sep 2009 14:01:17 +0000 (+0000) Subject: umount before ramdisk spec to allow resizing X-Git-Tag: v3.1.5~106 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=64df404150bfee2068278e3f6c950653d3fab3f0;p=minix.git umount before ramdisk spec to allow resizing --- diff --git a/tools/release.sh b/tools/release.sh index a94e5b378..9075e3d33 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -166,14 +166,14 @@ then echo "$TMPDISK1, $TMPDISK2 or $TMPDISK3 is not a block device.." exit 1 fi -ramdisk $USRKB $TMPDISK1 -ramdisk $TMPKB $TMPDISK2 -ramdisk $ROOTKB $TMPDISK3 - umount $TMPDISK1 || true umount $TMPDISK2 || true umount $TMPDISK3 || true +ramdisk $USRKB $TMPDISK1 +ramdisk $TMPKB $TMPDISK2 +ramdisk $ROOTKB $TMPDISK3 + if [ $TMPDISK1 = $TMPDISK2 -o $TMPDISK1 = $TMPDISK3 -o $TMPDISK2 = $TMPDISK3 ] then echo "Temporary devices can't be equal."