From 280cedebd0de410aecbe645af68a24c5c18ad2a4 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Fri, 22 Sep 2006 13:09:04 +0000 Subject: * if NFSROOT contains @@@server_ip@@@, it is now replaces by the real server-ip. This makes things much more painless when the client is actually a vmware session on the same host (it used to be necessary to explicitly set the correct IP to the one of the corresponding vmnet-interface, as otherwise the client was unable to mount the NFS-root). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@385 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/initrd-stuff/init | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'initramfs') diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init index 55ee6de9..3aea9784 100755 --- a/initramfs/initrd-stuff/init +++ b/initramfs/initrd-stuff/init @@ -344,6 +344,12 @@ if [ -z "${nbdmod}" -a -z "${nbdhost}" -a -z "${NFSROOT}" ] ; then fi # call function for nfs mounts if [ -z "${nbdmod}" -a -z "${nbdserver}" ] ; then + case "$NFSROOT" in + # replace '@@@server_ip@@@' with real IP of server: + *@@@server_ip@@@*) + NFSROOT=$(echo $NFSROOT | sed s/@@@server_ip@@@/$serverip/) + ;; + esac nfsmnt ${NFSROOT} || error "$init_nfs" fi -- cgit v1.2.3-55-g7522