From 43ad5f72f2f5d2193450e10f7b911216daff38ae Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 5 Oct 2011 15:48:19 +0200 Subject: [PATCH] livecd-root, livecd-gnome-root, livecd-light-root: added code to remove some documentation files to save space on CDs --- platforms/livecd-gnome-root/post.inc.sh | 5 +++++ platforms/livecd-light-root/post.inc.sh | 5 +++++ platforms/livecd-root/post.inc.sh | 7 ++++++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/platforms/livecd-gnome-root/post.inc.sh b/platforms/livecd-gnome-root/post.inc.sh index 9e642d8..a43aab2 100644 --- a/platforms/livecd-gnome-root/post.inc.sh +++ b/platforms/livecd-gnome-root/post.inc.sh @@ -79,4 +79,9 @@ _EOF chroot $MOUNTDIR sh /tmp/gconftool.sh rm $MOUNTDIR/tmp/gconftool.sh +# remove some documentation to save space on CD +for f in ChangeLog Changelog CHANGES TODO NEWS README README.txt; do + find $MOUNTDIR/usr/share/doc -name $f -exec rm -f {} \; +done + prelink diff --git a/platforms/livecd-light-root/post.inc.sh b/platforms/livecd-light-root/post.inc.sh index 0eea421..a9f3e11 100644 --- a/platforms/livecd-light-root/post.inc.sh +++ b/platforms/livecd-light-root/post.inc.sh @@ -61,4 +61,9 @@ rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img* # remove failsafe image to save space for livecd rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}-failsafe.img* +# remove some documentation to save space on CD +for f in ChangeLog Changelog CHANGES TODO NEWS README README.txt; do + find $MOUNTDIR/usr/share/doc -name $f -exec rm -f {} \; +done + prelink diff --git a/platforms/livecd-root/post.inc.sh b/platforms/livecd-root/post.inc.sh index 872827a..808da58 100644 --- a/platforms/livecd-root/post.inc.sh +++ b/platforms/livecd-root/post.inc.sh @@ -51,7 +51,7 @@ sed -i -e '/^halt .*/i \ sed -i -e '/^reboot .*/i \ /sbin/eject_cd.sh 2>&1 >/dev/null' $MOUNTDIR/etc/init.d/reboot -# installer icon on root desktop +# installer icon on root desktop # FIXME: move this somewhere else mkdir -p $MOUNTDIR/root/Desktop/ cp $MOUNTDIR/usr/share/applications/openmamba-installer.desktop $MOUNTDIR/root/Desktop/ @@ -75,4 +75,9 @@ rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img* # remove failsafe image to save space for livecd rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}-failsafe.img* +# remove some documentation to save space on CD +for f in ChangeLog Changelog CHANGES TODO NEWS README README.txt; do + find $MOUNTDIR/usr/share/doc -name $f -exec rm -f {} \; +done + prelink