initrd.scripts: simplify rootdev_init. Break if conditions for better readability

master
Fabio Erculiani 12 years ago
parent f5d1084646
commit 43a4651da2

@ -2017,16 +2017,16 @@ rootdev_init() {
done
if [ "${got_good_root}" = "1" ] && is_livecd && ! is_nfs
then
if [ "${got_good_root}" = "1" ] && is_livecd && ! is_nfs; then
# CD already mounted; no further checks necessary
break
elif [ "${LOOPTYPE}" = "sgimips" ]
then
fi
if [ "${LOOPTYPE}" = "sgimips" ]; then
# sgimips mounts the livecd root partition directly
# there is no isofs filesystem to worry about
break
else
fi
good_msg "Mounting $REAL_ROOT as root..."
if [ "${ROOTFSTYPE}" = 'zfs' ]
@ -2090,7 +2090,6 @@ rootdev_init() {
got_good_root=0
REAL_ROOT=''
fi
fi
done
}

Loading…
Cancel
Save