1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

debian: postinst: add work-around to manually install python3-ipaddr

python3 ipaddress behave differently from python2-ipaddr, this is
a serious problem for us since it breaks most of the ip addresses
code. The work around install the python3-ipaddr via pip3 (and
installs pip3 if necessary). The workaround will stay in the code
util the ipaddress issue is fixed.

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
Julien Fortin
2019-12-17 17:37:40 +01:00
parent 45864399b0
commit 8248d0befc

View File

@ -92,6 +92,14 @@ case "$1" in
process_udev
chmod +x /usr/share/ifupdown2/__main__.py
postinst_remove_diverts
#### WORK AROUND
# We have to manually install pip3
apt-get install python3-pip -y
sleep 1
pip3 install wheel
pip3 install setuptools
pip3 install ipaddr
;;
abort-upgrade|abort-remove|abort-deconfigure)