From 8531d4f75210ce29d72d314b65035bfdecd882c2 Mon Sep 17 00:00:00 2001 From: Matthias Hentges Date: Sat, 21 Jan 2006 12:27:25 +0000 Subject: altboot: - 40-bootNFS: Copy resolv.conf from flash into pivot_root to allow working DNS - Allowing to use altboot as init inside a pivot_root. Which means as soon as th e new root is booted, you are presented with altboots menu again. But this ti me changing behaviour of the pivot_root booting sequence - Improved detected if altboot is run by user (to switch runlevels manually) or kernel. - Do not run scripts in /etc/altboot.rc if altboot is not enabled - Add Advanced/Boot original INIT. Note: "Normal Boot" might be different than the real /sbin/init on some machines. --- packages/altboot/files/altboot.func | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'packages/altboot/files/altboot.func') diff --git a/packages/altboot/files/altboot.func b/packages/altboot/files/altboot.func index 7afb3727f9..91984a89ee 100644 --- a/packages/altboot/files/altboot.func +++ b/packages/altboot/files/altboot.func @@ -78,14 +78,14 @@ pivot_realfs() { cd / - # Boot init.sysvinit if it is available or use /sbin/init instead - if test -x $REAL_INIT + # Boot /sbin/init if it is available or use /sbin/init.sysvinit instead + if test -x $/sbin/init then - echo "Calling INIT [$REAL_INIT $RL]" - exec /usr/sbin/chroot . $REAL_INIT $RL >/dev/tty0 2>&1 - else - echo "Calling INIT [/sbin/init $RL]" + echo "Calling INIT [/sbin/init $RL]" exec /usr/sbin/chroot . /sbin/init $RL >/dev/tty0 2>&1 + else + echo "Calling INIT [$REAL_INIT $RL]" + exec /usr/sbin/chroot . $REAL_INIT $RL >/dev/tty0 2>&1 fi else echo "FAILED" -- cgit v1.2.3