1 |
Hello, |
2 |
|
3 |
On Mon, 11 Dec 2017, Helmut Jarausch wrote: |
4 |
>But now, don't ask me why, |
5 |
>chroot /OtherGentoo /bin/bash |
6 |
>dies of a segment fault. |
7 |
> |
8 |
>Is there any means to repair such a Gentoo system short of rebuilding it |
9 |
>(nearly) from scratch? |
10 |
|
11 |
How about a bit of debugging first? |
12 |
|
13 |
# catchsegv chroot /OtherGentoo /bin/bash |
14 |
# cd /OtherGentoo/ && chroot /OtherGentoo/ /bin/bash |
15 |
|
16 |
(ISTR, there was/is a reason for first cd-ing into the chroot and then |
17 |
chrooting with the full-path...) |
18 |
|
19 |
Have you (bind) mounted /sys, /dev, /proc into the chroot? |
20 |
|
21 |
I use this as the top and bottom of a little bit longer |
22 |
chroot-wrapper-script: |
23 |
|
24 |
==== /root/bin/chrooter ==== |
25 |
#!/bin/bash |
26 |
root="$1" |
27 |
shift |
28 |
|
29 |
test -e "${root}/proc/kcore" || mount --bind /proc/ "${root}/proc" |
30 |
test -e "${root}/sys/block" || mount --bind /sys/ "${root}/sys" |
31 |
test -e "${root}/dev/root" || mount --bind /dev/ "${root}/dev" |
32 |
test -e "${root}/dev/pts/0" || mount --bind /dev/pts/ "${root}/dev/pts" |
33 |
[..] |
34 |
cd "$root" |
35 |
chroot "$root" /bin/bash -l |
36 |
==== |
37 |
|
38 |
HTH, |
39 |
-dnh |
40 |
|
41 |
-- |
42 |
cat /kat/ n. A furry keyboard cover |