summaryrefslogtreecommitdiff
path: root/packages/altboot/files/altboot-menu/Advanced/40-bootNFS
diff options
context:
space:
mode:
Diffstat (limited to 'packages/altboot/files/altboot-menu/Advanced/40-bootNFS')
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/40-bootNFS5
1 files changed, 5 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"
}