diff options
author | Oliver Tappe | 2006-09-22 15:09:04 +0200 |
---|---|---|
committer | Oliver Tappe | 2006-09-22 15:09:04 +0200 |
commit | 280cedebd0de410aecbe645af68a24c5c18ad2a4 (patch) | |
tree | 73c031304e614041d945b795b81ce80c2efdcab6 /initramfs/initrd-stuff/init | |
parent | Optimizations of exclude lists (for reference ws copy) (diff) | |
download | core-280cedebd0de410aecbe645af68a24c5c18ad2a4.tar.gz core-280cedebd0de410aecbe645af68a24c5c18ad2a4.tar.xz core-280cedebd0de410aecbe645af68a24c5c18ad2a4.zip |
* 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
Diffstat (limited to 'initramfs/initrd-stuff/init')
-rwxr-xr-x | initramfs/initrd-stuff/init | 6 |
1 files changed, 6 insertions, 0 deletions
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 |