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

[PATCH] Exclude directories from squashfs filesystem



"Trent W. Buck" <trentbuck at gmail.com> writes:

> On Wed, Oct 24, 2007 at 04:35:30PM +0200, Maarten ter Huurne wrote:
>> Attached is a proposed patch for an option to exclude files or
>> directories from the squashfs root filesystem.  The motivation for
>> this feature is to be able to create smaller ISO images.  For
>> example, the following list of excludes makes the ISO about 7MB
>> smaller: var/cache/apt var/lib/apt var/lib/dpkg
>>
>> Removing these directories from the chroot does not work, since the
>> chroot is also used for installing tools and removing the
>> administrative directories of apt and dpkg breaks those
>> installations. Excluding them when running mksquashfs does not have
>> that problem.
>
> ...unless you want to apt-get install something while the system is
> running.  I call "apt-get clean" instead, which at least gets rid of
> the .debs.

But it doesn't get rid of database and others. Besides, /var/lib/dpkg
drops the scripts, list and like used by dpkg that also use a lot of
space on the final system.

This is specific for special propose images but it's indeed a nice
option to have available.

-- 
        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: