[SCM] live-manual branch, debian-next, updated. debian/3.0_a14-1-26-g147eedc

chals chals at altorricon.com
Sun Aug 5 20:24:05 UTC 2012


The following commit has been merged in the debian-next branch:
commit 2dc0641aa24b7972d20270d4994f3aa1dd6faee6
Author: chals <chals at altorricon.com>
Date:   Sun Aug 5 22:22:20 2012 +0200

    Providing a way to create a smaller image before the size optimization warning in the examples.

diff --git a/manual/en/user_examples.ssi b/manual/en/user_examples.ssi
index ddf8d4c..2cd040b 100644
--- a/manual/en/user_examples.ssi
+++ b/manual/en/user_examples.ssi
@@ -223,11 +223,11 @@ Enjoy.
 
 *{Use case:}* Create a standard image with some components removed in order to fit on a 128M USB key with a little space left over to use as you see fit.
 
-When optimizing an image to fit a certain media size, you need to understand the tradeoffs you are making between size and functionality. In this example, we trim only so much as to make room for additional material within a 128M media size, but without doing anything to destroy integrity of the packages contained within, such as the purging of locale data via the /{localepurge}/ package, or other such "intrusive" optimizations. Of particular note, in order to understand what the #{minimal.chroot}# hook does you should take a look at #{/usr/share/doc/live-build/examples/hooks}#
+When optimizing an image to fit a certain media size, you need to understand the tradeoffs you are making between size and functionality. In this example, we trim only so much as to make room for additional material within a 128M media size, but without doing anything to destroy the integrity of the packages contained within, such as the purging of locale data via the /{localepurge}/ package, or other such "intrusive" optimizations. Of particular note, in order to understand what the #{minimal.chroot}# hook does you should take a look at #{/usr/share/doc/live-build/examples/hooks}#
 
 code{
 
- $ lb config -k 486 --apt-indices false --memtest none --apt-recommends false
+ $ lb config -k 486 --apt-indices false --apt-recommends false --memtest none
  $ cp /usr/share/doc/live-build/examples/hooks/minimal.chroot config/hooks
 
 }code
@@ -242,7 +242,9 @@ code{
 
 On the author's system at the time of writing this, the above configuration produced a 95Mbyte image. This compares favourably with the 182Mbyte image produced by the default configuration in {Tutorial 1}#tutorial-1.
 
-The biggest space-saver here, compared to building a standard image on an #{i386}# architecture system, is to select only the #{486}# kernel flavour instead of the default #{-k "486 686-pae"}#. Leaving off APT's indices with #{--apt-indices false}# also saves a fair amount of space, the tradeoff being that you need to #{apt-get update}# before using apt in the live system. The execution of the #{minimal}# hook removes some unused packages and files. Dropping recommended packages with #{--apt-recommends false}# saves some additional space, at the expense of omitting some packages you might otherwise expect to be there, such as /{firmware-linux-free}/ which may be needed to support certain hardware. The remaining options shave off additional small amounts of space. It's up to you to decide if the functionality that is sacrificed with each optimization is worth the loss in functionality.
+The biggest space-saver here, compared to building a standard image on an #{i386}# architecture system, is to select only the #{486}# kernel flavour instead of the default #{-k "486 686-pae"}#. Leaving off APT's indices with #{--apt-indices false}# also saves a fair amount of space, the tradeoff being that you need to #{apt-get update}# before using apt in the live system. Dropping recommended packages with #{--apt-recommends false}# saves some additional space, at the expense of omitting some packages you might otherwise expect to be there, such as /{firmware-linux-free}/ which may be needed to support certain hardware. #{--memtest none}# prevents the installation of a memory tester. And finally, the execution of the #{minimal}# hook removes some unused packages and files. 
+
+Using other hooks, like for example the #{stripped.chroot}# hook found in #{/usr/share/doc/live-build/examples/hooks}#, may shave off additional small amounts of space and produce an image of 76MB. But it is up to you to decide if the functionality that is sacrificed with each size optimization is worth the loss of functionality.
 
 2~ A localized KDE desktop and installer
 

-- 
live-manual



More information about the debian-live-changes mailing list