linuxrc: don't try to be too smart wrt resolving REAL_ROOT symlink

This breaks LVM support with udev, don't do it, there is absolutely no reason
cleanup-cruft
Fabio Erculiani 12 years ago
parent 874707d0f7
commit 4d5e8e4e69

@ -643,9 +643,6 @@ do
if [ "${REAL_ROOT}" = '/dev/nfs' ]; then if [ "${REAL_ROOT}" = '/dev/nfs' ]; then
findnfsmount findnfsmount
else else
# If $REAL_ROOT is a symlink
# Resolve it like util-linux mount does
[ -L ${REAL_ROOT} ] && REAL_ROOT=`readlink ${REAL_ROOT}`
# mount ro so fsck doesn't barf later # mount ro so fsck doesn't barf later
if [ "${REAL_ROOTFLAGS}" = '' ]; then if [ "${REAL_ROOTFLAGS}" = '' ]; then
good_msg "Using mount -t ${ROOTFSTYPE} -o ${MOUNT_STATE}" good_msg "Using mount -t ${ROOTFSTYPE} -o ${MOUNT_STATE}"

Loading…
Cancel
Save