Commit Graph

2595 Commits

Author SHA1 Message Date
Brian C. Lane
f031f2850b Install nvme-cli tool
Related: rhbz#2010254
2021-10-05 11:50:56 -07:00
Brian C. Lane
ed1b4a6b22 When running the tests in docker/podman use the Fedora 34 image
until CentOS9 is released.

Related: rhbz#2010542
2021-10-05 11:37:27 -07:00
Brian C. Lane
3c9131bb35 Fix pylint warnings about string formatting
and one about unused exception value.

(cherry picked from commit f783ff77d4)

Related: rhbz#2010542
2021-10-05 10:41:07 -07:00
Brian C. Lane
531ad7d37d tests: Ignore new pylint warnings
Newer versions of pylint complain about u'' not being needed and using
open without setting encoding. These are valid warnings, but do not
effect the operation of lorax so they have been added to the
FalsePositive list in runpylint.py

(cherry picked from commit 49ff2c7d5c)

Resolves: rhbz#2010542
2021-10-05 10:39:23 -07:00
Brian C. Lane
b487de932b Automatic commit of package [lorax] release [34.9.6-1].
Created by command:

/usr/bin/tito tag
2021-09-09 10:56:10 -07:00
Brian C. Lane
473169c25b github: Run tests for rhel9-branch PRs
Related: rhbz#2000439
2021-09-02 09:55:55 -07:00
Brian C. Lane
b9fdecc823 Install unicode.pf2 from new directory
grub2-2.06-3 changes where the unicode.pf2 font file is stored.
This changes the efi.tmpl to install it from the new location, which
means that it depends on grub2-2.06-3, but there is no way to express
this in the runtime-install.tmpl so if you see a failure like:

2021-07-08 16:10:05,586:   OSError: nothing matching /var/tmp/lorax/lorax.t80f74er/installroot/boot/grub2/fonts/unicode.pf2 in /

it means the new version of grub2 wasn't in the repos you used when
running lorax.

Resolves: rhbz#2000439
2021-09-02 09:53:20 -07:00
Brian C. Lane
16d639c5bd Automatic commit of package [lorax] release [34.9.5-1].
Created by command:

/usr/bin/tito tag
2021-07-15 10:21:04 -07:00
Brian C. Lane
0485ef22f2 Add a context manager for dracut
dracut needs a reasonable chroot environment in order to run correctly.
This adds the DracutChroot context manager that sets up and tears down
mounts inside the root directory tree.

Switch to using it in creator.rebuild_initrds_for_live() and
TreeBuilder.rebuild_initrds()

(cherry picked from commit 322a810403)

Resolves: rhbz#1982271
2021-07-14 11:40:00 -07:00
Brian C. Lane
9f8df6b76c spec: Fix bug number for dropping gfs2-utils
Related: rhbz#1975378
2021-06-28 16:09:55 -07:00
Brian C. Lane
39055b5b1d Automatic commit of package [lorax] release [34.9.4-1].
Created by command:

/usr/bin/tito tag
2021-06-28 15:41:07 -07:00
Brian C. Lane
d70f0629f9 mkksiso: cmdline should default to empty string
Related: rhbz#1975844
2021-06-25 13:15:15 -07:00
Brian C. Lane
0d1777d98c runtime-install: Remove gfs2-utils
It is not needed on the installer media. Also remove references from
runtime-cleanup.tmpl

Related: rhbz#1975378
2021-06-24 09:04:01 -07:00
Brian C. Lane
54dc9e12b0 Automatic commit of package [lorax] release [34.9.3-1].
Created by command:

/usr/bin/tito tag
2021-06-10 11:20:29 -07:00
Brian C. Lane
5fa949a423 livemedia-creator: Check for mkfs.hfsplus
mkfs.hfsplus may not be installed so instead of crashing near the end of
the install check for it and print a useful error message.

Resolves: rhbz#1969743
2021-06-10 11:13:48 -07:00
Brian C. Lane
bcf1a491da Automatic commit of package [lorax] release [34.9.2-1].
Created by command:

/usr/bin/tito tag
2021-05-25 09:49:35 -07:00
Radek Vykydal
17f4a79207 Add prefixdevname to Anaconda initramfs
Related: rhbz#1958173
2021-05-24 08:21:54 -07:00
Brian C. Lane
6829f9f8a8 Replace metacity with gnome-kiosk
Related: rhbz#1961099
2021-05-20 10:19:59 -07:00
Brian C. Lane
bd80a0a0ee runtime-install: Install ipcalc
Related: rhbz#1958173
2021-05-10 15:26:40 -07:00
Brian C. Lane
77fb8bd9f2 spec: Update lorax-lmc-virt packages for rhel9 arches
- qemu-kvm isn't available on ppc64le
- edk2-aarch64 has the UEFI firmware on aarch64

