modified: configure_bootloader_cnf.sh

fix
        ROOT_PARTITION='/dev/$device'
This commit is contained in:
fling
2010-11-03 16:55:54 +08:00
parent 9b4be38571
commit b55e66a836

View File

@@ -102,13 +102,13 @@ EOF
# initrd can't switch root . # initrd can't switch root .
devname=$(basename $ROOT_PARTITION) devname=$(basename $ROOT_PARTITION)
if [[ "$devname" =~ ^md[0-9]*$ ]];then if [[ "$devname" =~ ^md[0-9]*$ ]];then
root_dev="$ROOT_PARTITION" root_dev="/dev/$ROOT_PARTITION"
else else
by_uuid=$(get_disk_sym $ROOT_PARTITION "by-uuid") by_uuid=$(get_disk_sym $ROOT_PARTITION "by-uuid")
if [ -n "$by_uuid" ];then if [ -n "$by_uuid" ];then
root_dev="UUID=$(echo $by_uuid|sed 's/.*\///')" root_dev="UUID=$(echo $by_uuid|sed 's/.*\///')"
else else
root_dev="$ROOT_PARTITION" root_dev="/dev/$ROOT_PARTITION"
fi fi
fi fi
info "root_dev: $root_dev" info "root_dev: $root_dev"