[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

dchroot script (was Re: running openoffice from chroot)



Adam Skutt wrote:

Yes, but a better thing is to fix dchroot's / su's stupidity with a script (make this do_chroot):
#!/bin/bash

# Work around dchroot brain-deadness
ARGS=""
for i in "$@" ; do
        ARGS="$ARGS '$i'"
done

exec dchroot -c ia32 -d -q "`basename $0`" "$ARGS"


Thank you for the corrected script. I'd been planning on hacking up some sed-fu to do it, but his is a clean solution. Probably should be added to the FAQ.

-Peter



Reply to: