Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
dracut.4406
0166-nfs-Add-ifname-dev-mac-to-boot-parameters....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0166-nfs-Add-ifname-dev-mac-to-boot-parameters.patch of Package dracut.4406
From 85b55c7a4c6750c88415c376b516c25d7b2e5944 Mon Sep 17 00:00:00 2001 From: Thomas Renninger <trenn@suse.de> Date: Fri, 17 Oct 2014 12:47:51 +0200 Subject: nfs: Add ifname=$dev:$mac to boot parameters This is needed to be able to uniqule identify the NIC, also if renaming of the network device is in place. References: bnc#900831 Signed-off-by: Thomas Renninger <trenn@suse.de> --- modules.d/95nfs/module-setup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules.d/95nfs/module-setup.sh b/modules.d/95nfs/module-setup.sh index b6ddb21..cc11d98 100755 --- a/modules.d/95nfs/module-setup.sh +++ b/modules.d/95nfs/module-setup.sh @@ -60,6 +60,11 @@ cmdline() { nfs_address=${lookup##* } fi ifname=$(ip -o route get to $nfs_address | sed -n 's/.*dev \([^ ]*\).*/\1/p') + if [ -e /sys/class/net/$ifname/address ] ; then + ifmac=$(cat /sys/class/net/$ifname/address) + printf 'ifname=%s:%s ' ${ifname} ${ifmac} + fi + printf 'ip=%s:static\n' ${ifname} } -- 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