Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=eb75adafdf0fef373275e582ae6c647c68d8e8e8

commit eb75adafdf0fef373275e582ae6c647c68d8e8e8
Author: James Buren <r...@frugalware.org>
Date:   Mon Dec 12 16:51:46 2011 -0600

create-rootfs: backup kernel & initrd, and remove from rootfs

diff --git a/bin/create-rootfs b/bin/create-rootfs
index 935bdec..fa50fff 100755
--- a/bin/create-rootfs
+++ b/bin/create-rootfs
@@ -157,6 +157,12 @@ rm -rf $CHROOTDIR/usr/share/man/*
echo "Deleting Static libraries and header which are not needed in Live mode..."
find $CHROOTDIR/ -name "*.h" -or -name "*.a" -exec rm -f '{}' \;

+## Remove /boot contents, but backup kernel and initrd
+echo "Removing boot files which are not needed in Live mode..."
+cp -vf $CHROOTDIR/boot/vmlinuz $TREE/vmlinuz
+cp -vf $CHROOTDIR/boot/initrd.img.xz $TREE/initrd.img.xz
+rm -rf $CHROOTDIR/boot/*
+
# Umount chroot
echo "Attempting to umount chroot directories..."
umount $CHROOTDIR/proc >/dev/null
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to