diff options
author | Matthias Hentges <oe@hentges.net> | 2006-01-21 12:27:25 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-01-21 12:27:25 +0000 |
commit | 8531d4f75210ce29d72d314b65035bfdecd882c2 (patch) | |
tree | 4e0a2f119faf1370888692b6670073aa171b9271 /packages/altboot/files/altboot.func | |
parent | 4ac1a07fcbd2a82ee7504a6423d42e6055a95d99 (diff) |
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.
Diffstat (limited to 'packages/altboot/files/altboot.func')
-rw-r--r-- | packages/altboot/files/altboot.func | 12 |
1 files changed, 6 insertions, 6 deletions
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" |