Quiet fsck when opening a Tomb with -q provided

This commit is contained in:
timvisee 2021-06-24 18:57:23 +02:00 committed by Denis Roio
parent 2a744fe89d
commit 585af6a61b

4
tomb
View File

@ -2306,7 +2306,11 @@ mount_tomb() {
_message "Checking filesystem via ::1::" $tombstat[3]
case $filesystem in
ext3|ext4)
if option_is_set -q; then
_sudo fsck -p -C0 /dev/mapper/${TOMBMAPPER} > /dev/null
else
_sudo fsck -p -C0 /dev/mapper/${TOMBMAPPER}
fi
# TODO: btrfs filesystem label [<device>|<mount_point>] [<newlabel>]
_sudo tune2fs -L $TOMBNAME /dev/mapper/${TOMBMAPPER} > /dev/null
;;