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

3
# service defaults
4
_ON = alteratord cpufreq-simple \
5 6 7 8 9 10 11 12
      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 16
use/live: use/stage2 sub/rootfs@live sub/stage2@live \
	use/services use/deflogin/live
17
	@$(call add_feature)
18
	@$(call add,CLEANUP_PACKAGES,'installer*')
19 20
	@$(call add,DEFAULT_SERVICES_ENABLE,$(_ON))
	@$(call add,DEFAULT_SERVICES_DISABLE,$(_OFF))
21
	@$(call add,CONTROL,rpcbind:local)
22

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

Michael Shigorin's avatar
Michael Shigorin committed
26 27 28 29 30 31 32 33
# 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

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

42 43
# this target specifically pulls free xorg drivers in (and a few more bits);
# a browser is requested too, the recommended one can be overridden downstream
44
use/live/desktop: use/live/x11 use/x11/xorg use/x11/wacom \
45
	use/browser/firefox/live use/xdg-user-dirs/deep +vmguest; @:
46

47
# preconfigure apt for both live and installed-from-live systems
48
use/live/repo: use/live
49
	@$(call add,LIVE_PACKAGES,installer-feature-online-repo)
50 51 52 53 54 55
	@$(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)
56

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

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

66 67 68 69 70 71
# 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
72 73
	@$(call add,LIVE_PACKAGES,autologin)

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

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

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