From 159825dbad87c0dc40870d3a155da1704e0f81b0 Mon Sep 17 00:00:00 2001 From: lean Date: Sun, 3 Apr 2022 13:24:18 +0800 Subject: [PATCH] automount: skip some partition Signed-off-by: Tianling Shen (cherry picked from commit cb7067660611bf85d207e2a91b95d0fc9d806dac) --- package/emortal/automount/files/15-automount | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/emortal/automount/files/15-automount b/package/emortal/automount/files/15-automount index dc052bdd38..bb222e81e1 100755 --- a/package/emortal/automount/files/15-automount +++ b/package/emortal/automount/files/15-automount @@ -6,7 +6,7 @@ blkdev=`dirname $DEVPATH` basename=`basename $blkdev` device=`basename $DEVPATH` -skip=`block info | sed 's/\(.*\): .*/\1/' | grep -q $device ; echo $?` +skip=`block info | grep -vE '(f2fs|kernel|squashfs)' | sed 's/\(.*\): .*/\1/' | grep -q $device ; echo $?` path=$DEVPATH if [ $basename != "block" ] && [ -z "${device##sd*}" ] && [ $skip -eq 1 ]; then