## lorax template file: populate the ramdisk (runtime image)
<%page args="basearch, product"/>

installpkg python

## anaconda package
installpkg anaconda anaconda-widgets
## anaconda deps that aren't in the RPM
installpkg tmux
installpkg firstboot
installpkg iscsi-initiator-utils
## speed up compression on multicore systems
installpkg pigz

## firstaidkit (rescue mode) packages
installpkg firstaidkit-plugin-{passwd,key-recovery,mdadm-conf}

## kernel and firmware
installpkg kernel
installpkg kernel-3.2* kernel-3.3* kernel-3.4* kernel-3.5* kernel-3.6*
installpkg kernel-3.7* kernel-3.8* kernel-3.9* kernel-3.10* kernel-3.11*
installpkg kernel-3.12* kernel-3.13* kernel-3.14* kernel-3.15* kernel-3.16*
%if basearch != "s390x":
    installpkg *-firmware
    installpkg b43-openfwwf
%endif
installpkg xen-hypervisor

## arch-specific packages (bootloaders etc.)
%if basearch in ("arm", "armhfp"):
    installpkg kernel-highbank kernel-imx kernel-kirkwood kernel-mvebu kernel-omap kernel-tegra
    installpkg uboot-tools
%endif
%if basearch == "i386":
    installpkg kernel-PAE gpart
%endif
%if basearch == "x86_64":
    installpkg efibootmgr grub2-efi shim shim-unsigned
%endif
%if basearch in ("i386", "x86_64"):
    installpkg grub2 grub2-tools shim grub2-efi efibootmgr biosdevname memtest86+ syslinux
%endif
%if basearch in ("ppc", "ppc64"):
    installpkg grub2 grub2-tools yaboot fbset hfsutils kernel-bootwrapper ppc64-utils
%endif
%if basearch == "s390x":
    installpkg lsscsi modutils s390utils-base s390utils-cmsfs-fuse
%endif
%if basearch == "sparc":
    installpkg silo tilo
%endif

## yay, plymouth
installpkg plymouth

## extra dracut modules
installpkg anaconda-dracut dracut-network dracut-config-generic

## fedup-dracut handles upgrades
##installpkg fedup-dracut fedup-dracut-plymouth *-fedup-dracut

## rpcbind or portmap needed by dracut nfs module
installpkg rpcbind

## required for dracut
installpkg kbd kbd-misc
## required for anaconda-dracut (img-lib etc.)
installpkg tar xz curl

## basic system stuff
installpkg systemd-sysv systemd-units
installpkg rsyslog

## xorg/GUI packages
installpkg xorg-x11-drivers xorg-x11-server-Xorg
installpkg xorg-x11-server-utils xorg-x11-xauth
installpkg mesa-dri-drivers
installpkg dbus-x11 metacity gsettings-desktop-schemas
installpkg nm-connection-editor
installpkg at-spi at-spi2-atk pyatspi
installpkg gnome-python2-gconf
installpkg gobject-introspection
installpkg librsvg2
installpkg polkit-desktop-policy
installpkg gnome-keyring
installpkg python-imaging

## filesystem tools
installpkg btrfs-progs jfsutils xfsprogs reiserfs-utils gfs2-utils ntfs-3g ntfsprogs
installpkg python-volume_key volume_key
installpkg system-storage-manager
installpkg device-mapper-persistent-data

## SELinux support
installpkg selinux-policy-targeted audit libsemanage-python

## network tools/servers
installpkg python-ethtool ethtool openssh-server nfs-utils
installpkg tigervnc-server-minimal
%if basearch != "s390x":
installpkg tigervnc-server-module
%endif
installpkg net-tools

## hardware utilities/libraries
installpkg pciutils usbutils
installpkg mt-st smartmontools
%if basearch != "s390x":
installpkg hdparm pcmciautils
%endif
installpkg libmlx4

## translations & language packs
installpkg yum-langpacks

## fonts & themes
installpkg bitmap-fangsongti-fonts
installpkg dejavu-sans-fonts dejavu-sans-mono-fonts
installpkg kacst-farsi-fonts
installpkg kacst-qurn-fonts
installpkg lklug-fonts
installpkg lohit-*-fonts
installpkg madan-fonts
installpkg nhn-nanum-gothic-fonts
installpkg smc-meera-fonts
installpkg thai-scalable-waree-fonts
installpkg vlgothic-fonts
installpkg wqy-microhei-fonts
installpkg sil-abyssinica-fonts
installpkg xorg-x11-fonts-misc
installpkg gnome-themes-standard gnome-icon-theme-legacy

## debugging/bug reporting tools
installpkg gdb-gdbserver
installpkg python-epdb
installpkg libreport-plugin-bugzilla libreport-plugin-reportuploader
installpkg fpaste

## extra tools not required by anaconda
installpkg vim-minimal strace lsof dump xz less eject
installpkg wget rsync rsh bind-utils ftp mtr vconfig
installpkg icfg spice-vdagent
installpkg gdisk

## yum plugins
installpkg yum-plugin-fastestmirror yum-langpacks

## actually install all the requested packages
run_pkg_transaction
