config.mk 7.18 KB
Newer Older
Michael Shigorin's avatar
Michael Shigorin committed
1
# alterator-based installer, second (livecd) stage
2 3 4

+installer: use/install2/full; @:

5
use/install2: use/stage2 sub/stage2@install2 use/metadata \
6
	use/cleanup/installer use/install2/autoinstall use/grub/install2.cfg
7
	@$(call add_feature)
8
	@$(call add,INSTALL2_PACKAGES,installer-common-stage2)
9
	@$(call try,INSTALLER,altlinux-generic)	# might be replaced later
10
	@$(call add,INSTALL2_PACKAGES,installer-distro-$$(INSTALLER)-stage2)
11
	@$(call add,INSTALL2_PACKAGES,branding-$$(BRANDING)-alterator)
12
	@$(call add,BASE_PACKAGES,branding-$$(BRANDING)-release)
13
	@$(call add,BASE_PACKAGES,installer-distro-$$(INSTALLER)-stage3)
14
	@$(call add,BASE_PACKAGES,installer-common-stage3)
15
	@$(call add,BASE_PACKAGES,glibc-gconv-modules)	# for guile22
16
	@$(call add,BASE_LISTS,$(call tags,basesystem && !alterator))
17
	@$(call xport,BASE_BOOTLOADER)
18
	@$(call xport,INSTALL2_CLEANUP_PACKAGES)
19
	@$(call xport,INSTALL2_CLEANUP_KDRIVERS)
Anton Midyukov's avatar
Anton Midyukov committed
20
	@$(call add,INSTALL2_PACKAGES,lsof)
21 22
	@$(call add,INSTALL2_PACKAGES,mdadm)
	@$(call add,BASE_PACKAGES,mdadm)
23

24
# doesn't use/install2/fs on purpose (at least so far)
25 26
use/install2/full: \
	use/install2/packages use/install2/vmguest use/install2/tools \
27
	use/install2/lvm use/install2/cryptsetup \
28 29
	use/syslinux/localboot.cfg use/grub/localboot_bios.cfg \
	use/syslinux/ui/menu use/bootloader
30
	@$(call add,INSTALL2_PACKAGES,xorg-drv-synaptics)
31
	@$(call add,INSTALL2_PACKAGES,xorg-drv-libinput)
32

33 34 35 36 37 38 39 40
use/install2/lvm: use/install2
	@$(call add,INSTALL2_PACKAGES,lvm2)
	@$(call add,BASE_PACKAGES,lvm2)

use/install2/cryptsetup: use/install2
	@$(call add,INSTALL2_PACKAGES,cryptsetup)
	@$(call add,BASE_PACKAGES,cryptsetup)

41 42 43 44
# for distributions with their own -stage3 installer part
use/install2/stage3: use/install2
	@$(call add,BASE_PACKAGES,installer-$$(INSTALLER)-stage3)

45
# just an alias, better use its endpoint directly
46
use/install2/fonts: use/fonts/install2; @:
47

48
# see also use/vmguest
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
ifeq (,$(filter-out i586 x86_64 aarch64 armh ppc64le,$(ARCH)))

# see also use/vmguest/kvm; qxl included in xorg pkglist
use/install2/kvm:
	@$(call add,INSTALL2_PACKAGES,spice-vdagent xorg-drv-qxl)

ifeq (,$(filter-out i586 x86_64,$(ARCH)))

# virtualbox guest support for installer
use/install2/vbox:
	@$(call add,INSTALL2_PACKAGES,xorg-drv-vboxvideo)

# see also use/vmguest/vmware
use/install2/vmware:
	@$(call add,STAGE1_KMODULES,vmware)
	@$(call add,STAGE1_KMODULES,scsi)	# mptspi in led-ws
65
	@$(call add,INSTALL2_PACKAGES,xorg-dri-vmwgfx xorg-drv-vmware xorg-drv-vmmouse)
66

67 68
use/install2/vmguest: use/install2/kvm use/install2/vbox use/install2/vmware; @:

69 70 71 72 73 74 75 76 77 78 79
else

use/install2/vmguest: use/install2/kvm; @:

endif
else

use/install2/vmguest: ; @:

endif

80 81 82
# stash local packages within installation media
use/install2/packages: use/install2 use/repo/main; @:

83
# set up remote repositories within installed system out-of-box
84 85
use/install2/repo: use/install2; @:
ifneq (,$(filter-out e2k%,$(ARCH)))
86
	@$(call add,INSTALL2_PACKAGES,installer-feature-online-repo)
87
endif
88

89
# for alterator-pkg to use
90 91
use/install2/net: use/install2
	@$(call add,INSTALL2_PACKAGES,curl)
92

93 94
# for autoinstall
use/install2/autoinstall:
95
	@$(call add,INSTALL2_PACKAGES,alterator-postinstall)
96 97
	@$(call add,BASE_PACKAGES,alterator-postinstall)

