projects
/
grml-live.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b234fe9
)
Update Purging removed packages in grml_cleanup_chroot
author
Michael Prokop
<mika@grml.org>
Mon, 5 Nov 2007 09:54:10 +0000
(10:54 +0100)
committer
Michael Prokop
<mika@grml.org>
Mon, 5 Nov 2007 09:54:10 +0000
(10:54 +0100)
etc/grml/fai/grml/grml_cleanup_chroot
patch
|
blob
|
history
diff --git
a/etc/grml/fai/grml/grml_cleanup_chroot
b/etc/grml/fai/grml/grml_cleanup_chroot
index
12bd0ae
..
8eba963
100755
(executable)
--- a/
etc/grml/fai/grml/grml_cleanup_chroot
+++ b/
etc/grml/fai/grml/grml_cleanup_chroot
@@
-52,9
+52,11
@@
einfo "Setting up /etc/inittab"
cp /etc/inittab.grml /etc/inittab
eend $?
-einfo "Purging removed packages"
-dpkg --purge $(dpkg --list | awk '/^rc/ { print $2}')
-eend $?
+if [ "$(dpkg --list | awk '/^rc/ { print $2}')" != '' ] ;
+ einfo "Purging removed packages"
+ dpkg --purge $(dpkg --list | awk '/^rc/ { print $2}')
+ eend $?
+fi
if [ -x /usr/bin/make -a -r /usr/src/Makefile ] ; then
einfo "Cleaning up /usr/src/linux-headers-$KERNEL"