Related: rhbz#1955674
2021-05-05 16:51:21 -07:00
Brian C. Lane
ff30248c09 Automatic commit of package [lorax] release [34.9.1-1].
Created by command:

/usr/bin/tito tag
2021-05-05 11:43:11 -07:00
Brian C. Lane
65cb81e7de livemedia-creator: Use inst.ks on cmdline for virt
Related: rhbz#1955674
2021-05-05 11:26:09 -07:00
Brian C. Lane
17cb4f879f image-minimizer: Fix decode() usage
Related: rhbz#1955674
2021-05-05 11:26:09 -07:00
Brian C. Lane
427e364388 docs: Update example kickstarts for RHEL/CentOS
Related: rhbz#1955674
2021-05-05 11:26:09 -07:00
Brian C. Lane
b240c9bf1a livemedia-creator: RHEL9 only supports qemu-kvm
Return an error if --arch is passed, and drop the mapping to
qemu-system-<arch> from installer.py and replace it with
/usr/libexec/qemu-kvm

Resolves: rhbz#1955674
2021-05-05 11:26:09 -07:00
Brian C. Lane
04dccefa5b runtime-cleanup: Use branding package name instead of product.name
Related: rhbz#1956205
2021-05-05 11:19:13 -07:00
Brian C. Lane
980e628835 treebuilder: Add branding package to template variables
The branding package name doesn't always match the product name.  This
saves the branding package names as discovered in the enabled repos and
exposes it to the templates as branding.release and branding.logos --
which could potentially be None so the template needs to take that into
account.

Related: rhbz#1956205
2021-05-05 11:19:09 -07:00
Brian C. Lane
6af2e23cc1 runtime-cleanup: Remove mcpp and libmcpp cleanup
Related: rhbz#1955429
2021-05-03 10:07:14 -07:00
Brian C. Lane
34e0af08c8 spec: Fix changelog for 34.9.0
Related: rhbz#1952978
2021-04-29 11:39:23 -07:00
Brian C. Lane
34cb4b762d Automatic commit of package [lorax] release [34.9.0-1].
Created by command:

/usr/bin/tito tag --keep-version
2021-04-29 11:24:14 -07:00
Brian C. Lane
faad336946 New lorax documentation - 34.9.0
Related: rhbz#1952978
2021-04-29 11:21:17 -07:00
Brian C. Lane
d16e2579d5 composer-cli: Remove all traces of composer-cli
weldr-client has replaced composer-cli so remove all of the code and
tests, adjust various things so they don't expect it to be available,
and rename some things like test/composertest.py to reflect its
exclusive use by lorax.

(cherry picked from commit b75b692607)

Resolves: rhbz#1952978
2021-04-29 11:13:51 -07:00
Brian C. Lane
743c16279f Automatic commit of package [lorax] release [34.9-1].
Created by command:

/usr/bin/tito tag

(cherry picked from commit 02c185c9c0)
2021-02-16 10:18:50 -08:00
Adam Williamson
669d9f399b Use inst.rescue to trigger rescue mode
anaconda in F34 and Rawhide recently stopped accepting params
without the inst. prefix, so 'rescue' does nothing except print
a warning now. We need to use `inst.rescue`. This has worked for
quite a long time so will be OK at least on all Fedoras and RHEL
8, not sure about RHEL 7.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
(cherry picked from commit 202f90e541)
Signed-off-by: Brian C. Lane <bcl@redhat.com>
2021-02-16 10:18:34 -08:00
Brian C. Lane
f4cab6e788 Automatic commit of package [lorax] release [34.8-1].
Created by command:

/usr/bin/tito tag

(cherry picked from commit 5e4b058bae)
2021-02-08 11:13:39 -08:00
Vladimir Slavik
4246bb04c9 Use image dependencies metapackage
The difference between the anaconda-install-{env,img}-deps packages is how
they treat dependencies. The -env package leaves some dependencies as weak to
allow less featureful builds. The -img package hard-requires everything
Anaconda could potentially use and ensures everything works.

For boot.iso, the latter is preferable. Its usage moves some things from the
templates to that package.

