Bash not working in chroot environment during update
Dear openSUSE experts, I am to try to recover system via update Now package update crashes on /bin/sh not found even if it exist It seems that bash dose not work in chroot environment as of /mnt/bin/bash works chroot /mnt /bin/bash crashes on file not found ldconfig -vr /mnt as well as running ldconfig in busybox as of chroot /mnt /bin/busybox ldconfig -v does not help ldd dose not run in busybox as vell I was mentioned to copy some *so* library files for install usb into system to be updated but I am not sure about minimal set of libraries to be copied as I am to influence updated system at miniml possible level Is there anybody do help me with this problem I look forward hearing from you Yours faithfully Peter Fodrek,j.r.
Dňa 16. 6. 2022 o 15:50 Fodrek Peter ml. napísal(a):
Dear openSUSE experts,
I am to try to recover system via update
Now package update crashes on /bin/sh not found even if it exist
It seems that bash dose not work in chroot environment as of
/mnt/bin/bash
works
chroot /mnt /bin/bash crashes on file not found
ldconfig -vr /mnt
as well as running ldconfig in busybox as of
chroot /mnt /bin/busybox
not chroot /mnt /bin/busybox but chroot /mnt /bin/busybox ash was used by me surely
ldconfig -v
does not help
ldd dose not run in busybox as vell
I was mentioned to copy some *so* library files for install usb into system to be updated but I am not sure about minimal set of libraries to be copied as I am to influence updated system at miniml possible level
Is there anybody do help me with this problem
I look forward hearing from you
Yours faithfully
Peter Fodrek,j.r.
Hi, Likely you need to bind mount some directories into the chroot beforehand. # mount /dev/<system partition> /mnt # mount -o bind /dev /mnt/dev # mount -o bind /sys /mnt/sys # mount -o bind /proc /mnt/proc # chroot /mnt /bin/bash However, you mention it complains about "file not found" - if the actual binary is not found, you would need to install it in the mounted partition first. # zypper -R /mnt in bash bash-sh Best, Georg On 6/16/22 15:50, Fodrek Peter ml. wrote:
Dear openSUSE experts,
I am to try to recover system via update
Now package update crashes on /bin/sh not found even if it exist
It seems that bash dose not work in chroot environment as of
/mnt/bin/bash
works
chroot /mnt /bin/bash crashes on file not found
ldconfig -vr /mnt
as well as running ldconfig in busybox as of
chroot /mnt /bin/busybox ldconfig -v
does not help
ldd dose not run in busybox as vell
I was mentioned to copy some *so* library files for install usb into system to be updated but I am not sure about minimal set of libraries to be copied as I am to influence updated system at miniml possible level
Is there anybody do help me with this problem
I look forward hearing from you
Yours faithfully
Peter Fodrek,j.r.
participants (2)
-
Fodrek Peter ml.
-
Georg Pfuetzenreuter