Skip to content
Browse files

Avoid file-rc being considered for removal by deborphan

For whatever reason deborphan seems to consider file-rc
being available for removal since a few days:

| =====   shell: DEBORPHAN/98-clean-chroot   =====
| [...]
| (Reading database ... 24676 files and directories currently installed.)
| Removing file-rc ...
| Purging configuration files for file-rc ...
| Please purge /var/backups/rc.* manually.
| DEBORPHAN/98-clean-chroot OK.
  • Loading branch information...
1 parent 99d7926 commit f565065789c9c28146a9acd2efe5a5a1d2b0d2fb @mika mika committed Jun 5, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 etc/grml/fai/config/scripts/DEBORPHAN/98-clean-chroot
View
6 etc/grml/fai/config/scripts/DEBORPHAN/98-clean-chroot
@@ -14,6 +14,12 @@ if ! [ -x $target/usr/bin/deborphan ] ; then
exit 0
fi
+# avoid file-rc being considered for removal by deborphan
+if [ -d $target/usr/share/file-rc -a -x $target/usr/bin/deborphan ] ; then
+ echo "Adding file-rc to keep-list of deborphan to avoid accidental removal"
+ $ROOTCMD deborphan --add-keep file-rc || /bin/true
+fi
+
# remove all packages not necessary anymore:
$ROOTCMD apt-get -y --purge autoremove

0 comments on commit f565065

Please sign in to comment.
Something went wrong with that request. Please try again.