Martin Michlmayr <[EMAIL PROTECTED]> writes: > It's because SHELL is /bin/zsh which doesn't exist in the chroot. And > the -p option tells login to keep the environment, so it fails... > > sh-3.1# /bin/su root -p -c 'ls -la' > sh-3.1# unset SHELL > sh-3.1# /bin/su root -p -c 'ls -la' > total 88 > drwxr-xr-x 22 root root 4096 Jul 15 00:59 . > drwxr-xr-x 22 root root 4096 Jul 15 00:59 .. > ...
Ah, I see. Please could you try applying the attached patch to /usr/share/perl5/Sbuild/Chroot.pm? This should do the trick. Thanks, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `- GPG Public Key: 0x25BFB848 Please sign and encrypt your mail.
Index: Sbuild/Chroot.pm =================================================================== --- Sbuild/Chroot.pm (revision 867) +++ Sbuild/Chroot.pm (working copy) @@ -155,6 +155,7 @@ } else { $ENV{'APT_CONFIG'} = $chroot_aptconf; } + $ENV{'SHELL'} = "/bin/sh"; # Always write out apt.conf, because it gets outdated # if the chroot_mode is changed...
pgpkM3SbT07Hg.pgp
Description: PGP signature