lmi
[Top][All Lists]
Advanced

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

Re: [lmi] Creating a chroot for cross-building lmi


From: Greg Chicares
Subject: Re: [lmi] Creating a chroot for cross-building lmi
Date: Mon, 26 Sep 2016 01:35:51 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.2.0

On 2016-09-25 21:20, Greg Chicares wrote:
[...]
> /srv/chroot/xlmi[0]$<apt-get-log sed -e'0,/^Preconfiguring/d' 
> -e'/^Preparing\|^Unpacking\|^Configuring\|^Selecting\|^(Reading database/d'

Here's an update (everything looks good now). After umount-ing
everything in the chroot, I did this as root (on the host):

address@hidden:/srv/chroot# rm -rf xlmi/
address@hidden:/srv/chroot# mkdir -p /srv/chroot/xlmi
address@hidden:/srv/chroot# debootstrap --arch=amd64 
--unpack-tarball=/var/cache/jessie_bootstrap.tar jessie /srv/chroot/xlmi 
>xlmi-debootstrap-log 2>&1
address@hidden:/srv/chroot# <xlmi-debootstrap-log sed -e'/^I:/d'
[no output--good]
address@hidden:/srv/chroot# cat >/etc/schroot/chroot.d/xlmi.conf <<\EOF
> [xlmi]
> description=debian-8 cross build
> directory=/srv/chroot/xlmi
> users=greg
> groups=greg
> root-groups=root
> # type=plain
> EOF
address@hidden:/srv/chroot# exit

and then, entering the new chroot as root:

schroot --chroot=xlmi --user=root --directory=/
address@hidden:/# dpkg --add-architecture i386
address@hidden:/# cat >/usr/sbin/policy-rc.d <<EOF
> #!/bin/sh
> exit 101
> EOF
address@hidden:/# chmod a+x /usr/sbin/policy-rc.d
address@hidden:/# dpkg-divert --divert /usr/bin/ischroot.debianutils --rename 
/usr/bin/ischroot
Adding 'local diversion of /usr/bin/ischroot to /usr/bin/ischroot.debianutils'
address@hidden:/# ln -s /bin/true /usr/bin/ischroot
address@hidden:/# mount -t devpts devpts /dev/pts
address@hidden:/# mount -t proc proc /proc
address@hidden:/# apt-get update
[...snip unremarkable output...]
address@hidden:/# apt-get --assume-yes install g++-mingw-w64-i686 automake 
libtool make \
>  pkg-config git zsh bzip2 unzip sudo wine >apt-get-log 2>&1

and now, examining that log as a normal user:

/srv/chroot/xlmi[0]$<apt-get-log sed -e'0,/^Preconfiguring/d' 
-e'/^Preparing\|^Unpacking\|^Configuring\|^Selecting\|^Setting 
up\|^Processing\|^Adding\|^update-alternatives\|^(Reading database/d'
Fetched 247 MB in 4min 34s (900 kB/s)
Moving old data out of the way
update-rc.d: warning: start and stop actions are no longer supported; falling 
back to defaults
invoke-rc.d: policy-rc.d denied execution of start.
No schema files found: doing nothing.
No schema files found: doing nothing.
Done.
Warning: The home dir /run/uuidd you specified can't be accessed: No such file 
or directory
Not creating home directory `/run/uuidd'.
invoke-rc.d: policy-rc.d denied execution of start.
invoke-rc.d: policy-rc.d denied execution of start.
invoke-rc.d: policy-rc.d denied execution of restart.
Updating certificates in /etc/ssl/certs... 174 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.

Manually supplying context for the interesting parts:

Setting up libglib2.0-0:amd64 (2.42.1-1+b1) ...
No schema files found: doing nothing.
Setting up libglib2.0-0:i386 (2.42.1-1+b1) ...
No schema files found: doing nothing.

(low-level GTK stuff--doing nothing sounds okay)

Setting up uuid-runtime (2.25.2-6) ...
Adding group `uuidd' (GID 109) ...
Done.
Warning: The home dir /run/uuidd you specified can't be accessed: No such file 
or directory
Adding system user `uuidd' (UID 104) ...
Adding new user `uuidd' (UID 104) with group `uuidd' ...
Not creating home directory `/run/uuidd'.
invoke-rc.d: policy-rc.d denied execution of start.

Setting up dbus (1.8.20-0+deb8u1) ...
invoke-rc.d: policy-rc.d denied execution of start.

Setting up rsync (3.1.1-3) ...
invoke-rc.d: policy-rc.d denied execution of restart.

(three cheers for policy-rc.d)

I see nothing weird with 'mount' or 'ps'.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]