modified: configure_bootloader_cnf.sh
fix
ROOT_PARTITION='/dev/$device'
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user