2 RCSID='$Revision$ $Date:: $'
5 USE_BLKID=${USE_BLKID:-yes}
7 # true if we should parse UUID= or LABEL= for root parameter
9 # setup geninitrd module
12 blkid=$(find_tool $initrd_dir/blkid /sbin/initrd-blkid)
14 if [ ! -x "$blkid" ]; then
19 # generate initrd fragment
22 if ! is_yes "$USE_BLKID"; then
25 debug "Adding BLKID support to initrd"
27 inst_exec $blkid /bin/blkid
30 # if built with blkid change ROOT=LABEL=something into ROOT=/dev/somethingelse -
32 if [ "${ROOT##LABEL=}" != "${ROOT}" -o "${ROOT##UUID=}" != "${ROOT}" ]; then
33 ROOT="$(/bin/blkid -t $ROOT -o device -l)"