4 USE_BLKID=${USE_BLKID:-yes}
6 # true if we should parse UUID= or LABEL= for root parameter
8 # setup geninitrd module
11 blkid=$(find_tool $initrd_dir/blkid /sbin/initrd-blkid)
13 if [ ! -x "$blkid" ]; then
18 # generate initrd fragment
21 debug "Adding BLKID support to initrd"
23 inst_exec $blkid /bin/blkid
26 # if built with blkid change ROOT=LABEL=something into ROOT=/dev/somethingelse -
28 if [ "${ROOT##LABEL=}" != "${ROOT}" -o "${ROOT##UUID=}" != "${ROOT}" ]; then
29 ROOT="$(/bin/blkid -t $ROOT -o device -l)"