summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog4
-rw-r--r--scripts/nfs8
2 files changed, 10 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 86ba300..622b109 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,8 @@ initramfs-tools (0.88) UNRELEASED; urgency=low
low-level tool and how it fits with update-initramfs.
* init: Ignore non-numerical panic and rootdelay bootarg.
* scripts/init-premount/ps3: Fix typo. (closes: #423469)
+ * scripts/nfs: Fix when root-path includes server-ip. (closes: #387808)
+ Thanks Vagrant Cascadian <vagrant+debianbugs@freegeek.org> for patch.
[ David Härdeman ]
* init: Remove cryptopts parsing, not official bootparam. cryptsetup scripts
@@ -24,7 +26,7 @@ initramfs-tools (0.88) UNRELEASED; urgency=low
used. Patch by Scott James Remnant <scott@ubuntu.com>. Changed to
support both fstype and vol_id.
- -- maximilian attems <maks@debian.org> Sun, 27 May 2007 00:31:13 +0200
+ -- maximilian attems <maks@debian.org> Sun, 27 May 2007 00:41:08 +0200
initramfs-tools (0.87b) unstable; urgency=low
diff --git a/scripts/nfs b/scripts/nfs
index 5eb17bf..717dfe8 100644
--- a/scripts/nfs
+++ b/scripts/nfs
@@ -41,7 +41,13 @@ do_nfsmount()
# get nfs root from dhcp
if [ "x${NFSROOT}" = "xauto" ]; then
- NFSROOT=${ROOTSERVER}:${ROOTPATH}
+ # check if server ip is part of dhcp root-path
+ if [ "${ROOTPATH#*:}" = "${ROOTPATH}" ]; then
+ NFSROOT=${ROOTSERVER}:${ROOTPATH}
+ else
+ NFSROOT=${ROOTPATH}
+ fi
+
# nfsroot=[<server-ip>:]<root-dir>[,<nfs-options>]
elif [ -n "${NFSROOT}" ]; then
# nfs options are an optional arg