summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2018-07-25 20:48:28 +0800
committerBen Hutchings <benh@debian.org>2020-09-01 00:39:44 +0100
commit6ebe41b11b02277a161908c4b3f2fa9ed6c1b5df (patch)
tree9f4c73bf8c0a5d972118cd78ed0e7bba152d4935 /debian
parent181a35c05aef9c7a922dc7a50de2c60c866e4c23 (diff)
Remove obsolete update-initramfs state in /var/lib/initramfs-tools
update-initramfs used to keep track of which initramfs images it created and "owned", to avoid overwriting the output of another coinstalled initramfs generator. As discussed in #765750, this is no longer a concern and the state checks have been removed. Now that I'm confident this hasn't caused a regression, also remove the state updates and the state directory. After this, there is no turning back: a downgrade will leave update-initramfs owning nothing. Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'debian')
-rw-r--r--debian/initramfs-tools-core.dirs1
-rw-r--r--debian/initramfs-tools-core.postinst5
2 files changed, 5 insertions, 1 deletions
diff --git a/debian/initramfs-tools-core.dirs b/debian/initramfs-tools-core.dirs
index 21f605c..8092c1b 100644
--- a/debian/initramfs-tools-core.dirs
+++ b/debian/initramfs-tools-core.dirs
@@ -14,4 +14,3 @@ usr/sbin
usr/share/initramfs-tools/conf.d
usr/share/initramfs-tools/conf-hooks.d
usr/share/initramfs-tools/modules.d
-/var/lib/initramfs-tools
diff --git a/debian/initramfs-tools-core.postinst b/debian/initramfs-tools-core.postinst
index 395e997..c4d7b75 100644
--- a/debian/initramfs-tools-core.postinst
+++ b/debian/initramfs-tools-core.postinst
@@ -40,4 +40,9 @@ if [ "$1" = configure ] && dpkg --compare-versions "$2" lt 0.123~; then
finish_mv_conffile /etc/initramfs-tools/initramfs.conf initramfs-tools-core
fi
+# Remove obsolete state directory
+if [ "$1" = configure ] && dpkg --compare-versions "$2" lt 0.138~; then
+ rm -rf /var/lib/initramfs-tools
+fi
+
#DEBHELPER#