Your onto something...I tried renaming the file on both the rescue image
and then on the target system, and it didn't help..
I did find when running the strace it returned with a bunch of no such file
or directory as above and also:

chroot: failed to run command
"bin/bash"open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo",O_RDONLY)
WTF????  These files weren't on my system when it was running... why does
it need them now???  This is bizarre...



On Fri, Jul 7, 2017 at 1:47 PM, stan <stanl-fedorau...@vfemail.net> wrote:

> On Fri, 7 Jul 2017 12:04:23 -0700
> "Gerald B. Cox" <gb...@bzb.us> wrote:
>
> > the process was able to find my installation and mount it under
> > /mnt/sysimage
> >
> > Then it says:  If you would like to make your system the root
> > environment, run the command:
> >
> > chroot /mnt/sysimage
> >
> > I then get the response:
> > chroot:  failed to run command '/bin/bash':  Input/output error
> >
> > I checked and it is there.  What's going on?
>
> Don't know, but some research that might help.
>
> I found people with problems chrooting if they used a rescue disk that
> was a different architecture than their system (32 bit vs 64 bit).
>
> Someone said if they explicitly listed /bin/bash after the chroot
> command, it worked, others said it made no difference.
>
> The only solution I found for this on the web was that the file
> /usr/lib/locale/locale-archive caused a floating point exception.
> It isn't clear to me which system it was on.  It looks like it is the
> rescue system from the result below.
>
> https://bbs.archlinux.org/viewtopic.php?id=132271
>
> ...
> Result of strace -e trace=open chroot . /bin/bash:
>
> open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
> open("/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
> open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
> open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
> open("/usr/lib/locale/en_US.UTF-8/LC_IDENTIFICATION",
> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/en_US.utf8/LC_IDENTIFICATION",
> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/en_US/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) =
> -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/en.UTF-8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC)
> = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/en.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) =
> -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/en/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1
> ENOENT (No such file or directory) open("/etc/ld.so.cache",
> O_RDONLY|O_CLOEXEC) = 3 open("/lib/libreadline.so.6",
> O_RDONLY|O_CLOEXEC) = 3 open("/lib/libncursesw.so.5",
> O_RDONLY|O_CLOEXEC) = 3 open("/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
> open("/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 open("/dev/tty",
> O_RDWR|O_NONBLOCK)     = 3 open("/usr/lib/locale/locale-archive",
> O_RDONLY|O_CLOEXEC) = 3 --- {si_signo=SIGFPE, si_code=FPE_INTDIV,
> si_addr=0x7f6d662c1712} (Floating point exception) --- +++ killed by
> SIGFPE +++ Floating point exception
>
> deleting ./usr/lib/locale/locale-archive allows me to chroot.
> ...
> _______________________________________________
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
>
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to