3 USE_BLKID=${USE_BLKID:-yes}
5 # true if we should parse UUID= or LABEL= for root parameter
7 # setup geninitrd module
10 blkid=$(find_tool $initrd_dir/blkid /sbin/initrd-blkid)
12 if [ ! -x "$blkid" ]; then
17 # generate initrd fragment
20 if ! is_yes "$USE_BLKID"; then
23 verbose "Adding BLKID support to initrd"
25 inst_exec $blkid /sbin/blkid
28 # if built with blkid change ROOT=LABEL=something into ROOT=/dev/device parsed by blkid
29 if [ "${ROOT##LABEL=}" != "${ROOT}" -o "${ROOT##UUID=}" != "${ROOT}" ]; then
30 blkid="$(/sbin/blkid -t $ROOT -o device -l)"
31 if [ -n "$blkid" ]; then