(cherry picked from commit 6803bae6d4)
2021-02-08 11:02:36 -08:00
Brian C. Lane
eb68d724ae tests: Include the fedora-updates repo when testing boot.iso building
(cherry picked from commit 0dc1edb564)
2021-02-08 11:02:36 -08:00
Brian C. Lane
0b8bb15b70 Automatic commit of package [lorax] release [34.7-1].
Created by command:

/usr/bin/tito tag

(cherry picked from commit 83ddffd377)
2021-02-08 11:01:45 -08:00
David Ward
2b74bc4660 live/x86.tmpl: Copy livecd-iso-to-disk script, if installed
A post-installation script in fedora-live-base.ks actually modifies
Lorax (not idempotently) with the change in this commit while it is
running. This modification belongs directly in Lorax instead.

Note a subtle distinction in behavior that has been preserved here.
Lorax will copy the livecd-iso-to-disk script from the installroot
(if present). Running livecd-creator will copy it from the existing
root filesystem instead.

(cherry picked from commit 9defb143da)
2021-02-08 11:01:17 -08:00
David Ward
f59057de2a templates: Copy license files from the correct path
Since Fedora 30, license files are missing from the ISO filesystem
of live or installer images (including official builds). The source
path to these files changed when they were moved into a subpackage
named fedora-release-common (or generic-release-common).

Also, copy the license files from the installroot, rather than the
existing root filesystem.

(cherry picked from commit 7df94aed4d)
2021-02-08 11:01:17 -08:00
Martin Pitt
7ca927946e test: Fix vm.install for non-LVM cloud images
Some of our images, like centos-8-stream, are already built from the
official cloud images instead of virt-install with LVM. More images are
going to do that soon [1][2], so fix vm.install to only do the LVM grow
steps if the image actually uses LVM.

Also adjust the comment, as commit 6ddaa5e0dd fixed this for
RHEL images.

[1] https://github.com/cockpit-project/bots/pull/1518
[2] https://github.com/cockpit-project/bots/pull/1527

(cherry picked from commit 04ce221a65)
2021-02-08 11:01:17 -08:00
Brian C. Lane
ce68a7d945 Automatic commit of package [lorax] release [34.6-1].
Created by command:

/usr/bin/tito tag

(cherry picked from commit f6924f8f1f)
2021-02-08 11:00:43 -08:00
Brian C. Lane
e1caa5624e Remove LD_PRELOAD libgomp.so.1 from lmc --no-virt
The libgomp bug rhbz#1722181 has been closed since August.

(cherry picked from commit b0318efead)
2021-02-08 11:00:23 -08:00
Brian C. Lane
929d2585eb Add POSTIN scriptlet error to the log monitor list
This will cause livemedia-creator to terminate anaconda and exit when an
install hits an error that often causes anaconda to get stuck and not
exit.

Resolves: rhbz#1900596
(cherry picked from commit a33efe7c51)
2021-02-08 11:00:23 -08:00
Brian C. Lane
e6a2cc605c Improve lmc no-virt error handling
When monitoring log output in livemedia-creator --no-virt it could get
stuck if the output from anaconda stops for some reason.

This changes execReadlines so that it will only read output when it is
available, will monitor the process state, and continue to call the
callback function.

It also adds a final timeout on proc.communicate() so that if Anaconda
becomes stuck and won't exit livemedia-creator will eventually exit.

When the no-virt callback terminates anaconda on an error it now sends a
TERM signal to all of the unshare process' children because just sending
it to unshare doesn't cause anaconda to exit.

(cherry picked from commit 6400515880)
2021-02-08 11:00:23 -08:00
Brian C. Lane
251794eead lorax.spec: Drop GConf2 requirement
This hasn't been needed since commit bb3d8edd06

Resolves: rhbz#1904955
2020-12-08 11:14:13 -08:00
Brian C. Lane
d88ddd8dd7 Automatic commit of package [lorax] release [34.5-1].
Created by command:

/usr/bin/tito tag
2020-12-02 11:36:30 -08:00
Simon Pichugin
7363d45330 Don't remove libldap_r libraries during runtime-cleanup.tmpl 2020-12-02 11:36:30 -08:00
Vojtech Trefny
d8c125fec2 Do not use '--loglevel' option when running Anaconda
This option has been removed, see https://github.com/rhinstaller/anaconda/pull/2864
2020-12-02 11:36:30 -08:00
Brian C. Lane
8e00450632 Makefile: quiet rsync use in testing 2020-12-02 11:35:09 -08:00