ifupdown2/debian
Stoiko Ivanov e10142c0fa d/maintscripts: use postinst arguments to determine first install
Following https://www.debian.org/doc/debian-policy/ap-flowcharts.html
postinst gets called as 'postinst configure' w/o second argument on
first installation, use that information instead of creating a
flag-file in preinst.

Technically this changes the semantics and the first-install parts
will not be run, in case ifupdown2 had been installed on the system,
but was subsequently removed, but not purged ('rc' in dpkg-output).
Since the functionality was added quite a while ago (released with PVE
6.2 to support ovs-setups with ifupdown2 - the potential for
regression should be limited. Originally introduced in:
849ae55de6

Fixes: 8d5303c350
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2024-11-14 18:34:21 +01:00
..
patches patch : addons: vxlan: fix VNI filter on single VXLAN device 2024-07-05 09:19:35 +02:00
source change to pve packaging 2018-06-15 09:56:35 +02:00
changelog bump version to 3.2.0-1+pmx9 2024-07-05 09:21:02 +02:00
control add ethtool as depend 2023-06-26 20:42:13 +02:00
copyright merge upstream debian packaging metadata with ours 2023-05-20 15:48:33 +02:00
ifup@.service merge upstream debian packaging metadata with ours 2023-05-20 15:48:33 +02:00
ifupdown2-pre.service merge in downstream packaging changes & drop patches 2023-05-20 15:48:33 +02:00
ifupdown2.dirs merge upstream debian packaging metadata with ours 2023-05-20 15:48:33 +02:00
ifupdown2.docs merge upstream debian packaging metadata with ours 2023-05-20 15:48:33 +02:00
ifupdown2.examples merge upstream debian packaging metadata with ours 2023-05-20 15:48:33 +02:00
ifupdown2.install ship again policy for setting the bridge MAC from its first port 2023-06-21 08:22:35 +02:00
ifupdown2.links merge upstream debian packaging metadata with ours 2023-05-20 15:48:33 +02:00
ifupdown2.lintian-overrides lintian: fix/override some complaints 2023-05-20 15:48:33 +02:00
ifupdown2.manpages merge upstream debian packaging metadata with ours 2023-05-20 15:48:33 +02:00
ifupdown2.networking.service merge in downstream packaging changes & drop patches 2023-05-20 15:48:33 +02:00
ifupdown2.postinst d/maintscripts: use postinst arguments to determine first install 2024-11-14 18:34:21 +01:00
ifupdown2.postrm merge in downstream packaging changes & drop patches 2023-05-20 15:48:33 +02:00
proxmox-bridge-mac-from-port.json ship policy for setting the bridge MAC from its first port 2021-07-14 16:58:55 +02:00
rules d/control: define compat level via build-depends and raise to 13 2023-05-20 15:48:33 +02:00
watch merge upstream debian packaging metadata with ours 2023-05-20 15:48:33 +02:00