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

LH_BINARY_IMAGES was: Rescue flavor improvements



On Mon, Apr 28, 2008 at 12:55:36PM +0200, Daniel Baumann wrote:
> Tzafrir Cohen wrote:
> > This is just a theoretical question, right?
> 
> in theory, every variable whose name is grammatically a plural should
> accept multiple values (in form of a spaces seperated list).
> 
> in practise, for most variables above, this is true. unfortunately,
> LH_BINARY_IMAGES is not one of them. it would need a bit of work to
> re-arrange some stuff in order to be able to build different images
> types in one shot, but ensuring that the chroot is not tainted by the
> different auxillary packages that are required for the different binary
> targets (e.g. dosfstutils, syslinux, genisoimage etc.).

In the mean time:


LOG_FILE=$build_root/log

# Clean most things. Do keep cache.
lh_clean --all 2>&1 | tee $LOG_FILE

mkdir -p tmp/

# Let's get to work:
lh_build 2>&1 | tee -a $LOG_FILE
mv binary.iso tmp/

# build hdd-usb:
lh_clean --binary 2>&1 | tee -a $LOG_FILE
LH_BINARY_IMAGES="usb-hdd" lh_build  2>&1 | tee -a $LOG_FILE
#mv binary.img tmp/

# build netboot tarball:
lh_clean --binary 2>&1 | tee -a $LOG_FILE
LH_BINARY_IMAGES="net" lh_build  2>&1 | tee -a $LOG_FILE
#mv binary-net.tar.gz tmp/

mv tmp/* .

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



Reply to: