Go to file
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
debian d/maintscripts: use postinst arguments to determine first install 2024-11-14 18:34:21 +01:00
ifupdown2@a0522546b8 update submodule to 3.2.0-pmx1 2023-05-20 15:48:33 +02:00
.gitmodules switch to relative mirror 2018-06-15 09:03:26 +02:00
Makefile buildsys: derive upload dist automatically 2023-05-20 15:52:40 +02:00