resolvconf fails with -p
PATCH 1/1 resolvconf fails with -p
From: "Sergio E. Nemirowski" <[email protected]...>
resolvconf -p
resolvconf: Error: Command not recognized
--- contrib/pull-resolv-conf/client.up | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
contrib/pull-resolv-conf/client.up +1 -1
@@ -91,7 +91,7 @@ out="# resolv.conf autogenerated by ${0} (${dev})${nl}${dns}${ds}${domains}" # use resolvconf if it's available if type resolvconf >/dev/null 2>&1; then - printf "%s\n" "${out}" | resolvconf -p -a "${dev}" + printf "%s\n" "${out}" | resolvconf -a "${dev}" else # Preserve the existing resolv.conf if [ -e /etc/resolv.conf ] ; then
Signature · 1 line
2.32.0.rc0
Hi,
Quoted 4 lines · sergio
From: "Sergio E. Nemirowski" <[email protected]...>
resolvconf -p
resolvconf: Error: Command not recognized
Which platform does this fail on? The fact that the -p is currently there hints at "on some other platforms this works and is useful"...
gert
Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany [email protected]...Quoted 3 lines
Which platform does this fail on? The fact that the -p is currently there hints at "on some other platforms this works and is useful"...
Debian bullseye & sid, v1.87
Signature · 1 line
sergio.
Quoted 16 lines · sergio
From: "Sergio E. Nemirowski" <[email protected]...>
resolvconf -p
resolvconf: Error: Command not recognizedSigned-off-by Sergio E. Nemirowski <[email protected]...>--- contrib/pull-resolv-conf/client.up | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)contrib/pull-resolv-conf/client.up +0
-0
contrib/pull-resolv-conf/client.up out="# resolv.conf autogenerated by ${0} (${dev})${nl}${dns}${ds}${domains}" · line 97
Quoted 8 lines
contrib/pull-resolv-conf/client.up +1
-1@@ -91,7 +91,7 @@ out="# resolv.conf autogenerated by ${0} (${dev})${nl}${dns}${ds}${domains}" # use resolvconf if it's available if type resolvconf >/dev/null 2>&1; then - printf "%s\n" "${out}" | resolvconf -p -a "${dev}" + printf "%s\n" "${out}" | resolvconf -a "${dev}" else # Preserve the existing resolv.conf if [ -e /etc/resolv.conf ] ; then
I quickly checked resolveconf on Ubuntu {18,20,21}.04 and Debian 9-11. Neither of them supports the '-p' argument.
I've checked Fedora 34, RHEL-{7,8} too, where I could not find any obvious alternative to the old version of resolvconf tool. On RHEL-8 and Fedora, systemd-resolved is available and provides a different resolveconf which targets to replace this old utility. This replacement neither support '-p'.
This option got added in commit 3adf2f558e157ef508 back in 2010, but there's too little information why it was needed back then. But given that neither relevant Linux distributions supports this option today, it's reasonable to remove it now.
Signature · 4 lines
kind regards, David Sommerseth OpenVPN Inc
Sorry that it took so long. But here we go.
Your patch has been applied to the master and release/2.5 branch.
commit e739f41d05084c1bc9bfb6c5d49c74de37e53dc7 (master) commit 8fcce5042865b6bed7dcde5d7d0372ae83d54708 (release/2.5)
Author: Sergio E. Nemirowski Date: Sat May 29 04:35:16 2021 +0300
resolvconf fails with -p
Signed-off-by: Sergio E. Nemirowski <[email protected]...>
Acked-by: David Sommerseth <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg22467.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
Quoted 9 lines · David Sommerseth
I quickly checked resolveconf on Ubuntu {18,20,21}.04 and Debian 9-11. Neither of them supports the '-p' argument.
I've checked Fedora 34, RHEL-{7,8} too, where I could not find any obvious alternative to the old version of resolvconf tool. On RHEL-8 and Fedora, systemd-resolved is available and provides a different resolveconf which targets to replace this old utility. This replacement neither support '-p'.
Quoted 5 lines
This option got added in commit
3adf2f558e157ef508back in 2010, but there's too little information why it was needed back then. But given that neither relevant Linux distributions supports this option today, it's reasonable to remove it now.
Openresolv uses it, and Arch offers that package.
https://github.com/NetworkConfiguration/openresolv/blob/master/resolvconf.in#L108
has a -p
That's my best guess where this came from. And then, since this is off buried in 'contrib', "nobody" noticed it for years.
(I don't disagree with removing it, I just like forensics).