mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-22 04:25:12 +00:00
Quiet fsck when opening a Tomb with -q provided
This commit is contained in:
parent
2a744fe89d
commit
585af6a61b
6
tomb
6
tomb
@ -2306,7 +2306,11 @@ mount_tomb() {
|
||||
_message "Checking filesystem via ::1::" $tombstat[3]
|
||||
case $filesystem in
|
||||
ext3|ext4)
|
||||
_sudo fsck -p -C0 /dev/mapper/${TOMBMAPPER}
|
||||
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
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user