[debian-edu-commits] debian-edu/ 01/01: LTSP chroot: Fix purging of all packages with status 'rc' by adding '--purge' to apt-get -y autoremove'.
Wolfgang Schweer
schweer-guest at moszumanska.debian.org
Thu Oct 16 16:08:46 UTC 2014
This is an automated email from the git hooks/post-receive script.
schweer-guest pushed a commit to branch master
in repository debian-edu-config.
commit ad7e74e5750fd0651d96c98f3f58f4e39ff95b50
Author: Wolfgang Schweer <wschweer at arcor.de>
Date: Thu Oct 16 18:07:20 2014 +0200
LTSP chroot: Fix purging of all packages with status 'rc' by adding '--purge' to apt-get -y autoremove'.
---
debian/changelog | 3 ++-
share/ltsp/plugins/ltsp-build-client/Debian-custom/032-edu-pkgs | 5 +----
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 17407e9..a6f3fd4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,7 +3,8 @@ debian-edu-config (1.811) UNRELEASED; urgency=high
* ltsp-build-client/Debian-custom/032-edu-pkgs:
- Purge package cups cause the package isn't needed for printing on
thin clients and diskless workstations.
- - After 'autoremove' purge all packages with status 'rc'.
+ - Purge all packages with status 'rc' by adding '--purge' to
+ apt-get -y autoremove'.
-- Wolfgang Schweer <wschweer at arcor.de> Thu, 16 Oct 2014 15:45:54 +0200
diff --git a/share/ltsp/plugins/ltsp-build-client/Debian-custom/032-edu-pkgs b/share/ltsp/plugins/ltsp-build-client/Debian-custom/032-edu-pkgs
index f034f5a..59ff8fa 100644
--- a/share/ltsp/plugins/ltsp-build-client/Debian-custom/032-edu-pkgs
+++ b/share/ltsp/plugins/ltsp-build-client/Debian-custom/032-edu-pkgs
@@ -254,10 +254,7 @@ setup_diskless_workstation() {
in_target apt-get -y purge readahead readahead-fedora hdparm hddtemp
# Remove dependencies pulled in by removed packages
- in_target apt-get -y autoremove
-
- # Purge all packages with status 'rc'.
- in_target dpkg -l | grep "^rc" | cut -d " " -f3 | xargs dpkg -P
+ in_target apt-get -y --purge autoremove
# Needed to get the loopback interface
only_run_on_rclevel S ifupdown networking
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git
More information about the debian-edu-commits
mailing list