|
|
@ -74,7 +74,7 @@ mkdir /newroot
|
|
|
|
if [ "${CDROOT}" -eq "1" ]
|
|
|
|
if [ "${CDROOT}" -eq "1" ]
|
|
|
|
then
|
|
|
|
then
|
|
|
|
mount -t tmpfs tmpfs /newroot
|
|
|
|
mount -t tmpfs tmpfs /newroot
|
|
|
|
mkdir /newroot/dev /newroot/mnt /newroot/mnt/cdrom /newrot/mnt/loop /newroot/tmp/.initrd /newroot/mnt/gentoo
|
|
|
|
mkdir /newroot/dev /newroot/mnt /newroot/mnt/cdrom /newroot/mnt/loop /newroot/tmp/.initrd /newroot/mnt/gentoo
|
|
|
|
[ ! -e /newroot/dev/.devfsd ] && mount -t devfs devfs /newroot/dev
|
|
|
|
[ ! -e /newroot/dev/.devfsd ] && mount -t devfs devfs /newroot/dev
|
|
|
|
devfsd /newroot/dev
|
|
|
|
devfsd /newroot/dev
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
@ -88,6 +88,10 @@ then
|
|
|
|
|
|
|
|
|
|
|
|
if [ "${REAL_ROOT}" = "" ]
|
|
|
|
if [ "${REAL_ROOT}" = "" ]
|
|
|
|
then
|
|
|
|
then
|
|
|
|
|
|
|
|
echo "Dropping to shell so you can fix your shit"
|
|
|
|
|
|
|
|
exec /bin/ash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Undo stuff
|
|
|
|
kill_devfsd
|
|
|
|
kill_devfsd
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
|
umount /newroot/dev/
|
|
|
|
umount /newroot/dev/
|
|
|
|