26
26
# If preinst fails during upgrade:
27
27
# <new-postrm> abort-upgrade <old-version>
31
# Update the initial RAM file system image
30
# Update the initramfs
34
if command -v update-initramfs >/dev/null; then
35
update-initramfs -k all -u
36
elif command -v dracut >/dev/null; then
37
# Logic taken from dracut.postinst
38
for kernel in /boot/vmlinu[xz]-*; do
39
kversion="${kernel#/boot/vmlinu[xz]-}"
40
if [ "$kversion" != "*" ]; then
41
/etc/kernel/postinst.d/dracut "$kversion"
33
if which update-initramfs >/dev/null 2>&1; then
53
shred --remove /etc/keys/mandos/seckey.txt 2>/dev/null || :
45
shred --remove /etc/keys/mandos/seckey.txt || :
54
46
rm --force /etc/mandos/plugin-runner.conf \
55
47
/etc/keys/mandos/pubkey.txt \
56
/etc/keys/mandos/seckey.txt \
57
/etc/keys/mandos/tls-privkey.pem \
58
/etc/keys/mandos/tls-pubkey.pem \
59
/etc/keys/mandos/dhparams.pem 2>/dev/null
48
/etc/keys/mandos/seckey.txt
49
rmdir /etc/keys/mandos /etc/mandos/plugins.d /etc/mandos || :
62
51
upgrade|failed-upgrade|disappear|abort-install|abort-upgrade)
66
echo "$0 called with unknown argument '$1'" 1>&2
55
echo "$0 called with unknown argument \`$1'" 1>&2