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 \
use/cleanup/installer use/bootloader
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)
2013-11-25 00:38:01 +04:00
use/install2/full : use /install 2/packages use /install 2/kms \
use/install2/kvm use/install2/vbox \
2013-05-24 17:29:44 +04:00
use/syslinux/localboot.cfg use/syslinux/ui/menu; @:
# stash local packages within installation media
use/install2/packages : use /install 2 use /repo /main ; @:
# 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
2013-05-24 17:29:44 +04:00
# modern free xorg drivers for mainstream hardware require KMS support
2012-06-13 23:07:10 +04:00
use/install2/kms : use /stage 2/kms
@$( call add,BASE_KMODULES_REGEXP,drm.*)
2012-05-08 21:25:05 +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)
2013-11-25 00:38:01 +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)
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_*)