linux-image: postrm: Make failure of rmdir on purge non-fatal (Closes: #836282)

This commit is contained in:
Ben Hutchings 2016-09-16 23:49:36 +01:00
parent 45fbf5a22f
commit 550ac5c6dc
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View File

@ -184,6 +184,8 @@ linux (4.7.4-1) UNRELEASED; urgency=medium
* [armhf] Enable drivers for Novena: MFD_STMPE as built-in; DRM_PANEL_SIMPLE,
MMA8452, TOUCHSCREEN_STMPE, BATTERY_SBS, BACKLIGHT_PWM, SND_SOC_IMX_ES8328
as modules (Closes: #837627, thanks to Vagrant Cascadian)
* linux-image: postrm: Make failure of rmdir on purge non-fatal
(Closes: #836282)
-- Ben Hutchings <ben@decadent.org.uk> Sat, 03 Sep 2016 18:34:31 +0100

View File

@ -25,7 +25,7 @@ if [ "$1" = purge ]; then
modules.softdep modules.devname; do
eval rm -f /lib/modules/$version/$extra_file
done
rmdir /lib/modules/$version
rmdir /lib/modules/$version || true
fi
exit 0