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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user