https://bugzilla.suse.com/show_bug.cgi?id=1003872 https://bugzilla.suse.com/show_bug.cgi?id=1003872#c23 --- Comment #23 from Thomas Blume <thomas.blume@suse.com> --- (In reply to Marius Tomaschewski from comment #22)
(In reply to Fabian Vogt from comment #19)
I wonder whether it might be possible to simply use the kernel's address for the active mount, at least as a fallback. It can be obtained via findmnt -t nfs,nfs4 -nro OPTIONS / | sed 's/.*,addr=\([^=]*\)/\1/'.
The hint to use findmnt works also in more exotic scenarios like nfsserver in /etc/hosts only (with static setup) or NIS instead DNS in nsswitch.conf.
It's worth a beer!
Thanks Fabian, Marius, it seems that it is indeed better to not rely on dns resolution for the nfs root mount. Not sure whether cases exists where the kernel is not providing the nfs server address, but then, we could still use dns as fallback. I will look into providing a patch. Still, I want to point out that this won't solve the installer issue, e.g. even if the nfsroot system boots afterwards, resolv.conf would still be empty. -- You are receiving this mail because: You are on the CC list for the bug.