On Sat, Jul 11, 2009 at 02:09:24PM +0300, Piavlo wrote:
Guido Günther wrote:
On Thu, Jul 09, 2009 at 06:33:36PM +0100, Richard W.M. Jones wrote:
On Thu, Jul 09, 2009 at 07:16:58PM +0300, Piavlo wrote:
Warning: You are running debirf as root. There is a potential for improperly written modules to damage your system. Are you sure you wish to continue? [y|N]: y
Is it a good idea to run debirf as root?
I assume Piavlo is doing this since he lacks fakechroot.
No actually fakechroot is installed , this is what the libguestfs installation process does. I not familiar with deboostrap/debirf internals - any idea why the installed fakechroot is not being used automatically by debirf? You need to figure out why debirf thinks you're running as uid 0. Either you're really doing so or you're running with fakeroot already. You should do neither of those and it will work:
if [ $(id -u) = '0' ] ; then cat <<EOF Warning: You are running debirf as root. There is a potential for improperly written modules to damage your system. EOF if [ "$ROOT_WARNING" = 'true' ] ; then read -p "Are you sure you wish to continue? [y|N]: " OK; OK=${OK:=N} if [ "${OK/y/Y}" != 'Y' ] ; then failure "aborting." fi fi fi Cheers, -- Guido