summaryrefslogtreecommitdiff
path: root/morphlib/exts/nfsboot.configure
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/exts/nfsboot.configure')
-rwxr-xr-xmorphlib/exts/nfsboot.configure9
1 files changed, 4 insertions, 5 deletions
diff --git a/morphlib/exts/nfsboot.configure b/morphlib/exts/nfsboot.configure
index 8dc6c67c..660d9c39 100755
--- a/morphlib/exts/nfsboot.configure
+++ b/morphlib/exts/nfsboot.configure
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (C) 2013 Codethink Limited
+# Copyright (C) 2013-2014 Codethink Limited
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -15,7 +15,9 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-# Remove all networking interfaces and stop fstab from mounting '/'
+# Remove all networking interfaces. On nfsboot systems, eth0 is set up
+# during kernel init, and the normal ifup@eth0.service systemd unit
+# would break the NFS connection and cause the system to hang.
set -e
@@ -26,7 +28,4 @@ auto lo
iface lo inet loopback
EOF
- # Stop fstab from mounting '/'
- mv "$1/etc/fstab" "$1/etc/fstab.old"
- awk '/^ *#/ || $2 != "/"' "$1/etc/fstab.old" > "$1/etc/fstab"
fi