Hello,
On Mon, 11 Dec 2017, Helmut Jarausch wrote:
>But now, don't ask me why,
>chroot /OtherGentoo /bin/bash
>dies of a segment fault.
>
>Is there any means to repair such a Gentoo system short of rebuilding it
>(nearly) from scratch?
How about a bit of debugging first?
# catchsegv chroot /OtherGentoo /bin/bash
# cd /OtherGentoo/ && chroot /OtherGentoo/ /bin/bash
(ISTR, there was/is a reason for first cd-ing into the chroot and then
chrooting with the full-path...)
Have you (bind) mounted /sys, /dev, /proc into the chroot?
I use this as the top and bottom of a little bit longer
chroot-wrapper-script:
==== /root/bin/chrooter ====
#!/bin/bash
root="$1"
shift
test -e "${root}/proc/kcore" || mount --bind /proc/ "${root}/proc"
test -e "${root}/sys/block" || mount --bind /sys/ "${root}/sys"
test -e "${root}/dev/root" || mount --bind /dev/ "${root}/dev"
test -e "${root}/dev/pts/0" || mount --bind /dev/pts/ "${root}/dev/pts"
[..]
cd "$root"
chroot "$root" /bin/bash -l
====
HTH,
-dnh
--
cat /kat/ n. A furry keyboard cover