Hi,

May this bug #850080 be a consequence of #814358 (and [1]) ?

It doesn't occur if /bin/sh is a symlink to bash.
The default install by debootstrap results in /bin/sh pointing to dash
and this bug showing up.

It would be solved if we ensure that /usr/bin/fakeroot is interpreted by
bash.

$ head -1 /usr/bin/fakeroot
#!/bin/sh

Would the patch below suffice ?

$ debirf make minimal
[ ... ]
debirf> modules complete
debirf> creating debirf initrd ('nested')...
debirf> creating rootfs.cgz...
648005 blocks
debirf> creating wrapper cgz...
223752 blocks
debirf> debirf initrd created.
debirf> kernel: /home/me/minimal/vmlinuz-4.9.0-2-amd64
debirf> initrd: /home/me/minimal/debirf-minimal_sid_4.9.0-2-amd64.cgz
$ echo $?
0


Regards,
JH Chatenet

[1] : http://www.mail-archive.com/dash@vger.kernel.org/msg01147.html

--- a/usr/share/debirf/common
+++ b/usr/share/debirf/common
@@ -45,7 +45,7 @@
            failure "Debirf fakeroot state file '$DEBIRF_FAKEROOT_STATE' does 
not exist."
        fi
         # set up $PATH and $HOME as though we are superuser
-       HOME=/root 
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin fakeroot -i 
"$DEBIRF_FAKEROOT_STATE" -s "$DEBIRF_FAKEROOT_STATE" "$@"
+       HOME=/root 
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin bash fakeroot 
-i "$DEBIRF_FAKEROOT_STATE" -s "$DEBIRF_FAKEROOT_STATE" "$@"
     fi
 }
 export -f fakeroot_if_needed

Reply via email to