From: Fabian Vogt <fvogt@xxxxxxxx> 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. https://bugzilla.suse.com/show_bug.cgi?id=955592 Signed-off-by: Thomas Renninger <trenn@xxxxxxxx> --- 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 c8dfa94..ed62b05 100755 --- a/modules.d/95nfs/module-setup.sh +++ b/modules.d/95nfs/module-setup.sh @@ -53,7 +53,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.1.4 -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html