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