Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
dracut.6321
0185-fix_nfs_with_ip_instead_of_hostname.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0185-fix_nfs_with_ip_instead_of_hostname.patch of Package dracut.6321
From: Thomas Renninger <trenn@suse.de> Date: Mon, 19 Oct 2015 09:20:29 +0200 Subject: Fix NFS if IPV4 address is used in /etc/fstab Fix NFS address parsing if IPv4 address is used in /etc/fstab to mount rootfs. Signed-off-by: Thomas Renninger <trenn@suse.de> --- modules.d/95nfs/module-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules.d/95nfs/module-setup.sh b/modules.d/95nfs/module-setup.sh index cc11d98..1570de2 100755 --- a/modules.d/95nfs/module-setup.sh +++ b/modules.d/95nfs/module-setup.sh @@ -54,9 +54,9 @@ cmdline() { ### ip= ### if [[ $nfs_device = [0-9]*\.[0-9]*\.[0-9]*.[0-9]* ]] || [[ $nfs_device = \[.*\] ]]; then - nfs_address="$nfs_device" + nfs_address="${nfs_device%%:*}" else - lookup=$(host $(echo ${nfs_device%%:*})| head -n1) + lookup=$(host "${nfs_device%%:*}"| head -n1) nfs_address=${lookup##* } fi ifname=$(ip -o route get to $nfs_address | sed -n 's/.*dev \([^ ]*\).*/\1/p') -- 1.8.4.5
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor