|
|
@ -1936,28 +1936,12 @@ rootdev_init() {
|
|
|
|
case "${REAL_ROOT}" in
|
|
|
|
case "${REAL_ROOT}" in
|
|
|
|
LABEL=*|UUID=*)
|
|
|
|
LABEL=*|UUID=*)
|
|
|
|
|
|
|
|
|
|
|
|
ROOT_DEV=""
|
|
|
|
local root_dev=$(find_real_device "${REAL_ROOT}")
|
|
|
|
retval=1
|
|
|
|
if [ -n "${root_dev}" ]; then
|
|
|
|
|
|
|
|
REAL_ROOT="${root_dev}"
|
|
|
|
if [ ${retval} -ne 0 ]; then
|
|
|
|
good_msg "Detected root: ${REAL_ROOT}"
|
|
|
|
ROOT_DEV=$(findfs "${REAL_ROOT}" 2>/dev/null)
|
|
|
|
|
|
|
|
retval=$?
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ${retval} -ne 0 ]; then
|
|
|
|
|
|
|
|
ROOT_DEV=$(busybox findfs "${REAL_ROOT}" 2>/dev/null)
|
|
|
|
|
|
|
|
retval=$?
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ${retval} -ne 0 ]; then
|
|
|
|
|
|
|
|
ROOT_DEV=$(blkid -o device -l -t "${REAL_ROOT}")
|
|
|
|
|
|
|
|
retval=$?
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ${retval} -eq 0 ] && [ -n "${ROOT_DEV}" ]; then
|
|
|
|
|
|
|
|
good_msg "Detected real_root=${ROOT_DEV}"
|
|
|
|
|
|
|
|
REAL_ROOT="${ROOT_DEV}"
|
|
|
|
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
bad_msg "Unable to resolve root: ${REAL_ROOT}"
|
|
|
|
prompt_user "REAL_ROOT" "root block device"
|
|
|
|
prompt_user "REAL_ROOT" "root block device"
|
|
|
|
got_good_root=0
|
|
|
|
got_good_root=0
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|