Initial commit with runtime-install from rhel-8.0 lorax

This is the initial commit for this package. We're just keeping the
templates here in dist-git so for the purposes of posterity I'm starting
with the runtime-install.tmpl from current rhel-8.0 lorax. This way
every change made to the template(s) will be in the git repo. Hooray!

I know we're going to make changes to runtime-install.tmpl, and I
_suspect_ we'll make changes to runtime-postinstall.tmpl and
runtime-cleanup.tmpl, so they're in the specfile (but commented out).
This commit is contained in:
Will Woods 2018-06-18 12:43:58 -04:00
parent 2cbcece22d
commit 1f7e7e67c8
3 changed files with 226 additions and 0 deletions

44
lorax-templates-rhel.spec Normal file
View File

@ -0,0 +1,44 @@
Name: lorax-templates-rhel
Version: 8.0
Release: 1%{?dist}
Summary: RHEL8 build templates for lorax and livemedia-creator
#Group: Applications/System
License: GPLv2+
URL: https://github.com/weldr/lorax
Source0: runtime-install.tmpl
#Source1: runtime-postinstall.tmpl
#Source2: runtime-cleanup.tmpl
# It's just text, my friends
BuildArch: noarch
# Where are these supposed to end up?
%define templatedir %{_datadir}/lorax/templates.d/80-rhel
# We need the toplevel templates for arch-specific bits etc.
Requires: lorax-templates >= 28.14.0
%description
RHEL-specific Lorax templates for creating the boot.iso and live isos are
placed in %{templatedir}
%prep
# no-op - our sources are already prepped
%build
# no-op - there's nothing to build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{templatedir}
cp -a %{sources} $RPM_BUILD_ROOT/%{templatedir}
%files
%dir %{templatedir}
%{templatedir}/*.tmpl
%changelog
* Mon Jun 18 2018 Will Woods <wwoods@redhat.com> - 8.0-1
- Initial creation of lorax-templates-rhel package

182
runtime-install.tmpl Normal file
View File

@ -0,0 +1,182 @@
## lorax template file: populate the ramdisk (runtime image)
<%page args="basearch, product"/>
## anaconda package
installpkg anaconda anaconda-widgets kexec-tools-anaconda-addon anaconda-install-env-deps
## Other available payloads
installpkg dnf
installpkg rpm-ostree ostree
## speed up compression on multicore systems
installpkg pigz
## kernel and firmware
## NOTE: Without explicitly including kernel-modules-extra dnf will choose kernel-debuginfo-*
## to satify a gfs2-utils kmod requirement
installpkg kernel kernel-modules kernel-modules-extra
installpkg grubby
%if basearch != "s390x":
## skip the firmware for sound, video, and scanners, none of which will
## do much good for the installer. Also skip uhd-firmware which is not
## even a kernel firmware package.
installpkg --optional *-firmware --except alsa* --except midisport-firmware \
--except crystalhd-firmware --except ivtv-firmware \
--except cx18-firmware --except iscan-firmware \
--except uhd-firmware --except lulzbot-marlin-firmware
%endif
## install all of the glibc langpacks since otherwise we get no locales
installpkg glibc-all-langpacks
## arch-specific packages (bootloaders etc.)
%if basearch == "aarch64":
installpkg efibootmgr grub2-efi-aa64-cdboot grubby shim-aa64
%endif
%if basearch in ("arm", "armhfp"):
installpkg kernel-lpae
installpkg uboot-tools
%endif
%if basearch == "i386":
installpkg gpart
%endif
%if basearch == "x86_64":
installpkg grub2-tools-efi
installpkg efibootmgr
installpkg shim-x64 grub2-efi-x64-cdboot
installpkg shim-ia32 grub2-efi-ia32-cdboot
%endif
%if basearch in ("i386", "x86_64"):
installpkg biosdevname memtest86+ syslinux
installpkg grub2-tools grub2-tools-minimal grub2-tools-extra
%endif
%if basearch in ("ppc", "ppc64", "ppc64le"):
installpkg fbset hfsutils powerpc-utils lsvpd ppc64-diag
installpkg grub2-tools grub2-tools-minimal grub2-tools-extra
installpkg grub2-${basearch}
%endif
%if basearch == "s390x":
installpkg lsscsi s390utils-base s390utils-cmsfs-fuse s390utils-hmcdrvfs
%endif
## yay, plymouth
installpkg plymouth
## extra dracut modules
installpkg anaconda-dracut dracut-network dracut-config-generic dracut-fips
## rescue needs this
installpkg cryptsetup
## 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 bzip2
## basic system stuff
installpkg systemd-sysv systemd-units
installpkg rsyslog
## xorg/GUI packages
%if basearch != "s390x":
installpkg xorg-x11-drivers xorg-x11-server-Xorg
%endif
installpkg xorg-x11-server-utils xorg-x11-xauth
installpkg dbus-x11 metacity gsettings-desktop-schemas
installpkg nm-connection-editor
installpkg librsvg2
## filesystem tools
installpkg btrfs-progs jfsutils xfsprogs reiserfs-utils gfs2-utils ntfs-3g ntfsprogs
installpkg system-storage-manager
installpkg device-mapper-persistent-data
installpkg xfsdump
## extra storage packages
installpkg udisks2 udisks2-iscsi
## extra libblockdev plugins
installpkg libblockdev-lvm-dbus
## needed for LUKS escrow
installpkg volume_key
installpkg nss-tools
## SELinux support
installpkg selinux-policy-targeted audit
## network tools/servers
installpkg ethtool openssh-server nfs-utils openssh-clients
installpkg tigervnc-server-minimal
%if basearch != "s390x":
installpkg tigervnc-server-module
%endif
installpkg net-tools
installpkg bridge-utils
installpkg nmap-ncat
## hardware utilities/libraries
installpkg pciutils usbutils ipmitool
installpkg mt-st smartmontools
installpkg hdparm
%if basearch not in ("aarch64", "ppc64le", "s390x"):
installpkg pcmciautils
%endif
## see bug #1483278
%if basearch not in ("arm", "armhfp"):
installpkg libmlx4 rdma-core
%endif
installpkg rng-tools
## 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-assamese-fonts
installpkg lohit-bengali-fonts
installpkg lohit-devanagari-fonts
installpkg lohit-gu*-fonts
installpkg lohit-kannada-fonts
installpkg lohit-odia-fonts
installpkg lohit-tamil-fonts
installpkg lohit-telugu-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 aajohan-comfortaa-fonts
installpkg abattis-cantarell-fonts
installpkg sil-scheherazade-fonts
installpkg jomolhari-fonts
installpkg khmeros-base-fonts
installpkg sil-padauk-fonts
## debugging/bug reporting tools
installpkg gdb-gdbserver
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 bind-utils ftp mtr vconfig
installpkg icfg spice-vdagent
installpkg gdisk hexedit sg3_utils
## satisfy libnotify's desktop-notification-daemon with the least crazy option
installpkg notification-daemon
## Docker enabled boot.iso
# Not all arches currently have docker
%if basearch not in ("ppc", "ppc64", "s390"):
installpkg docker-anaconda-addon
%endif
## actually install all the requested packages
run_pkg_transaction

0
sources Normal file
View File