Fix an error in setup_unionfs and add in some debug support to figure out why/where this initramfs is stopping.

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@393 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Chris Gianelloni 19 years ago
parent e71f54a8a7
commit 897b236d54

@ -645,7 +645,8 @@ setup_unionfs() {
ret=$?
if [ "${ret}" -ne 0 ]
then
die "Can't setup union ${UNION} in directory!"
bad_msg "Can't setup union ${UNION} in directory!"
USE_UNIONFS_NORMAL=0
fi
else
USE_UNIONFS_NORMAL=0

@ -238,15 +238,18 @@ then
then
good_msg "Making tmpfs for ${NEW_ROOT}"
mount -t tmpfs tmpfs ${NEW_ROOT}
echo "DEBUG: tmpfs mounted"
fi
for i in dev mnt mnt/cdrom mnt/livecd tmp tmp/.initrd mnt/gentoo sys
do
mkdir -p ${NEW_ROOT}/$i
chmod 755 ${NEW_ROOT}/$i
echo "DEBUG: mkdir $i"
done
cp /dev/null ${NEW_ROOT}/dev
cp /dev/console ${NEW_ROOT}/dev
echo "DEBUG: copying null/console"
# For SGI LiveCDs ...
if [ "${LOOPTYPE}" = "sgimips" ]
@ -260,6 +263,7 @@ then
if [ -e /dev/tty1 ]
then
cp /dev/tty1 ${NEW_ROOT}/dev
echo "DEBUG: copying tty1 for splash"
fi
if [ "${REAL_ROOT}" != "/dev/nfs" ] && [ "${LOOPTYPE}" != "sgimips" ]

Loading…
Cancel
Save