[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] Exclude directories from squashfs filesystem



Maarten ter Huurne <maarten at treewalker.org> writes:

> --- lh_binary_rootfs.org	2007-10-24 14:09:13.000000000 +0200
> +++ lh_binary_rootfs	2007-10-24 15:08:37.000000000 +0200
> @@ -183,6 +183,13 @@
>  			MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -info"
>  		fi
>  
> +		if [ -f config/binary_rootfs/squashfs.exclude ]
> +		then
> +			# Note: the -ef option has to be before -e.
> +			MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -ef squashfs.exclude"
> +			cp config/binary_rootfs/squashfs.exclude chroot
> +		fi
> +
>  		if [ "${LH_PACKAGES_LISTS}" = "minimal" ] || [ "${LH_PACKAGES_LISTS}" = "mini" ]
>  		then
>  			MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -e $(ls chroot/boot/${LINUX}* chroot/boot/initrd.img* chroot/${LINUX}* chroot/initrd.img* | sed 's,chroot/,,g')"

Personally I'd prefer to have a generic way for all available
filesystems, not only squashfs. You might use config/.../exclude as a
file to describe the path to exclude and add support for each method
to use it.

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio at debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
 you the whole house."



Reply to: