Re: Re: Re: Problems generating a minimal iso
Sorry: my last e-mail is regarding the following thread:
Igor Gatis wrote:
> Hi,
Hi,
> I'm getting the following error:
>
> W: Unknown package list 'stripped'
this was fixed couple of days ago, install git snapshot of live-helper
from live.debian.net/debian
> E: couldn't find package unionfs-modules-2.6-686
lh_config does warn you about that - you have to use aufs for lenny and
newer.
> --union-filesystem unionfs \
this is dangerous - you shall let live-helper autoselect the one you
need depending on the distribution you select. so remove that line.
> # exclude some stuffs from the squashfs root
> export MKSQUASHFS_OPTIONS="$MKSQUASHFS_OPTIONS -e boot"
uneeded and considered harmful. besides, when using stripped,
live-helper is already excluding it anyway.
Regards,
Daniel
On Thu, Jan 29, 2009 at 10:09 AM, Igor Gatis
<igorgatis@gmail.com> wrote:
Hi,
My
goal is to create a minimal apt-enabled ISO (and net image) with no X.
I'd like to strip it down us much as possible while leaving apt tools
working.
I'm using lenny dist also. I followed instructions from http://wiki.debian.org/DebianLive/HowTo/SmallSizeImage. I did some small changes (like including and removing packages). Here is what I'm doing:
sudo su
apt-get update
apt-get -y install live-helper
lh_config_minimal.sh
I'm getting the following error:
W: Unknown package list 'stripped'
...
E: couldn't find package unionfs-modules-2.6-686
The content of lh_config_minimal.sh is:
#!/bin/sh
# Copyright 2007 Franklin Piat ; License GPL + LGPL
#Let's configure live-helper
lh_config -b iso -a i386 \
--bootstrap-flavour minimal \
--packages-lists "stripped" \
--apt apt \
--apt-recommends disabled \
--tasksel none \
--binary-indices disabled \
--distribution lenny \
--linux-flavours 686 \
--union-filesystem unionfs \
--packages "console-common console-tools klogd netbase iputils-ping sysklogd update-inetd tcpd dhcp3-client debconf-english" \
--memtest disabled \
--bootappend-live "nolocales" \
#let's create some scripts
cat <<CHROOTLOCALHOOKS01 > config/chroot_local-hooks/01-removelocales.sh
#!/bin/sh
# Remove locales
# (this could remove other applications. add "-y" if your are confident)
apt-get remove locales --purge
apt-get remove dselect -y --purge
echo "don t fail on abort (set ERRORLEVEL to zero)" > /dev/null
CHROOTLOCALHOOKS01
chmod +x "config/chroot_local-hooks/01-removelocales.sh"
cat <<CHROOTLOCALHOOKS02 > config/chroot_local-hooks/02-purge-some-modules.sh
#!/bin/sh
# delete the modules we won't need (YMMMV)
rm -Rf /lib/modules/*/kernel/drivers/isdn
rm -Rf /lib/modules/*/kernel/drivers/media
rm -Rf /lib/modules/*/kernel/drivers/net/wireless
CHROOTLOCALHOOKS02
chmod +x "config/chroot_local-hooks/02-purge-some-modules.sh"
# We could exclude some unused stuffs.
export LH_BOOTSTRAP_EXCLUDE="$LH_BOOTSTRAP_EXCLUD,nano,ed,eject,man-db,manpages"
# exclude some stuffs from the squashfs root
export MKSQUASHFS_OPTIONS="$MKSQUASHFS_OPTIONS -e boot"
lh_build
Reply to: