pleroma.debian.social

pleroma.debian.social

debian is a boring distro
i wanna do something funky with it but idk what

@rose do debian openrc :3

@navi do you have any article or guide explainig it? sounds fun

@rose only this https://wiki.debian.org/OpenRC -- and it's quite bare bones

there's one person in #openrc that uses debian with it that i know of, which is why i suggested, doesn't seem to be that explored of a setup

@navi ohh i see
i could try it, this isnt like my main device or anything so i dont care what happens with it

@rose hit any issues do ask me

i'm interested on how the process is (and what i can do to make it easier)

@navi I just did a very naive "apt install openrc"
is this actually openrc? didn't know it needs an inittab

@rose openrc-init doesn’t, but if you’re using sysvinit you do

The process with id 1 is usually the one starting all services, this is the init. With openrc on debian this defaults to sysvinit. While this also works fine, you might want to switch that to openrc's own init, openrc-init.

Assuming you are using grub, first append /etc/default/grub:

...
GRUB_CMDLINE_LINUX_DEFAULT="init=/sbin/openrc-init rw"
...

@navi ohh ok I'm guessing debian still uses sysvinit by default

@navi maybe stupid question but why does openrc need rw? sysd seems to get by with ro perfectly fine

@rose by all i know, it doesn’t, dunno what’s up with those docs

ftr, my cmdline: BOOT_IMAGE=/boot/vmlinuz-6.15.5-gentoo-dist root=UUID=... ro init=/sbin/openrc-init

@navi oh weird
I tried with ro and it did actually fail, it tried to write to the root and got some read only root errors (as expected ig)

@rose that's a bug then, what did it error out about, if you can get that info?

@navi I'm trying to get to a login prompt rn, I'll tell you once I get there

@navi also this is openrc 0.45.2 idk how up to date that is

@rose current version is 0.62.6...

0.45.2 came out... july 3, 2022

so uh, that's, not good

@navi @rose It's possible, but quite involved. The easiest way ist to chroot your existing system and then purge systemd and install openRC. I did this when I installed my machine. The way to do this with a running system includes telling apt to deliberately remove essential packages, which is not something for the inexperienced. That being said, I'm a happy #Debian user who runs also openRC (and likely one of 2 Debian Developers to do so).
replies
2
announces
0
likes
2

@navi I should update the wiki page at some point, also write user services in Debian for openRC

@werdahias @navi ah ok I guess I doomed myself for failure by installing openrc and rebooting before doing anything else
my apt skills aren't the best so I'll see if I can get myself out of this mess :p

@rose @navi blame systemd for not allowing its removal while being PID1

@werdahias @navi wait what do you mean? I thought this was some safety measure debian put in place

@rose @navi FYI, the new release (Trixie) on August 9th will have 0.56, and it's up to date in experimental

@rose @navi no, with sysvibit you can just switch it out for other inits. That apt complains is a different issue, but that's somewhat justified

@navi got everything working now, turns out I had some mount service missing from the sysinit runlevel
debian has been openrcd now hehe