Debian Bug report logs - #570330
support building multiple binary images in a row

Package: live-build; Maintainer for live-build is Live Systems Maintainers <debian-live@lists.debian.org>; Source for live-build is src:live-build.

Reported by: "Trent W. Buck" <trentbuck@gmail.com>

Date: Thu, 18 Feb 2010 05:30:01 UTC

Severity: wishlist

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Live <debian-live@lists.debian.org>:
Bug#570330; Package live-helper. (Thu, 18 Feb 2010 05:30:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Trent W. Buck" <trentbuck@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian Live <debian-live@lists.debian.org>. (Thu, 18 Feb 2010 05:30:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: "Trent W. Buck" <trentbuck@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: binary_syslinux and binary_grub assume LH_BINARY_IMAGES is singular.
Date: Thu, 18 Feb 2010 16:27:46 +1100
Package: live-helper
Version: 2.0~a7-1
Severity: normal

With --binary-images 'iso usb-hdd', the case dispatch of
"${LH_BINARY_IMAGES}" at

    /usr/share/live-helper/helpers/binary_syslinux:365

fails to match, resulting in line 407 of the same file

    mkdir -p "${KERNEL_PATH}"

attempting to mkdir the empty string.

Maybe --binary-images only supports a single image type at a time?  If
so, this behaviour isn't a bug.  I expected it to support "iso
usb-hdd" only because it's a plural (*images*, not image).

PS: I'd have isolated the problem faster if live-helper's case
dispatches had a fallback clause along the lines of

    *) if test -n "$DEBUGGING_IS_ON"
       then echo >&2 "<magic hash>: Execution probably shouldn't reach this point."
       fi;;

...where <magic hash> is a different short string in each case.  Then,
when seeing the problem in lh build --debug, I could have simply
grepped for that magic hash.

Better than a magic hash would be "${BASH_SOURCE[0]}:$LINENO", but
it's a bashism.

-- Package-specific info:

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-xen-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages live-helper depends on:
ii  cdebootstrap                  0.5.5      Bootstrap a Debian system
ii  debootstrap                   1.0.20     Bootstrap a basic Debian system

Versions of packages live-helper recommends:
ii  gettext-base                  0.17-9     GNU Internationalization utilities

Versions of packages live-helper suggests:
ii  dosfstools                 3.0.9-1       utilities for making and checking 
ii  fakeroot                   1.14.4-1      Gives a fake root environment
ii  genext2fs                  1.4.1-2.2     ext2 filesystem generator for embe
ii  genisoimage                9:1.1.10-1    Creates ISO-9660 CD-ROM filesystem
ii  memtest86+                 4.00-2.2      thorough real-mode memory tester
ii  mtd-utils [mtd-tools]      20090606-1    Memory Technology Device Utilities
ii  mtools                     4.0.12-1      Tools for manipulating MSDOS files
pn  parted                     <none>        (no description available)
ii  squashfs-tools             1:4.0-6       Tool to create and append to squas
ii  sudo                       1.7.2p1-1     Provide limited super user privile
ii  syslinux                   2:3.83+dfsg-3 utilities for the syslinux bootloa
ii  uuid-runtime               2.16.2-0      runtime components for the Univers
pn  win32-loader               <none>        (no description available)

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live <debian-live@lists.debian.org>:
Bug#570330; Package live-helper. (Fri, 19 Feb 2010 15:30:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to daniel@debian.org:
Extra info received and forwarded to list. Copy sent to Debian Live <debian-live@lists.debian.org>. (Fri, 19 Feb 2010 15:30:04 GMT) Full text and rfc822 format available.

Message #10 received at 570330@bugs.debian.org (full text, mbox):

From: Daniel Baumann <daniel@debian.org>
To: 570330@bugs.debian.org, 570330-submitter@bugs.debian.org
Subject: Re: binary_syslinux and binary_grub assume LH_BINARY_IMAGES is singular.
Date: Fri, 19 Feb 2010 16:27:16 +0100
retitle 570330 support building multiple binary images in a row
severity 570330 wishlist
forwarded 570330 http://live.debian.net/devel/live-helper/todo
thanks

Hi,

there are two things about that.

first, to use LH_BINARY_IMAGES instead of LH_BINARY_IMAGE was done on 
purpose. if one day we finally support building more than one binary 
image in a row (means, without cleaning the binary stage in between), 
then the users don't need to change/update the config tree interfaces on 
the user. this is also why almost everywhere, lh will not fail when you 
specify multiple binary image types to build (you might not get what you 
want in the end, though).

second, building multiple binary images in a row is a bit complicated. 
this is due to the fact that not all binary images use the same chroot. 
e.g. the netboot one gets smbfs and nfs-common installed through 
lh_hacks, regardless if you configured lh to install them or not. of 
course this is desired when building netboot images, because then you 
need those packages. however, when building e.g. an iso image, you don't 
necessarily want them.

therefore, when you switch between netboot and any other binary image 
type, you'd need to recreate the chroot stage, not just the binary stage 
only.

until this can be concentrated somehow (that i don't have a clever idea 
about yet), lh will not support building multiple images for the sake of 
building 'clean' images.

however, it's noted on our todo list, so one day it will get fixed.

Regards,
Daniel

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann@panthera-systems.net
Internet:       http://people.panthera-systems.net/~daniel-baumann/




Changed Bug title to 'support building multiple binary images in a row' from 'binary_syslinux and binary_grub assume LH_BINARY_IMAGES is singular.' Request was from Daniel Baumann <daniel@debian.org> to control@bugs.debian.org. (Fri, 19 Feb 2010 15:30:06 GMT) Full text and rfc822 format available.

Severity set to 'wishlist' from 'normal' Request was from Daniel Baumann <daniel@debian.org> to control@bugs.debian.org. (Fri, 19 Feb 2010 15:30:07 GMT) Full text and rfc822 format available.

Set Bug forwarded-to-address to 'http://live.debian.net/devel/live-helper/todo'. Request was from Daniel Baumann <daniel@debian.org> to control@bugs.debian.org. (Fri, 19 Feb 2010 15:30:07 GMT) Full text and rfc822 format available.

Message sent on to "Trent W. Buck" <trentbuck@gmail.com>:
Bug#570330. (Fri, 19 Feb 2010 15:30:12 GMT) Full text and rfc822 format available.

Unset Bug forwarded-to-address Request was from Daniel Baumann <daniel@debian.org> to control@bugs.debian.org. (Thu, 30 Sep 2010 05:42:03 GMT) Full text and rfc822 format available.

Bug reassigned from package 'live-helper' to 'live-build'. Request was from Daniel Baumann <daniel.baumann@progress-technologies.net> to control@bugs.debian.org. (Mon, 13 Jun 2011 18:33:03 GMT) Full text and rfc822 format available.

Bug No longer marked as found in versions live-helper/2.0~a7-1. Request was from Daniel Baumann <daniel.baumann@progress-technologies.net> to control@bugs.debian.org. (Mon, 13 Jun 2011 18:33:03 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 04:58:18 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.