go-debos / debos

Debian OS builder
Apache License 2.0
542 stars 139 forks source link

RFE: reboot into systemd? #308

Open rektide opened 2 years ago

rektide commented 2 years ago

Hello. There's a lot of systemd utilities I prefer which just don't work. For example, trying to use hostnamectl says:

2022/02/14 03:10:37 hostnamectl set-hostname debos | System has not been booted with systemd as init system (PID 1). Can't operate.
2022/02/14 03:10:37 hostnamectl set-hostname debos | Failed to connect to bus: Host is down

I'm sure there's a lot more than just rebooting that it would take to make a functional systemd possible, but it would be pretty excellent to be able to reboot with a new init=. I'm not sure how actions are injected now, nor what kind of changes would have to be enacted to inject actions after having systemd pid1. But this would be a big help, & greatly expand what is possible to do with debos.

obbardc commented 2 years ago

Can you try the run action with chroot: true? Also it'd be great if you added a minimum reproduction recipe with your bug report :-)