Skip to content

Commit 17d6cc4

Browse files
committed
initrd.scripts: fs_type_in_use() simplification
Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
1 parent f00973e commit 17d6cc4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

defaults/initrd.scripts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,8 +1059,7 @@ run_shell() {
10591059
}
10601060

10611061
fs_type_in_use() {
1062-
fs_type=$1
1063-
cut -d ' ' -f 3 < /proc/mounts | grep -Fq "${fs_type}"
1062+
grep -Eqse '^[^ ]+ [^ ]+ ${1} ' /proc/mounts
10641063
}
10651064

10661065
mount_devfs() {

0 commit comments

Comments
 (0)