1
0
mirror of https://github.com/gryf/mkinitramfs.git synced 2025-12-19 12:28:14 +01:00

Fix grep command for label search.

This commit is contained in:
2022-03-23 09:58:08 +01:00
parent e3409909ef
commit c382ea32eb

View File

@@ -133,7 +133,7 @@ for counter in $(seq 3); do
sleep 1 sleep 1
clear clear
for dev in /dev/sd* /dev/mmcblk*; do for dev in /dev/sd* /dev/mmcblk*; do
if blkid "${dev}" | grep -q LABEL | grep -iqw "%(label)s"; then if blkid "${dev}" | grep -w LABEL | grep -iqw "%(label)s"; then
KEYDEV="${dev}" KEYDEV="${dev}"
break break
fi fi