umount before ramdisk spec to allow resizing
This commit is contained in:
parent
6492bf0019
commit
64df404150
1 changed files with 4 additions and 4 deletions
|
@ -166,14 +166,14 @@ then echo "$TMPDISK1, $TMPDISK2 or $TMPDISK3 is not a block device.."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ramdisk $USRKB $TMPDISK1
|
|
||||||
ramdisk $TMPKB $TMPDISK2
|
|
||||||
ramdisk $ROOTKB $TMPDISK3
|
|
||||||
|
|
||||||
umount $TMPDISK1 || true
|
umount $TMPDISK1 || true
|
||||||
umount $TMPDISK2 || true
|
umount $TMPDISK2 || true
|
||||||
umount $TMPDISK3 || true
|
umount $TMPDISK3 || true
|
||||||
|
|
||||||
|
ramdisk $USRKB $TMPDISK1
|
||||||
|
ramdisk $TMPKB $TMPDISK2
|
||||||
|
ramdisk $ROOTKB $TMPDISK3
|
||||||
|
|
||||||
if [ $TMPDISK1 = $TMPDISK2 -o $TMPDISK1 = $TMPDISK3 -o $TMPDISK2 = $TMPDISK3 ]
|
if [ $TMPDISK1 = $TMPDISK2 -o $TMPDISK1 = $TMPDISK3 -o $TMPDISK2 = $TMPDISK3 ]
|
||||||
then
|
then
|
||||||
echo "Temporary devices can't be equal."
|
echo "Temporary devices can't be equal."
|
||||||
|
|
Loading…
Reference in a new issue