2011-05-05 22:24:58 +00:00
|
|
|
## lorax template file: populate the ramdisk (runtime image)
|
2011-05-26 17:05:33 +00:00
|
|
|
<%page args="basearch, product"/>
|
2011-05-05 22:24:58 +00:00
|
|
|
|
|
|
|
## anaconda package
|
2016-11-14 18:02:02 +00:00
|
|
|
installpkg anaconda anaconda-widgets kexec-tools-anaconda-addon
|
2011-08-30 15:18:46 +00:00
|
|
|
## anaconda deps that aren't in the RPM
|
2012-04-17 19:52:35 +00:00
|
|
|
installpkg tmux
|
2015-09-24 20:52:20 +00:00
|
|
|
## for anaconda crash handling
|
|
|
|
installpkg gdb
|
2014-05-12 15:28:52 +00:00
|
|
|
## Other available payloads
|
|
|
|
installpkg dnf
|
2017-02-27 17:06:51 +00:00
|
|
|
installpkg rpm-ostree ostree
|
2012-06-17 19:16:05 +00:00
|
|
|
## speed up compression on multicore systems
|
|
|
|
installpkg pigz
|
2011-05-05 22:24:58 +00:00
|
|
|
|
|
|
|
## kernel and firmware
|
2015-06-22 23:23:29 +00:00
|
|
|
## 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
|
2013-09-03 16:24:28 +00:00
|
|
|
installpkg grubby
|
2011-05-05 22:24:58 +00:00
|
|
|
%if basearch != "s390x":
|
2016-03-16 15:32:20 +00:00
|
|
|
## 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.
|
2016-07-11 02:17:24 +00:00
|
|
|
installpkg --optional *-firmware --except alsa* --except midisport-firmware \
|
|
|
|
--except crystalhd-firmware --except ivtv-firmware \
|
2016-11-14 18:12:26 +00:00
|
|
|
--except cx18-firmware --except iscan-firmware \
|
|
|
|
--except uhd-firmware --except lulzbot-marlin-firmware
|
2012-05-03 07:11:03 +00:00
|
|
|
installpkg b43-openfwwf
|
2011-05-05 22:24:58 +00:00
|
|
|
%endif
|
|
|
|
|
2016-02-26 22:54:57 +00:00
|
|
|
## install all of the glibc langpacks since otherwise we get no locales
|
|
|
|
installpkg glibc-all-langpacks
|
|
|
|
|
2011-08-03 20:56:47 +00:00
|
|
|
## arch-specific packages (bootloaders etc.)
|
2013-12-12 22:15:13 +00:00
|
|
|
%if basearch == "aarch64":
|
2017-08-22 15:16:39 +00:00
|
|
|
installpkg efibootmgr grub2-efi-aa64-cdboot grubby shim-aa64
|
2013-12-12 22:15:13 +00:00
|
|
|
%endif
|
2012-06-21 07:31:58 +00:00
|
|
|
%if basearch in ("arm", "armhfp"):
|
2013-10-07 20:23:35 +00:00
|
|
|
installpkg kernel-lpae
|
2012-06-21 07:31:58 +00:00
|
|
|
installpkg uboot-tools
|
|
|
|
%endif
|
2011-05-05 22:24:58 +00:00
|
|
|
%if basearch == "i386":
|
2017-12-22 23:52:20 +00:00
|
|
|
installpkg gpart
|
2011-05-05 22:24:58 +00:00
|
|
|
%endif
|
2013-08-01 14:17:48 +00:00
|
|
|
%if basearch == "x86_64":
|
2017-08-22 15:16:39 +00:00
|
|
|
installpkg grub2-tools-efi
|
2017-08-24 18:58:48 +00:00
|
|
|
installpkg efibootmgr
|
2017-08-22 15:16:39 +00:00
|
|
|
installpkg shim-x64 grub2-efi-x64-cdboot
|
2017-08-24 18:58:48 +00:00
|
|
|
installpkg shim-ia32 grub2-efi-ia32-cdboot
|
2013-08-01 14:17:48 +00:00
|
|
|
%endif
|
2011-07-20 20:48:39 +00:00
|
|
|
%if basearch in ("i386", "x86_64"):
|
2017-08-22 15:16:39 +00:00
|
|
|
installpkg biosdevname memtest86+ syslinux
|
2017-09-15 18:42:57 +00:00
|
|
|
installpkg grub2-tools grub2-tools-minimal grub2-tools-extra
|
2011-05-05 22:24:58 +00:00
|
|
|
%endif
|
2014-03-25 20:35:31 +00:00
|
|
|
%if basearch in ("ppc", "ppc64", "ppc64le"):
|
2017-08-22 15:16:39 +00:00
|
|
|
installpkg fbset hfsutils kernel-bootwrapper ppc64-utils ppc64-diag
|
|
|
|
installpkg grub2-tools grub2-tools-minimal grub2-tools-extra
|
|
|
|
installpkg grub2-${basearch}
|
2011-05-05 22:24:58 +00:00
|
|
|
%endif
|
|
|
|
%if basearch == "s390x":
|
2017-04-11 13:47:57 +00:00
|
|
|
installpkg lsscsi s390utils-base s390utils-cmsfs-fuse s390utils-hmcdrvfs
|
2011-05-05 22:24:58 +00:00
|
|
|
%endif
|
|
|
|
|
2012-06-19 22:12:55 +00:00
|
|
|
## yay, plymouth
|
|
|
|
installpkg plymouth
|
|
|
|
|
2011-08-09 01:13:07 +00:00
|
|
|
## extra dracut modules
|
2017-08-14 20:20:27 +00:00
|
|
|
installpkg anaconda-dracut dracut-network dracut-config-generic dracut-fips
|
2011-08-09 01:13:07 +00:00
|
|
|
|
2015-08-19 21:30:59 +00:00
|
|
|
## rescue needs this
|
2015-04-02 18:52:00 +00:00
|
|
|
installpkg cryptsetup
|
2012-11-13 06:33:16 +00:00
|
|
|
|
2012-05-29 08:40:10 +00:00
|
|
|
## rpcbind or portmap needed by dracut nfs module
|
|
|
|
installpkg rpcbind
|
|
|
|
|
2012-01-04 01:24:41 +00:00
|
|
|
## required for dracut
|
|
|
|
installpkg kbd kbd-misc
|
2012-02-16 19:58:13 +00:00
|
|
|
## required for anaconda-dracut (img-lib etc.)
|
2014-03-24 15:05:14 +00:00
|
|
|
installpkg tar xz curl bzip2
|
2012-01-04 01:24:41 +00:00
|
|
|
|
2011-08-03 20:56:47 +00:00
|
|
|
## basic system stuff
|
|
|
|
installpkg systemd-sysv systemd-units
|
|
|
|
installpkg rsyslog
|
|
|
|
|
|
|
|
## xorg/GUI packages
|
2013-01-25 21:01:42 +00:00
|
|
|
%if basearch != "s390x":
|
2011-08-30 00:26:54 +00:00
|
|
|
installpkg xorg-x11-drivers xorg-x11-server-Xorg
|
2013-01-25 21:01:42 +00:00
|
|
|
%endif
|
2011-08-30 00:26:54 +00:00
|
|
|
installpkg xorg-x11-server-utils xorg-x11-xauth
|
2012-02-15 01:22:27 +00:00
|
|
|
installpkg dbus-x11 metacity gsettings-desktop-schemas
|
2012-08-20 08:22:47 +00:00
|
|
|
installpkg nm-connection-editor
|
2012-01-18 18:16:15 +00:00
|
|
|
installpkg librsvg2
|
2011-08-03 20:56:47 +00:00
|
|
|
|
|
|
|
## filesystem tools
|
2012-03-20 08:47:14 +00:00
|
|
|
installpkg btrfs-progs jfsutils xfsprogs reiserfs-utils gfs2-utils ntfs-3g ntfsprogs
|
2013-02-12 18:12:14 +00:00
|
|
|
installpkg system-storage-manager
|
2013-06-25 19:57:51 +00:00
|
|
|
installpkg device-mapper-persistent-data
|
2014-07-11 16:47:01 +00:00
|
|
|
installpkg xfsdump
|
2011-08-03 20:56:47 +00:00
|
|
|
|
2016-07-11 11:45:30 +00:00
|
|
|
## extra storage packages
|
2017-10-23 13:33:32 +00:00
|
|
|
installpkg udisks2 udisks2-iscsi
|
2016-07-11 11:45:30 +00:00
|
|
|
|
2016-02-26 16:43:45 +00:00
|
|
|
## extra libblockdev plugins
|
|
|
|
installpkg libblockdev-lvm-dbus
|
|
|
|
|
2014-12-17 09:55:15 +00:00
|
|
|
## needed for LUKS escrow
|
Remove some stale entires from runtime-install
iscsi-initator-utils and gobject-introspection actually are required via
anaconda rpm deps, so they aren't needed in runtime-install.tmpl.
Nothing seems to actually use python-imaging (i.e., python-pillow).
The executables for polkit, gnome-keyring and python-ethtool are removed
in runtime-cleanup, so if anything needs the libraries in these
packages, they can be pulled in through rpm dependencies. Among them,
only polkit is required.
For LUKS escrow stuff, keep the packages that provide the command-line
executables (volume_key, nss-tools), and remove the libraries. The
python2 libraries are no longer needed by blivet, and libblockdev will
install the C libraries it needs.
Install the dnf langpacks plugin instead of the yum one.
python-epdb is less useful now that anaconda is Python 3.
2015-06-10 20:32:29 +00:00
|
|
|
installpkg volume_key
|
|
|
|
installpkg nss-tools
|
2014-12-17 09:55:15 +00:00
|
|
|
|
2011-08-03 20:56:47 +00:00
|
|
|
## SELinux support
|
Remove some stale entires from runtime-install
iscsi-initator-utils and gobject-introspection actually are required via
anaconda rpm deps, so they aren't needed in runtime-install.tmpl.
Nothing seems to actually use python-imaging (i.e., python-pillow).
The executables for polkit, gnome-keyring and python-ethtool are removed
in runtime-cleanup, so if anything needs the libraries in these
packages, they can be pulled in through rpm dependencies. Among them,
only polkit is required.
For LUKS escrow stuff, keep the packages that provide the command-line
executables (volume_key, nss-tools), and remove the libraries. The
python2 libraries are no longer needed by blivet, and libblockdev will
install the C libraries it needs.
Install the dnf langpacks plugin instead of the yum one.
python-epdb is less useful now that anaconda is Python 3.
2015-06-10 20:32:29 +00:00
|
|
|
installpkg selinux-policy-targeted audit
|
2011-08-03 20:56:47 +00:00
|
|
|
|
|
|
|
## network tools/servers
|
Remove some stale entires from runtime-install
iscsi-initator-utils and gobject-introspection actually are required via
anaconda rpm deps, so they aren't needed in runtime-install.tmpl.
Nothing seems to actually use python-imaging (i.e., python-pillow).
The executables for polkit, gnome-keyring and python-ethtool are removed
in runtime-cleanup, so if anything needs the libraries in these
packages, they can be pulled in through rpm dependencies. Among them,
only polkit is required.
For LUKS escrow stuff, keep the packages that provide the command-line
executables (volume_key, nss-tools), and remove the libraries. The
python2 libraries are no longer needed by blivet, and libblockdev will
install the C libraries it needs.
Install the dnf langpacks plugin instead of the yum one.
python-epdb is less useful now that anaconda is Python 3.
2015-06-10 20:32:29 +00:00
|
|
|
installpkg ethtool openssh-server nfs-utils openssh-clients
|
2013-01-25 21:01:45 +00:00
|
|
|
installpkg tigervnc-server-minimal
|
|
|
|
%if basearch != "s390x":
|
|
|
|
installpkg tigervnc-server-module
|
|
|
|
%endif
|
2013-03-14 16:00:14 +00:00
|
|
|
installpkg net-tools
|
2015-02-06 18:19:45 +00:00
|
|
|
installpkg bridge-utils
|
2017-02-06 09:25:21 +00:00
|
|
|
installpkg nmap-ncat
|
2011-08-03 20:56:47 +00:00
|
|
|
|
|
|
|
## hardware utilities/libraries
|
2014-08-12 18:28:26 +00:00
|
|
|
installpkg pciutils usbutils ipmitool
|
2013-01-25 21:01:44 +00:00
|
|
|
installpkg mt-st smartmontools
|
2016-07-18 03:12:42 +00:00
|
|
|
installpkg hdparm
|
2016-08-12 09:47:36 +00:00
|
|
|
%if basearch not in ("aarch64", "ppc64le", "s390x"):
|
2016-07-18 03:12:42 +00:00
|
|
|
installpkg pcmciautils
|
2013-01-25 21:01:44 +00:00
|
|
|
%endif
|
2017-08-22 20:23:37 +00:00
|
|
|
## see bug #1483278
|
|
|
|
%if basearch not in ("arm", "armhfp"):
|
|
|
|
installpkg libmlx4 rdma-core
|
|
|
|
%endif
|
2016-01-28 22:52:10 +00:00
|
|
|
installpkg rng-tools
|
2011-08-03 20:56:47 +00:00
|
|
|
|
|
|
|
## fonts & themes
|
|
|
|
installpkg bitmap-fangsongti-fonts
|
|
|
|
installpkg dejavu-sans-fonts dejavu-sans-mono-fonts
|
2011-05-05 22:24:58 +00:00
|
|
|
installpkg kacst-farsi-fonts
|
|
|
|
installpkg kacst-qurn-fonts
|
|
|
|
installpkg lklug-fonts
|
2014-04-23 19:03:12 +00:00
|
|
|
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
|
2014-07-10 18:32:42 +00:00
|
|
|
installpkg lohit-telugu-fonts
|
2011-05-05 22:24:58 +00:00
|
|
|
installpkg madan-fonts
|
2012-02-17 10:13:13 +00:00
|
|
|
installpkg nhn-nanum-gothic-fonts
|
2011-05-05 22:24:58 +00:00
|
|
|
installpkg smc-meera-fonts
|
2012-11-30 09:56:32 +00:00
|
|
|
installpkg thai-scalable-waree-fonts
|
2011-05-05 22:24:58 +00:00
|
|
|
installpkg vlgothic-fonts
|
2011-08-03 20:56:47 +00:00
|
|
|
installpkg wqy-microhei-fonts
|
2013-06-11 17:26:51 +00:00
|
|
|
installpkg sil-abyssinica-fonts
|
|
|
|
installpkg xorg-x11-fonts-misc
|
2014-01-30 20:41:20 +00:00
|
|
|
installpkg aajohan-comfortaa-fonts
|
2015-01-12 22:19:00 +00:00
|
|
|
installpkg abattis-cantarell-fonts
|
2015-09-08 18:19:17 +00:00
|
|
|
installpkg sil-scheherazade-fonts
|
2016-10-17 13:03:25 +00:00
|
|
|
installpkg jomolhari-fonts
|
|
|
|
installpkg khmeros-base-fonts
|
|
|
|
installpkg sil-padauk-fonts
|
2011-08-03 20:56:47 +00:00
|
|
|
|
2011-08-29 18:06:14 +00:00
|
|
|
## debugging/bug reporting tools
|
2011-08-03 20:56:47 +00:00
|
|
|
installpkg gdb-gdbserver
|
2011-08-29 18:06:14 +00:00
|
|
|
installpkg libreport-plugin-bugzilla libreport-plugin-reportuploader
|
2011-09-22 19:00:36 +00:00
|
|
|
installpkg fpaste
|
2011-08-03 20:56:47 +00:00
|
|
|
|
|
|
|
## extra tools not required by anaconda
|
2011-08-03 22:15:29 +00:00
|
|
|
installpkg vim-minimal strace lsof dump xz less eject
|
2017-01-13 12:42:00 +00:00
|
|
|
installpkg wget rsync bind-utils ftp mtr vconfig
|
2012-03-20 08:58:11 +00:00
|
|
|
installpkg icfg spice-vdagent
|
2014-09-04 00:43:01 +00:00
|
|
|
installpkg gdisk hexedit sg3_utils
|
2011-08-03 20:56:47 +00:00
|
|
|
|
2015-02-18 22:07:29 +00:00
|
|
|
## satisfy libnotify's desktop-notification-daemon with the least crazy option
|
|
|
|
installpkg notification-daemon
|
|
|
|
|
2015-11-30 17:34:35 +00:00
|
|
|
## Docker enabled boot.iso
|
Not all arches currently have docker
At the momenet some PPC and s390 arches don't have docker, in that case we get the following failure when running lorax.
DEBUG util.py:417: 2016-03-12 01:00:27,658: dnf.exceptions.DepsolveError: nothing provides docker-utils needed by docker-anaconda-addon-0.2-1.fc24.noarch
DEBUG util.py:417: dnf.exceptions.DepsolveError: nothing provides docker-utils needed by docker-anaconda-addon-0.2-1.fc24.noarch
DEBUG util.py:417: Traceback (most recent call last):
DEBUG util.py:417: File "/usr/sbin/lorax", line 353, in <module>
DEBUG util.py:417: main(sys.argv)
DEBUG util.py:417: File "/usr/sbin/lorax", line 209, in main
DEBUG util.py:417: remove_temp=True, verify=opts.verify)
DEBUG util.py:417: File "/usr/lib/python3.5/site-packages/pylorax/__init__.py", line 277, in run
DEBUG util.py:417: rb.install()
DEBUG util.py:417: File "/usr/lib/python3.5/site-packages/pylorax/treebuilder.py", line 119, in install
DEBUG util.py:417: self._runner.run("runtime-install.tmpl")
DEBUG util.py:417: File "/usr/lib/python3.5/site-packages/pylorax/ltmpl.py", line 219, in run
DEBUG util.py:417: self._run(commands)
DEBUG util.py:417: File "/usr/lib/python3.5/site-packages/pylorax/ltmpl.py", line 238, in _run
DEBUG util.py:417: f(*args)
DEBUG util.py:417: File "/usr/lib/python3.5/site-packages/pylorax/ltmpl.py", line 540, in run_pkg_transaction
DEBUG util.py:417: self.dbo.resolve()
DEBUG util.py:417: File "/usr/lib/python3.5/site-packages/dnf/base.py", line 547, in resolve
DEBUG util.py:417: raise exc
DEBUG util.py:417: dnf.exceptions.DepsolveError: nothing provides docker-utils needed by docker-anaconda-addon-0.2-1.fc24.noarch
DEBUG util.py:542: Child return code was: 1
Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2016-03-12 07:45:35 +00:00
|
|
|
# Not all arches currently have docker
|
2016-08-12 09:49:59 +00:00
|
|
|
%if basearch not in ("ppc", "ppc64", "s390"):
|
Not all arches currently have docker
At the momenet some PPC and s390 arches don't have docker, in that case we get the following failure when running lorax.
DEBUG util.py:417: 2016-03-12 01:00:27,658: dnf.exceptions.DepsolveError: nothing provides docker-utils needed by docker-anaconda-addon-0.2-1.fc24.noarch
DEBUG util.py:417: dnf.exceptions.DepsolveError: nothing provides docker-utils needed by docker-anaconda-addon-0.2-1.fc24.noarch
DEBUG util.py:417: Traceback (most recent call last):
DEBUG util.py:417: File "/usr/sbin/lorax", line 353, in <module>
DEBUG util.py:417: main(sys.argv)
DEBUG util.py:417: File "/usr/sbin/lorax", line 209, in main
DEBUG util.py:417: remove_temp=True, verify=opts.verify)
DEBUG util.py:417: File "/usr/lib/python3.5/site-packages/pylorax/__init__.py", line 277, in run
DEBUG util.py:417: rb.install()
DEBUG util.py:417: File "/usr/lib/python3.5/site-packages/pylorax/treebuilder.py", line 119, in install
DEBUG util.py:417: self._runner.run("runtime-install.tmpl")
DEBUG util.py:417: File "/usr/lib/python3.5/site-packages/pylorax/ltmpl.py", line 219, in run
DEBUG util.py:417: self._run(commands)
DEBUG util.py:417: File "/usr/lib/python3.5/site-packages/pylorax/ltmpl.py", line 238, in _run
DEBUG util.py:417: f(*args)
DEBUG util.py:417: File "/usr/lib/python3.5/site-packages/pylorax/ltmpl.py", line 540, in run_pkg_transaction
DEBUG util.py:417: self.dbo.resolve()
DEBUG util.py:417: File "/usr/lib/python3.5/site-packages/dnf/base.py", line 547, in resolve
DEBUG util.py:417: raise exc
DEBUG util.py:417: dnf.exceptions.DepsolveError: nothing provides docker-utils needed by docker-anaconda-addon-0.2-1.fc24.noarch
DEBUG util.py:542: Child return code was: 1
Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2016-03-12 07:45:35 +00:00
|
|
|
installpkg docker-anaconda-addon
|
|
|
|
%endif
|
2015-11-30 17:34:35 +00:00
|
|
|
|
2011-05-05 22:24:58 +00:00
|
|
|
## actually install all the requested packages
|
|
|
|
run_pkg_transaction
|