98 99
# NB: sort of conflicts with use/install2/cleanup/vnc
use/install2/vnc:
100
	@$(call add,INSTALL2_PACKAGES,x11vnc xterm net-tools)
101 102

# this one expects external vncviewer to come
103 104
use/install2/vnc/listen: use/install2/vnc \
	use/syslinux/install-vnc-listen.cfg use/grub/install-vnc-listen.cfg; @:
105 106

# this one connects to a specified vncviewer --listen
107 108
use/install2/vnc/connect: use/install2/vnc \
	use/syslinux/install-vnc-connect.cfg use/grub/install-vnc-connect.cfg; @:
109 110 111

# add both bootloader items to be *that* explicit ;-)
use/install2/vnc/full: use/install2/vnc/listen use/install2/vnc/connect; @:
112

113 114 115 116
# filesystems handling
use/install2/fs: use/install2/xfs use/install2/jfs use/install2/reiserfs; @:

use/install2/xfs:
117
	@$(call add,SYSTEM_PACKAGES,xfsprogs)
118 119

use/install2/jfs:
120
	@$(call add,SYSTEM_PACKAGES,jfsutils)
121 122

use/install2/reiserfs:
123
	@$(call add,SYSTEM_PACKAGES,reiserfsprogs)
124

125
use/install2/fat:
126
	@$(call add,SYSTEM_PACKAGES,dosfstools fatresize)
127

128 129 130
# prepare bootloader for software suspend (see also live)
use/install2/suspend:
	@$(call add,INSTALL2_PACKAGES,installer-feature-desktop-suspend-stage2)
131 132 133 134

# extras
use/install2/tools:
	@$(call add,INSTALL2_PACKAGES,pxz)
135 136 137
	@$(call add,INSTALL2_PACKAGES,fdisk gdisk parted partclone)
	@$(call add,INSTALL2_PACKAGES,vim-console)
	@$(call add,INSTALL2_PACKAGES,net-tools openssh-clients lftp)
138 139 140 141

# when VNC installation is less welcome than a few extra megs
use/install2/cleanup/vnc:
	@$(call add,INSTALL2_CLEANUP_PACKAGES,x11vnc xorg-xvfb)
142

143 144 145 146 147
# when VNC installation is less welcome than a few extra megs
use/install2/cleanup/dri:
	@$(call set,INSTALL2_CLEANUP_DRI,yes)
	@$(call xport,INSTALL2_CLEANUP_DRI)

148 149 150 151 152
# leave only cirrus, fbdev, qxl, vesa in vm-targeted images
use/install2/cleanup/x11-hwdrivers:
	@$(call add,INSTALL2_CLEANUP_PACKAGES,xorg-drv-ati xorg-drv-intel)
	@$(call add,INSTALL2_CLEANUP_PACKAGES,xorg-glamor)
	@$(call add,INSTALL2_CLEANUP_PACKAGES,xorg-drv-mach64 xorg-drv-mga)
153
	@$(call add,INSTALL2_CLEANUP_PACKAGES,xorg-drv-nouveau)
154
	@$(call add,INSTALL2_CLEANUP_PACKAGES,xorg-drv-r128 xorg-drv-radeon)
155 156 157

# massive purge of anything not critical to installer boot (l10n included!)
use/install2/cleanup/everything: use/install2/cleanup/x11-hwdrivers \
158
	use/install2/cleanup/vnc
159
	@$(call add,INSTALL2_CLEANUP_PACKAGES,glibc-locales)
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
	@$(call add,INSTALL2_CLEANUP_PACKAGES,libX11-locales alterator-l10n)
	@$(call add,INSTALL2_CLEANUP_PACKAGES,kbd-data kbd console-scripts)
	@$(call add,INSTALL2_CLEANUP_PACKAGES,shadow-convert)
	@$(call add,INSTALL2_CLEANUP_PACKAGES,libXaw xmessage xconsole)
	@$(call add,INSTALL2_CLEANUP_PACKAGES,libncurses libncursesw) # top
	@$(call add,INSTALL2_CLEANUP_PACKAGES,openssl) # net-functions
	@$(call add,INSTALL2_CLEANUP_PACKAGES,vitmp vim-minimal)
	@$(call add,INSTALL2_CLEANUP_PACKAGES,udev-hwdb pciids)

# this conflicts with efi (which needs efivars.ko)
use/install2/cleanup/kernel/firmware:
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/firmware/)

# drop drivers expected to be useless in virtual environment
use/install2/cleanup/kernel/non-vm:
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/firewire/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/net/bonding/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/net/ppp/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/net/slip/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/net/team/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/net/usb/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/platform/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/tty/serial/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/net/bridge/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/net/openvswitch/)

# this would need extra handling anyways
use/install2/cleanup/kernel/storage:
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/block/aoe/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/block/drbd/)

# burn it down
use/install2/cleanup/kernel/everything: \
	use/install2/cleanup/kernel/storage \
	use/install2/cleanup/kernel/non-vm \
	use/install2/cleanup/kernel/firmware
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/ata/pata_*)