linuxrc: unbundle is_livecd() from setup_real_root

master
Fabio Erculiani 12 years ago
parent 0cac67fa67
commit 8ab82e8b23

@ -225,20 +225,14 @@ is_aufs() {
}
setup_real_root() {
if ! is_livecd
then
if [ -z "${REAL_ROOT}" -a "${FAKE_ROOT}" != "/dev/ram0" ]
then
REAL_ROOT="${FAKE_ROOT}"
fi
if [ -z "${REAL_INIT}" -a "${FAKE_INIT}" != "/linuxrc" ]
then
REAL_INIT="${FAKE_INIT}"
fi
if [ -z "${REAL_ROOTFLAGS}" ]
then
REAL_ROOTFLAGS="${FAKE_ROOTFLAGS}"
fi
if [ -z "${REAL_ROOT}" -a "${FAKE_ROOT}" != "/dev/ram0" ]; then
REAL_ROOT="${FAKE_ROOT}"
fi
if [ -z "${REAL_INIT}" -a "${FAKE_INIT}" != "/linuxrc" ]; then
REAL_INIT="${FAKE_INIT}"
fi
if [ -z "${REAL_ROOTFLAGS}" ]; then
REAL_ROOTFLAGS="${FAKE_ROOTFLAGS}"
fi
}

@ -244,7 +244,7 @@ done
quiet_kmsg
setup_real_root
is_livecd || setup_real_root
zfs_init

Loading…
Cancel
Save