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

Bug#567652: live-helper: --mirror-chroot options are set in the live system



Ok, I tried again and this is my data:

cat auto/config
#!/bin/sh

$ lh config noautoconfig \
       --mirror-bootstrap "http://localhost:3142/tp.it.debian.org/debian/" \
       --mirror-chroot  "http://localhost:3142/tp.it.debian.org/debian/" \
       --mirror-chroot-security "http://localhost:3142/security.debian.org/" \ 
       --mirror-binary "http://ftp.it.debian.org/debian"
$

$ lh config
P: Considering defaults defined in /etc/default/live-helper
P: Creating config tree
$

$ cat config/bootstrap | grep LH_MIRROR
# $LH_MIRROR_BOOTSTRAP: set mirror to bootstrap from
LH_MIRROR_BOOTSTRAP="http://ftp.de.debian.org/debian/"
# $LH_MIRROR_CHROOT: set mirror to fetch packages from
LH_MIRROR_CHROOT="http://ftp.de.debian.org/debian/"
# $LH_MIRROR_CHROOT_SECURITY: set security mirror to fetch packages from
LH_MIRROR_CHROOT_SECURITY="http://security.debian.org/"
# $LH_MIRROR_BINARY: set mirror which ends up in the image
LH_MIRROR_BINARY="http://cdn.debian.net/debian/"
# $LH_MIRROR_BINARY_SECURITY: set security mirror which ends up in the image
LH_MIRROR_BINARY_SECURITY="http://security.debian.org/"
$

$ sudo lh build
[a lot of stuff here]


When I try the image just built here's the /et/apt/sources.list:
deb http://cdn.debian.net/debian/ lenny main
deb http://security.debian.org/ lenny/updates main





On Sat, Jan 30, 2010 at 5:29 PM, Daniel Baumann <daniel@debian.org> wrote:
tag 567652 unreproducible
tag 567652 moreinfo
thanks

Fabrizio Furnari wrote:
> Package: live-helper
> Version: 2.0~a4+20100120.120350
> Severity: normal

Hi,

> The --mirror-chroot options in the auto/config file should be used only
> to build the system.
> Instead the address passed is used to build AND set in the
> /etc/apt/sources.list file on the live system.

let's first check the auto/config mechanism:

---snip---
server4:/home/user/build# apt-cache policy live-helper
live-helper:
 Installed: 2.0~a5-1
 Candidate: 2.0~a5-1
 Version table:
 *** 2.0~a5-1 0
       500 http://mirror sid/main Packages
       100 /var/lib/dpkg/status
    2.0~a4+20100120.120350 0
       500 http://live.debian.net sid/snapshots/main Packages
server4:/home/user/build# find
.
./auto
./auto/config
server4:/home/user/build# cat auto/config
#!/bin/sh

lh config noautoconfig \
       --mirror-bootstrap http://mirror/debian \
       --mirror-chroot http://mirror/debian \
       --mirror-chroot-security http://mirror/debian-security \
       --mirror-binary http://ftp.ch.debian.org/debian \
       --mirror-binary-security http://ftp.ch.debian.org/debian-security
server4:/home/user/build# lh config
P: Considering defaults defined in /etc/default/live-helper
P: Creating config tree
P: Considering defaults defined in /etc/default/live-helper
P: Updating config tree
server4:/home/user/build# grep LH_MIRROR config/bootstrap
# $LH_MIRROR_BOOTSTRAP: set mirror to bootstrap from
LH_MIRROR_BOOTSTRAP="http://mirror/debian"
# $LH_MIRROR_CHROOT: set mirror to fetch packages from
LH_MIRROR_CHROOT="http://mirror/debian"
# $LH_MIRROR_CHROOT_SECURITY: set security mirror to fetch packages from
LH_MIRROR_CHROOT_SECURITY="http://mirror/debian-security"
# $LH_MIRROR_BINARY: set mirror which ends up in the image
LH_MIRROR_BINARY="http://ftp.ch.debian.org/debian"
# $LH_MIRROR_BINARY_SECURITY: set security mirror which ends up in the image
LH_MIRROR_BINARY_SECURITY="http://ftp.ch.debian.org/debian-security"
server4:/home/user/build#
---snap---

so, that works for me properly here.

then i build the image with 'lh build', and the resulting binary.iso
image did have the following /etc/apt/sources.list:

---snip---
deb http://ftp.ch.debian.org/debian lenny main
deb http://ftp.ch.debian.org/debian-security lenny/updates main
---snap---

so, that works for me properly here too.

could you please retry and make sure there's no other error on the way?

Regards,
Daniel

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



--
@P=split//,".URRUU\c8R";@d=split//,"\niranruF oizirbaF";sub p{
@p{"r$p","u$p"}=(P,P);pipe"r$p","u$p";++$p;($q*=2)+=$f=!fork;map{$P=$P[$f^ord
($p{$_})&6];$p{$_}=/ ^$P/ix?$P:close$_}keys%p}p;p;p;p;p;map{$p{$_}=~/^[P.]/&&
close$_}%p;wait until$?;map{/^r/&&<$_>}%p;$_=$d[$q];sleep rand(2)if/\S/;print


Reply to: