2012-05-08 21:25:05 +04:00
# alterator-based installer, second (livecd) stage
2013-05-24 17:29:44 +04:00
+installer : use /install 2/full ; @:
2013-11-13 18:59:23 +04:00
use/install2 : use /stage 2 sub /stage 2@install 2 use /metadata \
2015-03-28 14:34:35 +03:00
use/cleanup/installer
2011-11-16 19:58:42 +04:00
@$( call add_feature)
2013-05-24 17:29:44 +04:00
@$( call try,INSTALLER,altlinux-generic) # might be replaced later
2013-05-27 13:11:17 +04:00
@$( call add,INSTALL2_PACKAGES,installer-distro-$$ ( INSTALLER) -stage2)
server-ovz; KDEFAULT; syslinux features reworked
Renamed server-light.iso into server-ovz.iso to avoid brand dilution
and confusion (rider@'s server-light rather favours kvm, anyways).
Introduced KDEFAULT: a reliable default kernel chooser knob
since apt's regex ordering proved pretty unreliable.
Spelling things explicitly is better anyways.
SYSLINUX related features undergone pretty major rewrite
(that includes syslinux, hdt and memtest).
The problem to tackle was features.in/syslinux/generate.mk
assuming syslinux and pciids available in build *host* system;
this well might not be the case (or worse yet, those can be
just different). So now we're a bit less elegant and a bit
more enterprise, stuffing things into chroot and working there.
Bunch of other fixes along the road, including ; to name a few:
- fixed memtest entry (overlooked while renaming SYSLINUX_ITEMS)
- new and shiny doc/CodingStyle
- gfxboot, stage1 target chain, hdt tweaks
- distro.mk rehashed
- README++
- TODO: dropped (integer overflow anyways)
+ actually moved off-tree to reduce commit spam
- s,\.config\.mk,distcfg.mk,g
- doc/profiles.mk.sample: sample ~/.mkimage/profiles.mk
- ...and assorted fixups/additions
Sorry for convoluted commit, this would have been pretty hard to
rework into some really readable shape (and you might be interested
in the original repo's history horrors then, anyways).
2011-05-31 02:05:33 +04:00
@$( call add,INSTALL2_PACKAGES,branding-$$ ( BRANDING) -alterator)
2011-12-19 23:28:42 +04:00
@$( call add,BASE_PACKAGES,branding-$$ ( BRANDING) -release)
2014-01-31 18:13:58 +04:00
@$( call add,BASE_PACKAGES,installer-common-stage3)
2011-07-15 01:00:46 +04:00
@$( call add,BASE_LISTS,$( call tags,basesystem) )
2012-06-26 02:10:12 +04:00
@$( call xport,BASE_BOOTLOADER)
2014-03-22 16:47:20 +04:00
@$( call xport,INSTALL2_CLEANUP_PACKAGES)
2014-03-23 00:19:27 +04:00
@$( call xport,INSTALL2_CLEANUP_KDRIVERS)
2012-03-21 17:55:24 +04:00
2013-05-24 17:29:44 +04:00
# doesn't use/install2/fs on purpose (at least so far)
2016-05-13 14:18:42 +03:00
use/install2/full : \
use/install2/packages use/install2/vmguest use/install2/tools \
2016-06-09 11:44:36 +03:00
use/syslinux/localboot.cfg use/syslinux/ui/menu use/bootloader
@$( call add,INSTALL2_PACKAGES,xorg-drv-synaptics)
2016-11-14 21:07:55 +03:00
@$( call add,INSTALL2_PACKAGES,xorg-drv-libinput)
2013-05-24 17:29:44 +04:00
2016-03-23 12:13:48 +03:00
# for distributions with their own -stage3 installer part
use/install2/stage3 : use /install 2
@$( call add,BASE_PACKAGES,installer-$$ ( INSTALLER) -stage3)
2016-02-10 17:32:29 +03:00
# just an alias, better use its endpoint directly
2017-01-29 15:58:46 +03:00
use/install2/fonts : use /fonts /install 2; @:
2016-02-10 17:32:29 +03:00
2014-04-29 19:57:03 +04:00
# see also use/vmguest
use/install2/vmguest : use /install 2/kvm use /install 2/vbox use /install 2/vmware ; @:
2013-05-24 17:29:44 +04:00
# stash local packages within installation media
use/install2/packages : use /install 2 use /repo /main ; @:
2014-06-04 16:38:23 +04:00
# set up remote repositories within installed system out-of-box
use/install2/repo : use /install 2
@$( call add,INSTALL2_PACKAGES,installer-feature-online-repo)
2013-05-24 17:29:44 +04:00
# for alterator-pkg to use
2012-03-21 17:55:24 +04:00
use/install2/net : use /install 2
@$( call add,INSTALL2_PACKAGES,curl)
2012-04-10 21:56:01 +04:00
2012-06-21 14:23:38 +04:00
# see also use/vmguest/kvm; qxl included in xorg pkglist
2012-04-10 21:56:01 +04:00
use/install2/kvm :
@$( call add,INSTALL2_PACKAGES,spice-vdagent xorg-drv-qxl)
2012-09-23 01:05:38 +04:00
2013-11-25 00:38:01 +04:00
# virtualbox guest support for installer
use/install2/vbox :
2013-12-25 03:09:50 +04:00
@$( call add,STAGE1_KMODULES,virtualbox-addition vboxguest)
2015-12-03 19:42:46 +03:00
@$( call add,INSTALL2_PACKAGES,xorg-drv-vboxvideo)
2013-11-25 00:38:01 +04:00
2014-04-29 19:57:03 +04:00
# see also use/vmguest/vmware
use/install2/vmware :
2014-05-11 22:45:54 +04:00
@$( call add,STAGE1_KMODULES,vmware)
2014-04-29 19:57:03 +04:00
@$( call add,STAGE1_KMODULES,scsi) # mptspi in led-ws
2016-08-15 14:00:20 +03:00
@$( call add,INSTALL2_PACKAGES,xorg-drv-vmware xorg-drv-vmmouse)
2014-04-29 19:57:03 +04:00
2014-06-03 22:02:55 +04:00
# NB: sort of conflicts with use/install2/cleanup/vnc
use/install2/vnc :
2017-02-01 18:32:43 +03:00
@$( call add,INSTALL2_PACKAGES,x11vnc xterm net-tools)
# this one expects external vncviewer to come
use/install2/vnc/listen : \
use/install2/vnc use/syslinux/install-vnc-listen.cfg; @:
# this one connects to a specified vncviewer --listen
use/install2/vnc/connect : \
use/install2/vnc use/syslinux/install-vnc-connect.cfg; @:
# add both bootloader items to be *that* explicit ;-)
use/install2/vnc/full : use /install 2/vnc /listen use /install 2/vnc /connect ; @:
2014-06-03 22:02:55 +04:00
2012-09-23 01:05:38 +04:00
# filesystems handling
use/install2/fs : use /install 2/xfs use /install 2/jfs use /install 2/reiserfs ; @:
use/install2/xfs :
2013-12-31 18:32:33 +04:00
@$( call add,SYSTEM_PACKAGES,xfsprogs)
2012-09-23 01:05:38 +04:00
use/install2/jfs :
2013-12-31 18:32:33 +04:00
@$( call add,SYSTEM_PACKAGES,jfsutils)
2012-09-23 01:05:38 +04:00
use/install2/reiserfs :
2013-12-31 18:32:33 +04:00
@$( call add,SYSTEM_PACKAGES,reiserfsprogs)
2015-03-11 23:50:11 +03:00
# prepare bootloader for software suspend (see also live)
use/install2/suspend :
@$( call add,INSTALL2_PACKAGES,installer-feature-desktop-suspend-stage2)
2016-05-13 14:18:42 +03:00
# extras
use/install2/tools :
@$( call add,INSTALL2_PACKAGES,pxz)
2014-03-22 16:47:20 +04:00
# when VNC installation is less welcome than a few extra megs
use/install2/cleanup/vnc :
@$( call add,INSTALL2_CLEANUP_PACKAGES,x11vnc xorg-xvfb)
2014-03-22 16:50:59 +04:00
# conflicts with luks feature
use/install2/cleanup/crypto :
@$( call add,INSTALL2_CLEANUP_PACKAGES,gnupg libgpg-error)
@$( call add,INSTALL2_CLEANUP_PACKAGES,libgcrypt* libgnutls*)
2014-03-22 19:06:49 +04:00
# 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)
@$( call add,INSTALL2_CLEANUP_PACKAGES,xorg-drv-nouveau xorg-drv-nv)
@$( call add,INSTALL2_CLEANUP_PACKAGES,xorg-drv-openchrome)
@$( call add,INSTALL2_CLEANUP_PACKAGES,xorg-drv-r128 xorg-drv-radeon)
@$( call add,INSTALL2_CLEANUP_PACKAGES,xorg-drv-s3virge xorg-drv-savage)
@$( call add,INSTALL2_CLEANUP_PACKAGES,xorg-drv-sis)
2014-03-22 22:03:17 +04:00
# massive purge of anything not critical to installer boot (l10n included!)
use/install2/cleanup/everything : use /install 2/cleanup /x 11-hwdrivers \
use/install2/cleanup/vnc use/install2/cleanup/crypto
@$( call add,INSTALL2_CLEANUP_PACKAGES,glibc-gconv-modules glibc-locales)
@$( 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_*)