Hi,

I got the same result :

mknod: 'dev/ttyS0': Permission denied

The patch below solved the issue.

It is perhaps advisable to not chroot before making a
new device node (as in debirf version 0.33, 
file /usr/bin/debirf, line 135 :
        fakeroot_if_needed sh -c "mknod $DEBIRF_ROOT/dev/console c 5 1; chmod 
0600 $DEBIRF_ROOT/dev/console"
which doesn't cause any error)

Thank you for making debirf such a useful tool !

Regards,
JH Chatenet

--- a/usr/share/debirf/modules/serial-terminal
+++ b/usr/share/debirf/modules/serial-terminal
@@ -32,10 +32,10 @@
 debirf_exec chown root:root "${SCRIPTED_GETTY}"
 
 # make sure the basic serial devices are present
-debirf_exec mknod dev/ttyS0 c 4 64
-debirf_exec mknod dev/ttyS1 c 4 65
-debirf_exec mknod dev/ttyS2 c 4 66
-debirf_exec mknod dev/ttyS3 c 4 67
+mknod "${DEBIRF_ROOT}/dev/ttyS0" c 4 64
+mknod "${DEBIRF_ROOT}/dev/ttyS1" c 4 65
+mknod "${DEBIRF_ROOT}/dev/ttyS2" c 4 66
+mknod "${DEBIRF_ROOT}/dev/ttyS3" c 4 67
 
 if grep "$SCRIPTED_GETTY" "$INITTAB" | grep -q -v "^[[:space:]]*#" ; then
     echo "inittab already has a getty on the console."


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to