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

Problems generating a minimal iso



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: