diff options
author | Daniel Golle <daniel@makrotopia.org> | 2024-01-25 03:06:45 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2024-02-01 00:52:54 +0000 |
commit | efcc100ef0d6953f60c0eaf46fee3239070bcc91 (patch) | |
tree | 115447ccae7cf6c064d92b964a7167fab1e69926 /package | |
parent | 7b1c3068b74273af2370e433b3f476b65ddd123c (diff) |
base-files: upgrade: nand.sh: mute umount error
Send error output of umount to /dev/null to mute error in case
ubiblock device has already been unmounted (which is usually the
case).
Gets rid of bogus error message:
umount: can't unmount /dev/ubiblock0_4: Invalid argument
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package')
-rw-r--r-- | package/base-files/files/lib/upgrade/nand.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/lib/upgrade/nand.sh b/package/base-files/files/lib/upgrade/nand.sh index d910bf1791..0a6fd8432d 100644 --- a/package/base-files/files/lib/upgrade/nand.sh +++ b/package/base-files/files/lib/upgrade/nand.sh @@ -111,7 +111,7 @@ nand_remove_ubiblock() { local ubiblk="ubiblock${ubivol:3}" if [ -e "/dev/$ubiblk" ]; then - umount "/dev/$ubiblk" && echo "unmounted /dev/$ubiblk" || : + umount "/dev/$ubiblk" 2>/dev/null && echo "unmounted /dev/$ubiblk" || : if ! ubiblock -r "/dev/$ubivol"; then echo "cannot remove $ubiblk" return 1 |