Re: dchroot with sid



On Fri, 2006-06-30 at 19:16 +0100, Dave Ewart wrote:
On Friday, 30.06.2006 at 12:39 -0500, Owen Heisler wrote:
I have a 32-bit sid chroot installed at /var/chroot/unstable-ia32 on my
amd64 Sarge system.

But I get this error with any command:

# dchroot -d -c unstable ls
(unstable) ls
/bin/ls: /bin/ls: cannot execute binary file
dchroot: Child exited non-zero.
dchroot: Operation failed.

I used the amd64 howto to do this, and started with a sarge
installation, then upgraded to etch, then sid. At etch, I started
getting this error.

I have copied /etc/passwd, /etc/shadow, and /etc/group into the chroot.

I have modified /etc/fstab (on the "host" 64-bit) to
include /var/chroot/unstable-ia32/home, tmp, and proc.

Any suggestions?

Looks like you've hit
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=360604

Read the report for some tips. As a further note, you've probably find
that you *will* be able to run *scripts*, if not executables, so you can
write a small wrapper round your executables as a temporary workaround.

Okay, here is something from that page:
___
As a workarround, you can set the SU_NO_SHELL_ARGS environment variable
before calling dchroot, or execute
dchroot -- -c "command"
instead of
dchroot -- command
___

How do I set the SU_NO_SHELL_ARGS env var? "set SU_NO_SHELL_ARGS=1" doesn't help.
And I already am using the -c option for dchroot to specify the unstable chroot.

And you say write a script, so I put the following in ~/go
___
#!/bin/bash
dchroot -d -c unstable ls
___
but I get the same error when I run "./go".

Thanks for your help!


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: dchroot with sid
    ... change in the options parsing and command execution. ... The schroot syntax (which dchroot in sid is transiently using) is ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: dchroot with sid
    ... amd64 Sarge system. ... But I get this error with any command: ... dchroot: Child exited non-zero. ... installation, then upgraded to etch, then sid. ...
    (Debian-User)
  • Re: dchroot with sid
    ... before calling dchroot, or execute ... Isn't the syntax in that original command, you posted from the bug report ... but just to be clear on the above: you need to call the script *in the ...
    (Debian-User)
  • Re: dchroot with sid
    ... before calling dchroot, or execute ... change in the options parsing and command execution. ... The schroot syntax is ...
    (Debian-User)
  • dchroot with sid
    ... amd64 Sarge system. ... dchroot: Child exited non-zero. ... installation, then upgraded to etch, then sid. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)