Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
dracut.4406
0326-nfs_dns_alias.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0326-nfs_dns_alias.patch of Package dracut.4406
From ee36db49100bc1647d57e288e443cb5ec3c4d9fb Mon Sep 17 00:00:00 2001 From: Fabian Vogt <fvogt@suse.com> Date: Fri, 3 Feb 2017 16:02:33 +0100 Subject: [PATCH] NFS: Support host being a DNS ALIAS The "host" command may also print something else than "asdf.local.lan has address 1.2.3.4", like: "rootserver.local.net is an alias for rainbow.local.net.". So "head -n1" is not enough. Fixes boo#955592 --- modules.d/95nfs/module-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/95nfs/module-setup.sh b/modules.d/95nfs/module-setup.sh index d83257d..5166864 100755 --- a/modules.d/95nfs/module-setup.sh +++ b/modules.d/95nfs/module-setup.sh @@ -56,7 +56,7 @@ cmdline() { if [[ $nfs_device = [0-9]*\.[0-9]*\.[0-9]*.[0-9]* ]] || [[ $nfs_device = \[.*\] ]]; then nfs_address="${nfs_device%%:*}" else - lookup=$(host "${nfs_device%%:*}"| head -n1) + lookup=$(host "${nfs_device%%:*}"| grep " address " | head -n1) nfs_address=${lookup##* } fi ifname=$(ip -o route get to $nfs_address | sed -n 's/.*dev \([^ ]*\).*/\1/p') -- 2.10.2
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