[pkg-fso-maint] /proc required in chroots (was Re: [pkg-fso-commits] [SCM] Various non-packaged files branch, master, updated. 50c870bd1e33805ce150177e3256c7c4d65f5b88)

Luca Capello luca at pca.it
Thu Mar 19 17:27:55 UTC 2009


Hi Steffen!

On Thu, 19 Mar 2009 17:32:34 +0100, Steffen Moeller wrote:
> The following commit has been merged in the master branch:
> commit 50c870bd1e33805ce150177e3256c7c4d65f5b88
> Author: Steffen Moeller <moeller at debian.org>
> Date:   Wed Mar 18 13:36:13 2009 +0100
>
>     Added APT_OPTIONS to install of wicd
>     
>     Responing "n" to the question if wicd should be installed
>     will stop the installation process.
[...]
> diff --git a/install.sh b/install.sh
> index a013290..3129466 100755
> --- a/install.sh
> +++ b/install.sh
> @@ -119,6 +119,30 @@ TAR_PACKAGE=$INST_MIRROR/pool/main/t/tar/tar_1.20-1_armel.deb
>  # FUNCTIONS
>  #
>  
> +# for the installation of packages, /proc is sometimes required to be
> +# installed. cdebootstrap is installing it itself.

Again, please perform two commits in such a case:

- the first one about APT_OPTIONS for wicd

- the second one about /proc being mounted in the chroot, since
  according to the commit log you are touching nothing else than wicd

> @@ -696,6 +720,7 @@ action_mount () {
>  		fi
>  	fi
>  	echo "I: microSD card partitions mounted"
> +

This is a cosmetic change which should be committed separately.

Going back to the subject of this mail: why /proc must be mounted at
all?  I cannot see how this affect installation of wicd:

--8<---------------cut here---------------start------------->8---
Script started on Thu 19 Mar 2009 06:20:03 PM CET
gismo:/mnt/chroot# ls *.cow
base-lenny.cow	base-lenny-i386.cow  base-sid.cow  base-sid-i386.cow
gismo:/mnt/chroot# cp -r base-sid.cow test.cow
gismo:/mnt/chroot# mount
/dev/mapper/vggismo-lvroot on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda1 on /boot type ext2 (rw)
/dev/mapper/vggismo-lvhome on /home type ext3 (rw)
gismo:/mnt/chroot# chroot test.cow
(sid-amd64)root at gismo:/# mount
(sid-amd64)root at gismo:/# apt-get update
[...]

(sid-amd64)root at gismo:/# apt-get install wicd
[...]

The following NEW packages will be installed:
[...]

0 upgraded, 82 newly installed, 0 to remove and 1 not upgraded.
Need to get 37.3MB of archives.
After this operation, 106MB of additional disk space will be used.
Do you want to continue [Y/n]? y
[...]

Setting up wireless-tools (29-1.1) ...
Setting up wicd (1.5.9-5) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Processing triggers for python-support ...
(sid-amd64)root at gismo:/# echo $?
0
(sid-amd64)root at gismo:/# dpkg -s wicd
Package: wicd
Status: install ok installed
[...]

Homepage: http://wicd.sourceforge.net/
(sid-amd64)root at gismo:/# exit
gismo:/mnt/chroot# exit

Script done on Thu 19 Mar 2009 06:23:10 PM CET
--8<---------------cut here---------------end--------------->8---

Is there any package that strictly require /proc for installation?
AFAIK no, thus we should not mount it at all.

Thx, bye,
Gismo / Luca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 314 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-fso-maint/attachments/20090319/f59d4e80/attachment.pgp 


More information about the pkg-fso-maint mailing list