config.mk 2.87 KB
Newer Older
1
+live: use/live/desktop; @:
2

3 4 5 6 7 8 9 10 11 12
# service defaults
_ON = alteratord cpufreq-simple dm kdm wdm prefdm \
      livecd-evms livecd-fstab livecd-hostname \
      livecd-setauth livecd-setlocale livecd-net-eth livecd-install-wmaker \
      random rpcbind plymouth avahi-daemon \

_OFF = anacron blk-availability bridge clamd crond dhcpd dmeventd dnsmasq \
       lvm2-lvmetad lvm2-monitor mdadm netfs o2cb ocfs2 openvpn postfix \
       rawdevices slapd smartd sshd sysstat update_wms xinetd

13
# copy stage2 as live
14
# NB: starts to preconfigure but doesn't use/cleanup yet
15
use/live: use/stage2 sub/rootfs@live sub/stage2@live use/services
16
	@$(call add_feature)
17
	@$(call add,CLEANUP_PACKAGES,'installer*')
18 19
	@$(call add,DEFAULT_SERVICES_ENABLE,$(_ON))
	@$(call add,DEFAULT_SERVICES_DISABLE,$(_OFF))
20
	@$(call add,CONTROL,rpcbind:local)
21

22
use/live/base: use/live use/net use/syslinux/ui/menu
23 24
	@$(call add,LIVE_LISTS,$(call tags,base && (live || network)))

Michael Shigorin's avatar
Michael Shigorin committed
25 26 27 28 29 30 31 32
# rw slice, see http://www.altlinux.org/make-initrd-propagator and #28289
ifeq (,$(EFI_BOOTLOADER))
use/live/rw: use/live use/syslinux
	@$(call add,SYSLINUX_CFG,live_rw)
else
use/live/rw: use/live; @:
endif

33
# graphical target (not enforcing xorg drivers or blobs)
34
use/live/x11: use/live/base use/x11-autologin use/sound +power +efi
35
	@$(call add,LIVE_LISTS,$(call tags,desktop && (live || network)))
36
	@$(call add,LIVE_LISTS,$(call tags,base l10n))
37
	@$(call add,LIVE_PACKAGES,fonts-ttf-dejavu fonts-ttf-droid)
38
	@$(call add,LIVE_PACKAGES,pciutils)
39
	@$(call add,SYSLINUX_CFG,localboot)
40

41
# this target specifically pulls free xorg drivers in (and a few more bits)
42 43
use/live/desktop: use/live/x11 use/x11/xorg use/x11/wacom \
	use/xdg-user-dirs/deep +vmguest; @:
44

45
# preconfigure apt for both live and installed-from-live systems
46
use/live/repo: use/live
47
	@$(call add,LIVE_PACKAGES,installer-feature-online-repo)
48 49 50 51 52 53
	@$(call try,LIVE_REPO,http/alt)
	@$(call xport,LIVE_REPO)

# preconfigure apt in runtime (less reliable)
use/live/repo/online:
	@$(call add,LIVE_PACKAGES,livecd-online-repo)
54

55
# alterator-based permanent installation
56
use/live/install: use/metadata use/xdg-user-dirs use/syslinux/localboot.cfg
57
	@$(call add,LIVE_PACKAGES,livecd-install)
58
	@$(call add,LIVE_PACKAGES,livecd-installer-features)
59 60

# text-based installation script
61
use/live/textinstall: use/syslinux/lateboot.cfg
62 63
	@$(call add,LIVE_PACKAGES,live-install)

64 65 66 67 68 69
# a very simplistic one
use/live/.x11: use/live use/x11 use/x11-autologin
	@$(call add,LIVE_PACKAGES,xinit)

# NB: some implementation has to be added if it's not a display manager
use/live/autologin: use/live/.x11
70 71
	@$(call add,LIVE_PACKAGES,autologin)

72
use/live/nodm: use/live/.x11
73
	@$(call add,LIVE_PACKAGES,nodm)
74

75
# see also http://www.altlinux.org/Netbook-live/hooks
76 77
use/live/hooks: use/live
	@$(call add,LIVE_PACKAGES,livecd-run-hooks)
78

79
# a crude hack to make sure Russian is supported in a particular image
80 81
use/live/ru: use/live
	@$(call add,LIVE_PACKAGES,livecd-ru)