Source: libc6
Version: 2.17-97
Severity: important

Dear Maintainer,

I have embarked on a journey to use multistrap to build a debian rootfs for an
armel target from an amd64 host.

Having completed this step:

sudo multistrap -a armel -d EmDebian/ -f emdebian.conf

I then try to:

sudo chroot EmDebian/

But was getting this error:

chroot: cannot run command `/bin/bash': No such file or directory

After attempting all the normal work-arounds for this problem, and a little IRC
discussion with wookey on oftc.net in #emdebian, we discovered I was missing
$CHROOTDIR/etc/ld.so.conf.

Copying this file from my host's /etc/ld.so.conf - which contained only
"include /etc/ld.so.conf.d/*.conf" into the chroot directory - fixed the
problem.

It seems that ld.so.conf is generated in the postinst script. Is this
necessary?

We can't run postinst scripts until we chroot in and do dpkg --configure -a,
but dpkg won't work until we chroot in and do dpkg --configure -a...

For now, I'll need to:
echo 'include /etc/ld.so.conf.d/*.conf' >> $CHROOTDIR/etc/ld.so.conf

before I can chroot into $CHROOTDIR.



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (899, 'testing'), (500, 'testing-updates'), (500, 'unstable'), 
(500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: armel

Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to