config.mk 2.36 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))
10
ifneq (,$(filter-out sisyphus p11,$(BRANCH)))
11
	@$(call add,THE_PACKAGES,startup) # contains configs needed all
12
endif
Michael Shigorin's avatar
Michael Shigorin committed
13

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

29 30 31
use/init/sysv/polkit: use/init/sysv
	@$(call add,THE_PACKAGES,polkit-sysvinit)

Michael Shigorin's avatar
Michael Shigorin committed
32 33 34
### i-f should be dropped as soon as rootfs scripts are effective there
use/init/systemd: use/init
	@$(call set,INIT_TYPE,systemd)
35
	@$(call add,INSTALL2_PACKAGES,systemd-sysvinit)
36

37
use/init/systemd/full: use/init/systemd
38
	@$(call add,THE_PACKAGES,chkconfig)
39
ifeq (,$(filter-out i586 x86_64 aarch64,$(ARCH)))
40 41
	@$(call add,THE_PACKAGES,vconsole-setup-kludge)
endif
42

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

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

55
use/init/systemd/settings/disable-user-systemd-for-selinux \
56 57 58 59 60
	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-$*)

61
use/init/systemd/settings/optimal: use/init/systemd \
62 63
	use/init/systemd/settings/enable-log-to-tty12 \
	use/init/systemd/settings/enable-showstatus; @: