Debian Bug report logs - #447260
live-helper: resolv.conf should be removed from cache/stages_bootstrap/etc

version graph

Package: live-helper; Maintainer for live-helper is Debian Live Project <debian-live@lists.debian.org>;

Reported by: Jens Thiele <karme@berlios.de>

Date: Fri, 19 Oct 2007 13:06:01 UTC

Severity: normal

Tags: moreinfo

Found in version live-helper/1.0~a31-1

Fixed in version 1.0~a38-1

Done: Daniel Baumann <daniel@debian.org>

Bug is archived. No further changes may be made.

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-maint@lists.alioth.debian.org>:
Bug#447260; Package live-helper. Full text and rfc822 format available.

Acknowledgement sent to Jens Thiele <karme@berlios.de>:
New Bug report received and forwarded. Copy sent to Debian Live <debian-live-maint@lists.alioth.debian.org>. Full text and rfc822 format available.

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

From: Jens Thiele <karme@berlios.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: live-helper: resolv.conf should be removed from cache/stages_bootstrap/etc
Date: Thu, 18 Oct 2007 19:23:06 +0200
Package: live-helper
Version: 1.0~a31-1
Severity: normal

resolv.conf is copied to cache/stages_bootstrap/etc at some point. At the end this results in having the resolv.conf of the build host on the live system.
(maybe this only happens sometimes - if the bootstrap cache is used?)

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-2-mcore2-imq-raid (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

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

live-helper recommends no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live <debian-live-maint@lists.alioth.debian.org>:
Bug#447260; Package live-helper. 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-maint@lists.alioth.debian.org>. Full text and rfc822 format available.

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

From: Daniel Baumann <daniel@debian.org>
To: 447260@bugs.debian.org, Jens Thiele <karme@berlios.de>, control@bugs.debian.org
Subject: Re: live-helper: resolv.conf should be removed from cache/stages_bootstrap/etc
Date: Sun, 11 Nov 2007 10:55:56 +0100
tags 447260 +moreinfo
thanks

Hi,

before the rootfs image is created, resolv.conf gets truncated (on
behalf of lh_chroot_resolv remove). This happens independently of
whetever the chroot is restored from cache or not. Could you provide
more information in which case you actually end up with a non-truncated
resolv.conf?

From a short look at the respective helpers (lh_binary, lh_chroot,
lh_chroot_resolv), I can't imagine a case where this can happen.

Regards,
Daniel

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




Tags added: moreinfo Request was from Daniel Baumann <daniel@debian.org> to control@bugs.debian.org. (Sun, 11 Nov 2007 10:06:03 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live <debian-live-maint@lists.alioth.debian.org>:
Bug#447260; Package live-helper. Full text and rfc822 format available.

Acknowledgement sent to Jens Thiele <karme@berlios.de>:
Extra info received and forwarded to list. Copy sent to Debian Live <debian-live-maint@lists.alioth.debian.org>. Full text and rfc822 format available.

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

From: Jens Thiele <karme@berlios.de>
To: daniel@debian.org
Cc: 447260@bugs.debian.org
Subject: Re: live-helper: resolv.conf should be removed from cache/stages_bootstrap/etc
Date: Tue, 08 Jan 2008 02:02:16 +0100
Daniel Baumann <daniel@debian.org> writes:

> Hi,
>
> before the rootfs image is created, resolv.conf gets truncated (on
> behalf of lh_chroot_resolv remove). This happens independently of
> whetever the chroot is restored from cache or not. Could you provide
> more information in which case you actually end up with a non-truncated
> resolv.conf?
>
>>From a short look at the respective helpers (lh_binary, lh_chroot,
> lh_chroot_resolv), I can't imagine a case where this can happen.

Looking at lh_binary, I now think resolv.conf is always taken from the
host system:

    38	
    39	if [ "${LH_CHROOT_BUILD}" = "enabled" ]
    40	then
    41		# Configuring chroot
    42		lh_chroot_devpts install ${*}
    43		lh_chroot_proc install ${*}
    44		lh_chroot_sysfs install ${*}
    45		lh_chroot_hosts install ${*}
    46		lh_chroot_resolv install ${*}
    47		lh_chroot_hostname install ${*}
    48		lh_chroot_sources install ${*}
    49	fi
    50	
    51	# Building root filesystem
    52	lh_binary_rootfs ${*}

maybe line 46 should be removed or moved after line 52 ?!

Greetings
Jens




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live <debian-live-maint@lists.alioth.debian.org>:
Bug#447260; Package live-helper. 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-maint@lists.alioth.debian.org>. Full text and rfc822 format available.

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

From: Daniel Baumann <daniel@debian.org>
To: 447260@bugs.debian.org, Jens Thiele <karme@berlios.de>
Subject: Re: live-helper: resolv.conf should be removed from cache/stages_bootstrap/etc
Date: Wed, 16 Jan 2008 08:53:07 +0100
Hi,

assume we build chrooted, then the 'real' chroot (the one which ends up
in the live system) is already copied to chroot/chroot. the 'unreal'
chroot (the one which contains the build-tools such as squashfs-tools)
needs network access to install the build-tools.

that means, that the 'taining' of chroot/etc/resolv.conf is legimit and
will not end up in the live system.

assume we build non-chrooted, then the chroot is not touched at all, and
the live-system is build with the host tools.

that means, that the chroot/etc/resolv.conf is not touched because it is
not needed to be touched, and this is what ends up in the live system.

Assumed that people always build 'in order' (by calling lh_bootstrap,
lh_chroot and lh_binary; and not individual helpers directly), then,
there is as far as I can see still no possibility that resolv.conf is
tainted in any way. Do you see any?

Regards,
Daniel

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




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live <debian-live-maint@lists.alioth.debian.org>:
Bug#447260; Package live-helper. Full text and rfc822 format available.

Acknowledgement sent to Jens Thiele <karme@berlios.de>:
Extra info received and forwarded to list. Copy sent to Debian Live <debian-live-maint@lists.alioth.debian.org>. Full text and rfc822 format available.

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

From: Jens Thiele <karme@berlios.de>
To: daniel@debian.org
Cc: 447260@bugs.debian.org
Subject: Re: live-helper: resolv.conf should be removed from cache/stages_bootstrap/etc
Date: Wed, 16 Jan 2008 15:48:18 +0100
Daniel Baumann <daniel@debian.org> writes:

> Hi,
>
> assume we build chrooted, then the 'real' chroot (the one which ends up
> in the live system) is already copied to chroot/chroot. the 'unreal'
> chroot (the one which contains the build-tools such as squashfs-tools)
> needs network access to install the build-tools.

Ah, I missed the copying of the chroot => my analysis was clearly wrong.
I guess the real cause of my problems is the symlink problem described
in bug #457595.
If I find the time I will retry a completely clean build using the git
version of live-helper.

Greetings
Jens




Reply sent to daniel@debian.org:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Jens Thiele <karme@berlios.de>:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #32 received at 447260-done@bugs.debian.org (full text, mbox):

From: Daniel Baumann <daniel@debian.org>
To: 447260-done@bugs.debian.org
Date: Tue, 26 Feb 2008 19:16:14 +0100
Version: 1.0~a38-1

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




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 01 Apr 2008 07:33:33 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: Wed Apr 23 18:11:39 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.