Comment 20 for bug 1907878

Revision history for this message
Joao Andre Simioni (jasimioni) wrote (last edit ):

Built a PPA to test the fix:

sudo add-apt-repository ppa:jasimioni/lp1907878
sudo apt update

Below the testing with the PPA package:

ubuntu@jammy-test:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy

ubuntu@jammy-test:~$ dpkg -l | grep -i ifupdown
ii ifupdown 0.8.36+nmu1ubuntu3 amd64 high level tools to configure network interfaces

ubuntu@jammy-test:~$ sudo ifdown ens3
/etc/network/if-down.d/resolved: 12: mystatedir: not found
Killed old client process
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/ens3/52:54:00:92:e4:09
Sending on LPF/ens3/52:54:00:92:e4:09
Sending on Socket/fallback
DHCPRELEASE of 192.168.122.213 on ens3 to 192.168.122.1 port 67 (xid=0x3fe7fca)

ubuntu@jammy-test:~$ sudo ifup ens3
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/ens3/52:54:00:92:e4:09
Sending on LPF/ens3/52:54:00:92:e4:09
Sending on Socket/fallback
DHCPDISCOVER on ens3 to 255.255.255.255 port 67 interval 3 (xid=0x96648e41)
DHCPDISCOVER on ens3 to 255.255.255.255 port 67 interval 3 (xid=0x96648e41)
DHCPOFFER of 192.168.122.213 from 192.168.122.1
DHCPREQUEST for 192.168.122.213 on ens3 to 255.255.255.255 port 67 (xid=0x418e6496)
DHCPACK of 192.168.122.213 from 192.168.122.1 (xid=0x96648e41)
bound to 192.168.122.213 -- renewal in 1488 seconds.
/etc/network/if-up.d/resolved: 12: mystatedir: not found

### AFTER UPGRADE ###

ubuntu@jammy-test:~$ apt-cache policy ifupdown
ifupdown:
  Installed: 0.8.36+nmu1ubuntu4
  Candidate: 0.8.36+nmu1ubuntu4
  Version table:
 *** 0.8.36+nmu1ubuntu4 500
        500 https://ppa.launchpadcontent.net/jasimioni/lp1907878/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     0.8.36+nmu1ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages

ubuntu@jammy-test:~$ dpkg -l | grep -i ifupdown
ii ifupdown 0.8.36+nmu1ubuntu4 amd64 high level tools to configure network interfaces

ubuntu@jammy-test:~$ sudo ifdown ens3
Killed old client process
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/ens3/52:54:00:92:e4:09
Sending on LPF/ens3/52:54:00:92:e4:09
Sending on Socket/fallback
DHCPRELEASE of 192.168.122.213 on ens3 to 192.168.122.1 port 67 (xid=0x5294bd40)

ubuntu@jammy-test:~$ sudo ifup ens3
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/ens3/52:54:00:92:e4:09
Sending on LPF/ens3/52:54:00:92:e4:09
Sending on Socket/fallback
DHCPDISCOVER on ens3 to 255.255.255.255 port 67 interval 3 (xid=0x1c872a07)
DHCPDISCOVER on ens3 to 255.255.255.255 port 67 interval 8 (xid=0x1c872a07)
DHCPOFFER of 192.168.122.213 from 192.168.122.1
DHCPREQUEST for 192.168.122.213 on ens3 to 255.255.255.255 port 67 (xid=0x72a871c)
DHCPACK of 192.168.122.213 from 192.168.122.1 (xid=0x1c872a07)
bound to 192.168.122.213 -- renewal in 1350 seconds.

diff can be seen here:

https://launchpadlibrarian.net/683020167/ifupdown_0.8.36+nmu1ubuntu3_0.8.36+nmu1ubuntu4.diff.gz