95fstab-sys: Skip mounted filesystem.
PATCH 1/1 95fstab-sys: Skip mounted filesystem.
Signed-off-by Chao Wang <[email protected]>
--- modules.d/95fstab-sys/mount-sys.sh | 1 + 1 file changed, 1 insertion(+)
modules.d/95fstab-sys/mount-sys.sh +1 -0
@@ -11,6 +11,7 @@ fstab_mount() { info "Mounting from $1" while read _dev _mp _fs _opts _dump _pass _rest; do [ -z "${_dev%%#*}" ] && continue # Skip comment lines + ismounted $_mp && continue # Skip mounted filesystem if [ "$_pass" -gt 0 ] && ! strstr "$_opts" _netdev; then fsck_single "$_dev" "$_fs" "$_opts" fi
Signature · 1 line
1.7.11.2
PATCH 1/1 90multipath: check() - Regexp fix to match multipath partition.
In reply to a message not in the archiveA multipath partition's uuid will be presented like:
# cat /sys/dev/block/$_dev/dm/uuid part1-mpath-360060e801047103004f2c4b300000008
So in this case, change the match regexp from '^mpath-' to 'mpath-'.
Signed-off-by Chao Wang <[email protected]>
--- modules.d/90multipath/module-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
modules.d/90multipath/module-setup.sh +1 -1
@@ -11,7 +11,7 @@ check() { local _dev _dev=$(get_maj_min $1) [ -e /sys/dev/block/$_dev/dm/uuid ] || return 1 - [[ $(cat /sys/dev/block/$_dev/dm/uuid) =~ ^mpath- ]] && return 0 + [[ $(cat /sys/dev/block/$_dev/dm/uuid) =~ mpath- ]] && return 0 return 1 }
Signature · 1 line
1.7.11.2