Closed BrainStone closed 5 years ago
Don't know the reason, but i like just having init OR systemd. Mixing up both is like Raspbian.
P.S. i can't find systemd-sysv on my "buildbox" installed wih debian testing. Maybe that exclusion is not even neccessary (anymore)
I mean without it the commands like reboot
, poweroff
, shutdown
are all missing and I have to revert to systemctl reboot
.
From what I understand systemd-sysv
is the package that provides these.
I am building your config atm. If you remove that exclude you get systemd-sysv automatically back. Your totally right with the commands above
/sbin/halt
/sbin/init
/sbin/poweroff
/sbin/reboot
/sbin/runlevel
/sbin/shutdown
/sbin/telinit
...
We could replace the fixed exclude with a variable EXCLUDE_PACKAGES (we already got INCLUDE_PACKAGES) Per default it excludes above packages.
or just remove it
I mean it's not urgent to have that package, though I'd love to have it eventually, and I think it should be installed by default.
So maybe add a config for it? Or remove it altogether. Don't really see a purpose in removing these packages.
And is it really included by default without having to specify it in APT_INCLUDES
? Because in my config it is there.
Well, doesn't that essentially just do the same? It forcefully adds init,systemd-sysv
to the list of excludes.
Jap, i added ENABLE_SYSVINIT for this. Set it to ENABLE_SYSVINIT=true to get the desired packages. Default behaviour is still to remove them. Dirty Helper has to decide his defaults
Ah cool. I'm hoping this will get merged soon. Don't want to change the base repo of my submodule...
hi thanks for your report and answers. If I remember right this was added when a new debian release (stretch or buster) fully switched init to systemd and the building was broken if u did not exclude the systemd-sysv.
It can be added to buster. I didn't test jessie or stretch though
perfect
I noticed that the package
systemd-sysv
is actively removed when using buster or stretch: https://github.com/drtyhlpr/rpi23-gen-image/blob/95ed69af46701df47875794c0dd4d6339c0c51a8/bootstrap.d/10-bootstrap.sh#L24I noticed the comment above that says