summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 14:46:39 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:31:05 +0100
commitf92e88f44e35a6e103b607a06d9fe69b9c20a53d (patch)
tree0e25858f288aa70bcad32416fdf5403e615d26a1 /scripts
parentd9ba94a9c03bae6905ff08ece35751eab82781a1 (diff)
downloadlive-boot-f92e88f44e35a6e103b607a06d9fe69b9c20a53d.tar.gz
live-boot-f92e88f44e35a6e103b607a06d9fe69b9c20a53d.zip
Adding live-initramfs 1.91.5-1.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/live b/scripts/live
index 35ba702..5b70b6a 100755
--- a/scripts/live
+++ b/scripts/live
@@ -397,6 +397,14 @@ do_netmount() {
NFSROOT=${ROOTSERVER}:${ROOTPATH}
fi
+ # source relevant ipconfig output
+ . /tmp/net-${DEVICE}.conf
+ export HOSTNAME
+
+ if [ "${NFSROOT#*:}" = "$NFSROOT" ]; then
+ NFSROOT=${ROOTSERVER}:${NFSROOT}
+ fi
+
[ "$quiet" != "y" ] && log_begin_msg "Trying netboot from ${NFSROOT}"
if [ "${NETBOOT}" != "nfs" ] && do_cifsmount ; then