config.mk 2.2 KB
Newer Older
Michael Shigorin's avatar
Michael Shigorin committed
1
+sysvinit: use/init/sysv; @:
2
+systemd: use/init/systemd/full; @:
3
+systemd-optimal: use/init/systemd/settings/optimal; @:
Michael Shigorin's avatar
Michael Shigorin committed
4

5 6
# NB: the list name MUST be identical to init package name
use/init: use/pkgpriorities
Michael Shigorin's avatar
Michael Shigorin committed
7 8
	@$(call add_feature)
	@$(call add,THE_LISTS,$$(INIT_TYPE))
9
	@$(call add,PINNED_PACKAGES,$$(INIT_TYPE))
Michael Shigorin's avatar
Michael Shigorin committed
10

11 12
# THE_LISTS is too late when BASE_PACKAGES have pulled in
# the wrong syslogd-daemon provider already
Michael Shigorin's avatar
Michael Shigorin committed
13 14
use/init/sysv: use/init
	@$(call set,INIT_TYPE,sysvinit)
15
	@$(call add,THE_PACKAGES,rsyslog-classic startup)
16
	@$(call add,THE_PACKAGES,udev-rule-generator)
17
	@$(call add,THE_PACKAGES,apt-conf-ignore-systemd)
18
	@$(call add,DEFAULT_SERVICES_ENABLE,udevd-final)
19
	@$(call add,PINNED_PACKAGES,rsyslog-classic)
20
	@$(call add,PINNED_PACKAGES,systemd-utils-standalone:Essential)
21
	@$(call add,PINNED_PACKAGES,apt-conf-ignore-systemd:Essential)
22 23 24
ifeq (,$(filter-out x86_64 aarch64,$(ARCH)))
	@$(call add,THE_PACKAGES,mount-efivars)
endif
Michael Shigorin's avatar
Michael Shigorin committed
25

26 27 28
use/init/sysv/polkit: use/init/sysv
	@$(call add,THE_PACKAGES,polkit-sysvinit)

Michael Shigorin's avatar
Michael Shigorin committed
29 30 31
### i-f should be dropped as soon as rootfs scripts are effective there
use/init/systemd: use/init
	@$(call set,INIT_TYPE,systemd)
32

33
use/init/systemd/full: use/init/systemd
34
	@$(call add,THE_PACKAGES,chkconfig)
35 36 37
ifeq (,$(filter-out i586 x86_64,$(ARCH)))
	@$(call add,THE_PACKAGES,vconsole-setup-kludge)
endif
38

39
# http://www.freedesktop.org/wiki/Software/systemd/Debugging
40
use/init/systemd/debug: use/init/systemd use/services
41
	@$(call add,THE_PACKAGES,systemd-shutdown-debug-script)
42
	@$(call add,SERVICES_ENABLE,debug-shell)
43 44 45
	@$(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)
46 47 48 49

# set multi-user target by default
use/init/systemd/multiuser: use/init/systemd
	@$(call add,STAGE2_BOOTARGS,systemd.unit=multi-user.target)
50

51
use/init/systemd/settings/disable-user-systemd-for-selinux \
52 53 54 55 56
	use/init/systemd/settings/enable-log-to-tty12 \
	use/init/systemd/settings/enable-showstatus: \
	use/init/systemd/settings/%: use/init/systemd
	@$(call add,THE_PACKAGES,systemd-settings-$*)

57
use/init/systemd/settings/optimal: use/init/systemd \
58 59
	use/init/systemd/settings/enable-log-to-tty12 \
	use/init/systemd/settings/enable-showstatus; @: