Skip to main content
Topic: [SOLVED / WORKED AROUND] Dinit doesn't initialize TTYs (Read 269 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

[SOLVED / WORKED AROUND] Dinit doesn't initialize TTYs

After an update of dinit-rc, the initialization of the TTYs fails.

At fault is, that the scripts /usr/lib/dinit/agetty-default and /usr/lib/dinit/agetty
are not written POSIX compliant but bash specificly.

You can reproduce the error by installing a POSIX compliant shell like dash
and setting that as default shell or specifying it as environment for the script.

To fix it apply following changes (.bak postfix being the old/original file):
Code: [Select]
$: diff /usr/lib/dinit/agetty-default{,.bak}  
1c1 
< #!/bin/bash 
\--- 
\> #!/bin/sh 
$: diff /usr/lib/dinit/agetty{,.bak} 
1c1 
< #!/bin/bash 
\--- 
\> #!/bin/sh 


I hope in the future update this two files will either be written with POSIX in mind.
For more context of the error messages visit the comment section of this reddit post.

Re: [SOLVED / WORKED AROUND] Dinit doesn't initialize TTYs

Reply #1
Pushed a fix, should be in dinit-rc-0.2.3 now. Thanks for reporting.
now only the dinit guy in artix