Skip to content

Commit 21ec685

Browse files
committed
.
1 parent e093b53 commit 21ec685

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ROOTFS_LOCK="/tmp/kUaL_lInUx_mOuNtEd"
3434
INNER_TMP="/tmp/kUaL_lInUx"
3535
mkdir -p tmp.testext4
3636
cp rootfs.ext4.base tmp.testext4.img || fail
37-
if mount -o loop tmp.testext4.img tmp.testext4; then
37+
if mount -o loop tmp.testext4.img tmp.testext4 2>/dev/null; then
3838
echo This kernel support ext4.
3939
ROOTFS_TYPE=ext4
4040
else
@@ -44,8 +44,8 @@ else
4444
echo This kernel support ext3.
4545
ROOTFS_TYPE=ext3
4646
fi
47-
umount tmp.testext4
48-
umount tmp.testext3
47+
umount tmp.testext4 2>/dev/null
48+
umount tmp.testext3 2>/dev/null
4949
rm -fr tmp.*
5050

5151
get_rootfs_tgz_filename(){

0 commit comments

Comments
 (0)