troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
633 stars 64 forks source link

Setting runlevel at kernel cmdline #261

Closed troglobit closed 2 years ago

troglobit commented 2 years ago

Discussed in https://github.com/troglobit/finit/discussions/259

Originally posted by **hongkongkiwi** May 6, 2022 I'm wondering the read order of runlevel in finit (cmdline/config). Right now, I have runlevel 3 set in my /etc/finit.conf config via `runlevel 3`. This makes sense as a default. If the runlevel is set via the kernel commandline I would like to override the runlevel set in the config (because obviously we are specifically asking for it to be something). That's how I expected it to work but it seems to not be doing that. Is this a bug or by design? e.g. here's my kernel cmdline: `quiet 9 -- finit.fstab=/etc/myfstab` So according to this I should expect finit will launch at runlevel 9 , but after reading the finit.conf it changes it to runlevel 3.