Skip to content

Commit

Permalink
debian: fix fuseext2 transition to account for /usr-move
Browse files Browse the repository at this point in the history
Addresses-Debian-Bug: #1088838
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
  • Loading branch information
tytso committed Dec 4, 2024
1 parent 16534ff commit 283fcab
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
14 changes: 14 additions & 0 deletions debian/fuse2fs.postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

set -e

# begin-remove-after: released:trixie
if test "$1" = configure && dpkg --compare-versions "$2" lt 1.47.2~rc1-1~; then
# DEP17 P1 mitigation.
for cmd in /sbin/mount.fuse-ext2 /sbin/mount.fuseext2; do
dpkg-divert --package fuse2fs --no-rename --divert "$cmd.usr-is-merged" --remove "$cmd"
done
fi
# end-remove-after: released:trixie

#DEBHELPER#
14 changes: 14 additions & 0 deletions debian/fuse2fs.postrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

set -e

# begin-remove-after: released:trixie
if test "$1" = remove || test "$1" = upgrade -o "$1" = failed-upgrade - o "$1" = abort-install -o "$1" = abort-upgrade && dpkg --compare-versions "$2" lt 1.47.2~rc1-1~; then
# DEP17 P1 mitigation.
for cmd in /sbin/mount.fuse-ext2 /sbin/mount.fuseext2; do
dpkg-divert --package fuse2fs --no-rename --divert "$cmd.usr-is-merged" --remove "$cmd"
done
fi
# end-remove-after: released:trixie

#DEBHELPER#
14 changes: 14 additions & 0 deletions debian/fuse2fs.preinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

set -e

# begin-remove-after: released:trixie
if test "$1" = install -o "$1" = upgrade && dpkg --compare-versions "$2" lt 1.47.2~rc1-1~; then
# DEP17 P1 mitigation.
for cmd in /sbin/mount.fuse-ext2 /sbin/mount.fuseext2; do
dpkg-divert --package fuse2fs --no-rename --divert "$cmd.usr-is-merged" --add "$cmd"
done
fi
# end-remove-after: released:trixie

#DEBHELPER#

0 comments on commit 283fcab

Please sign in to comment.