diff options
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 + |
