a2d55319e1
The infamous systemd infiltration through secondary "targets" using virtual dependencies started with syslogd-daemon, continued with network-config-subsystem and later with ntp-server; all of its implementations pulling in the main package which is explicitly unwanted in sysv-based images. Let's try employing pkgpriorities.
37 lines
1.3 KiB
Makefile
37 lines
1.3 KiB
Makefile
+sysvinit: use/init/sysv; @:
|
|
+systemd: use/init/systemd/full; @:
|
|
|
|
# NB: the list name MUST be identical to init package name
|
|
use/init: use/pkgpriorities
|
|
@$(call add_feature)
|
|
@$(call add,THE_LISTS,$$(INIT_TYPE))
|
|
@$(call add,PINNED_PACKAGES,$$(INIT_TYPE))
|
|
|
|
# THE_LISTS is too late when BASE_PACKAGES have pulled in
|
|
# the wrong syslogd-daemon provider already
|
|
use/init/sysv: use/init
|
|
@$(call set,INIT_TYPE,sysvinit)
|
|
@$(call add,BASE_PACKAGES,syslogd)
|
|
|
|
use/init/sysv/polkit: use/init/sysv
|
|
@$(call add,THE_PACKAGES,polkit-sysvinit)
|
|
|
|
use/init/sysv/consolekit: use/init/sysv
|
|
@$(call add,THE_PACKAGES,ConsoleKit ConsoleKit-x11 pam-ck-connector)
|
|
|
|
### i-f should be dropped as soon as rootfs scripts are effective there
|
|
use/init/systemd: use/init
|
|
@$(call set,INIT_TYPE,systemd)
|
|
@$(call add,INSTALL2_PACKAGES,installer-feature-journald-tty)
|
|
|
|
use/init/systemd/full: use/init/systemd
|
|
@$(call add,THE_PACKAGES,bash-completion-systemd)
|
|
|
|
# http://www.freedesktop.org/wiki/Software/systemd/Debugging
|
|
use/init/systemd/debug: use/init/systemd use/services
|
|
@$(call add,THE_PACKAGES,systemd-shutdown-debug-script)
|
|
@$(call add,SERVICES_ENABLE,debug-shell)
|
|
@$(call add,STAGE2_BOOTARGS,systemd.log_level=debug)
|
|
@$(call add,STAGE2_BOOTARGS,systemd.log_target=kmsg)
|
|
@$(call add,STAGE2_BOOTARGS,log_buf_len=1M enforcing=0)
|