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-menu/Advanced | |
| 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-menu/Advanced')
| -rw-r--r-- | packages/altboot/files/altboot-menu/Advanced/40-bootNFS | 5 | ||||
| -rw-r--r-- | packages/altboot/files/altboot-menu/Advanced/60-orig-init | 19 |
2 files changed, 24 insertions, 0 deletions
diff --git a/packages/altboot/files/altboot-menu/Advanced/40-bootNFS b/packages/altboot/files/altboot-menu/Advanced/40-bootNFS index cefc46c8d0..b5b93a5929 100644 --- a/packages/altboot/files/altboot-menu/Advanced/40-bootNFS +++ b/packages/altboot/files/altboot-menu/Advanced/40-bootNFS @@ -95,6 +95,7 @@ run_module() { while test -z "$selection" do + stty echo echo -n "Boot NFS root: " read junk < /dev/tty1 @@ -119,6 +120,10 @@ run_module() { echo -n "Mounting NFS root..." mount -t nfs "$selection" /media/nfsroot && echo ok || die "mount -t nfs "$selection" /media/nfsroot failed!" + # Use configured resolv.conf in the pivoted rootfs + echo -n "Copying resolv.conf..." + cp /etc/resolv.conf /media/nfsroot/etc >/dev/null 2>&1 && echo ok || echo "FAILED" + check_target "/media/nfsroot" } diff --git a/packages/altboot/files/altboot-menu/Advanced/60-orig-init b/packages/altboot/files/altboot-menu/Advanced/60-orig-init new file mode 100644 index 0000000000..9f4ff78388 --- /dev/null +++ b/packages/altboot/files/altboot-menu/Advanced/60-orig-init @@ -0,0 +1,19 @@ +# !/bin/sh +M_TITLE="Boot original INIT" + + +run_module() { + + test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!" + + echo "altboot: Using real init [$REAL_INIT] [$INIT_RUNLEVEL] *" >/dev/tty1 + exec $REAL_INIT $INIT_RUNLEVEL + exit 0 + +} + +case "$1" in +title) echo "$M_TITLE";; +run) run_module;; +esac + |
