Debian Bug report logs - #538348
pkgsel/tasksel: can no longer determine free space for desktop task

version graph

Package: pkgsel; Maintainer for pkgsel is Debian Install System Team <[email protected]>;

Reported by: Frans Pop <[email protected]>

Date: Sat, 25 Jul 2009 01:24:01 UTC

Severity: normal

Found in version pkgsel/0.25

Reply or subscribe to this bug.

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


Report forwarded to [email protected], Debian Install System Team <[email protected]>:
Bug#538348; Package pkgsel. (Sat, 25 Jul 2009 01:24:04 GMT) (full text, mbox, link).


Acknowledgement sent to Frans Pop <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian Install System Team <[email protected]>. (Sat, 25 Jul 2009 01:24:04 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Frans Pop <[email protected]>
To: Debian BTS Submit <[email protected]>
Subject: pkgsel/tasksel: can no longer determine free space for desktop task
Date: Sat, 25 Jul 2009 03:21:00 +0200
Package: pkgsel
Version: 0.25

tasksel wants to do in the target chroot:
tasksel/tests/desktop:  disk=$(df -P /usr | tail -1 | awk '{print $4}')

But this fails with:
in-target: df:
in-target: Warning: cannot read table of mounted file systems
in-target: : No such file or directory

Probably related to the problem reported by Martin re. initramfs-tools:
an incorrect state of /etc/mtab in /target. It may also a result of the 
change Colin committed in debootstrap this week.




Information forwarded to [email protected], Debian Install System Team <[email protected]>:
Bug#538348; Package pkgsel. (Sat, 25 Jul 2009 10:36:02 GMT) (full text, mbox, link).


Acknowledgement sent to Colin Watson <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <[email protected]>. (Sat, 25 Jul 2009 10:36:02 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Colin Watson <[email protected]>
To: Frans Pop <[email protected]>, [email protected]
Subject: Re: Bug#538348: pkgsel/tasksel: can no longer determine free space for desktop task
Date: Sat, 25 Jul 2009 11:10:24 +0100
On Sat, Jul 25, 2009 at 03:21:00AM +0200, Frans Pop wrote:
> tasksel wants to do in the target chroot:
> tasksel/tests/desktop:  disk=$(df -P /usr | tail -1 | awk '{print $4}')
> 
> But this fails with:
> in-target: df:
> in-target: Warning: cannot read table of mounted file systems
> in-target: : No such file or directory
> 
> Probably related to the problem reported by Martin re. initramfs-tools:
> an incorrect state of /etc/mtab in /target. It may also a result of the 
> change Colin committed in debootstrap this week.

Mm, yes, that's probable, although without that change it would
presumably have been getting garbage data from /etc/mtab anyway. (df
doesn't seem to fall back to /proc/mounts.)

Perhaps we should temporarily make /target/etc/mtab a symlink to
/proc/mounts while running tasksel? Eventually I believe the plan is to
do that in the regular system anyway, but until the rest of the world
catches up ...

-- 
Colin Watson                                       [[email protected]]




Information forwarded to [email protected], Debian Install System Team <[email protected]>:
Bug#538348; Package pkgsel. (Sat, 25 Jul 2009 13:00:03 GMT) (full text, mbox, link).


Acknowledgement sent to Frans Pop <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <[email protected]>. (Sat, 25 Jul 2009 13:00:03 GMT) (full text, mbox, link).


Message #15 received at [email protected] (full text, mbox, reply):

From: Frans Pop <[email protected]>
To: [email protected]
Subject: Re: Bug#538348: pkgsel/tasksel: can no longer determine free space for desktop task
Date: Sat, 25 Jul 2009 14:55:57 +0200
On Saturday 25 July 2009, Colin Watson wrote:
> > Probably related to the problem reported by Martin re.
> > initramfs-tools: an incorrect state of /etc/mtab in /target. It may
> > also a result of the change Colin committed in debootstrap this week.
>
> Mm, yes, that's probable, although without that change it would
> presumably have been getting garbage data from /etc/mtab anyway. (df
> doesn't seem to fall back to /proc/mounts.)
>
> Perhaps we should temporarily make /target/etc/mtab a symlink to
> /proc/mounts while running tasksel? Eventually I believe the plan is to
> do that in the regular system anyway, but until the rest of the world
> catches up ...

Won't that have the /target prefix in it for some mounts and thus be 
unusable inside a chroot?




Information forwarded to [email protected], Debian Install System Team <[email protected]>:
Bug#538348; Package pkgsel. (Sun, 26 Jul 2009 10:15:12 GMT) (full text, mbox, link).


Acknowledgement sent to Colin Watson <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <[email protected]>. (Sun, 26 Jul 2009 10:15:13 GMT) (full text, mbox, link).


Message #20 received at [email protected] (full text, mbox, reply):

From: Colin Watson <[email protected]>
To: Frans Pop <[email protected]>, [email protected]
Subject: Re: Bug#538348: pkgsel/tasksel: can no longer determine free space for desktop task
Date: Sun, 26 Jul 2009 10:59:36 +0100
On Sat, Jul 25, 2009 at 02:55:57PM +0200, Frans Pop wrote:
> On Saturday 25 July 2009, Colin Watson wrote:
> > Mm, yes, that's probable, although without that change it would
> > presumably have been getting garbage data from /etc/mtab anyway. (df
> > doesn't seem to fall back to /proc/mounts.)
> >
> > Perhaps we should temporarily make /target/etc/mtab a symlink to
> > /proc/mounts while running tasksel? Eventually I believe the plan is to
> > do that in the regular system anyway, but until the rest of the world
> > catches up ...
> 
> Won't that have the /target prefix in it for some mounts and thus be 
> unusable inside a chroot?

/proc/mounts is sensitive to the root directory of the process reading
it.

-- 
Colin Watson                                       [[email protected]]




Information forwarded to [email protected], Debian Install System Team <[email protected]>:
Bug#538348; Package pkgsel. (Sun, 26 Jul 2009 18:15:05 GMT) (full text, mbox, link).


Acknowledgement sent to Frans Pop <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <[email protected]>. (Sun, 26 Jul 2009 18:15:05 GMT) (full text, mbox, link).


Message #25 received at [email protected] (full text, mbox, reply):

From: Frans Pop <[email protected]>
To: [email protected]
Subject: Re: Bug#538348: pkgsel/tasksel: can no longer determine free space for desktop task
Date: Sun, 26 Jul 2009 20:12:41 +0200
On Sunday 26 July 2009, Colin Watson wrote:
> On Sat, Jul 25, 2009 at 02:55:57PM +0200, Frans Pop wrote:
> > Won't that have the /target prefix in it for some mounts and thus be
> > unusable inside a chroot?
>
> /proc/mounts is sensitive to the root directory of the process reading
> it.

Well, only to a degree. It will still show all the mounts of the host 
system besides the ones in the chroot. So you'd have to be damned careful 
when parsing it.

fjp@aragorn:~$ grep proc /proc/mounts
none /proc proc rw,nosuid,nodev,noexec,relatime 0 0
proc /srv/chroots/amd64-etch/proc proc rw,relatime 0 0
proc /srv/chroots/amd64-sid/proc proc rw,relatime 0 0
proc /srv/chroots/i386-sid/proc proc rw,relatime 0 0

fjp@aragorn:~$ sudo chroot /srv/chroots/amd64-sid

(amd64-sid)root@aragorn:/# grep proc /proc/mounts
none /proc proc rw,nosuid,nodev,noexec,relatime 0 0
proc /srv/chroots/amd64-etch/proc proc rw,relatime 0 0
proc /proc proc rw,relatime 0 0
proc /srv/chroots/i386-sid/proc proc rw,relatime 0 0

In the example above, how would you know to take the third line and not 
the first line?

You could have something like:
/dev/hda1 /home [...]
/dev/hda2 /chroot/home [...]

Which in the chroot would show up as:
/dev/hda1 /home [...]
/dev/hda2 /home [...]

Probably in the D-I case the mounts in the D-I environment are normally 
straightforward enough [1] so they can be taken into account, but it 
still seems quite tricky. We'd have to be careful about /.
Even then it seems to me that we could easily have breakage if a user 
mounts anything manually in unexpected places.

[1] Especially as we use an unusual dir for hd-media; maybe we should 
consider also using an unusual dir for the installation CD in the D-I 
environment.




Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 19:57:41 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.