From 64df404150bfee2068278e3f6c950653d3fab3f0 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Tue, 22 Sep 2009 14:01:17 +0000 Subject: [PATCH] umount before ramdisk spec to allow resizing --- tools/release.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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." -- 2.44.0