Commit Graph

340 Commits

Author SHA1 Message Date
Lars Karlitski
1511c0f9a2 Pass ssl certificate options to anaconda
If a repository has `sslcacert`, `sslclientcert`, or `ssclientkey` set,
pass them to anaconda through the kickstart file. This is mostly the
case when using RHEL repositories that are accessed through a
subscription.

(cherry picked from commit e194b5926c)

Resolves: rhbz#1663950
2019-04-04 08:46:44 -07:00
Brian C. Lane
a9a3016cae Fixup lorax.spec bugs
The first build for 8.1.0 contained some bugs that referenced old 8.0.0
bugs. I edited the spec in dist-git and the changes need to be reflected
here as well.

Related: rhbz#1678937
2019-03-27 12:53:09 -07:00
Brian C. Lane
fd883c86f7 Automatic commit of package [lorax] release [28.14.25-1].
Created by command:

/bin/tito tag
2019-03-27 12:43:42 -07:00
Brian C. Lane
8b9c2d5999 Automatic commit of package [lorax] release [28.14.24-1].
Created by command:

/bin/tito tag
2019-03-21 15:51:51 -07:00
Brian C. Lane
7d4a9ca0b1 Automatic commit of package [lorax] release [28.14.23-1].
Created by command:

/bin/tito tag
2019-01-30 10:08:44 -08:00
Brian C. Lane
6a55184c66 lorax: Move default tmp dir to /var/tmp/lorax
If systemd's tmpfiles.d timer is executed while lorax is running it will
remove any files and directories older than 30 days. This is what has
been causing the occasional error where /proc/ would seem to vanish
during the install.

Upstream has proposed this solution, https://github.com/systemd/systemd/pull/11482
but until that is released we need a work-around to protect the lorax
files.

This commit does several things:

* Move the default tmpdir from /var/tmp/ to /var/tmp/lorax/
* Add a lorax.conf tmpfiles.d file that prevents systemd-tmpfiles from
  removing anything under /var/tmp/lorax/
* Add an exit handler to lorax so that temporary directories are removed on
  exit or on a python traceback.
* Use flock to lock access to the tempdir while lorax is running.
* Remove any unlocked tempdirs named /var/tmp/lorax/lorax.* at startup

Note that the exit handler will not remove the tempdir if lorax is
killed with a signal -- those are being caught by dnf and prevent the
exit handler from running.

systemd-tmpfiles cannot clean up the tempdirs at boot time because they
contain files labeled as shadow_t, so we have to remove those when lorax
runs. It uses the flock to prevent removing any directories created by
parallel instances of lorax and only removes ones that are unlocked.
Worst case they will be around until the first run of lorax after a
reboot.

If you want to keep the working directory around for debugging purposes
use --workdir /var/tmp/lorax/my-workdir and it won't be removed by
lorax.

Resolves: rhbz#1668408
2019-01-30 09:19:24 -08:00
Brian C. Lane
9caa35776b Automatic commit of package [lorax] release [28.14.22-1].
Created by command:

/bin/tito tag
2019-01-11 14:50:49 -08:00
Brian C. Lane
bcb8058dce Automatic commit of package [lorax] release [28.14.20-1].
Created by command:

/bin/tito tag
2019-01-08 16:15:32 -08:00
Brian C. Lane
4f33181f2f Automatic commit of package [lorax] release [28.14.19-1].
Created by command:

/bin/tito tag
2018-12-18 15:17:10 -08:00
Brian C. Lane
b2e1aec635 Automatic commit of package [lorax] release [28.14.18-1].
Created by command:

/bin/tito tag
2018-12-07 13:31:42 -08:00
Brian C. Lane
15c64d9f8d There is no support for edk2-ovmf on arm/arm64
Resolves: rhbz#1655512
2018-12-07 11:48:59 -08:00
Brian C. Lane
580e771dea Automatic commit of package [lorax] release [28.14.17-1].
Created by command:

/bin/tito tag
2018-11-29 13:21:21 -08:00
Brian C. Lane
8b114327b1 Automatic commit of package [lorax] release [28.14.16-1].
Created by command:

/usr/bin/tito tag
2018-10-12 12:45:56 -07:00
Brian C. Lane
ee2ec1bfe4 Automatic commit of package [lorax] release [28.14.15-1].
Created by command:

/usr/bin/tito tag
2018-10-09 12:05:32 -07:00
Brian C. Lane
37051dbe2b Automatic commit of package [lorax] release [28.14.14-1].
Created by command:

/usr/bin/tito tag
2018-10-08 16:22:54 -07:00
Brian C. Lane
077582ee49 Revert "Rename composer-cli to composer"
This reverts commit 2c2e3156d0.

It conflicts with the PHP dependency manager project named 'composer'

Related: rhbz#1635763
2018-10-08 16:22:15 -07:00
Brian C. Lane
8dc43a7124 Automatic commit of package [lorax] release [28.14.13-1].
Created by command:

/usr/bin/tito tag
2018-10-05 09:56:02 -07:00
Lars Karlitski
2c2e3156d0 Rename composer-cli to composer
Resolves: rhbz#1635763
2018-10-05 08:30:34 -07:00
Brian C. Lane
63a6e72a59 Automatic commit of package [lorax] release [28.14.12-1].
Created by command:

/usr/bin/tito tag
2018-10-03 15:55:10 -07:00
Brian C. Lane
25ee5c9ee7 Automatic commit of package [lorax] release [28.14.11-1].
Created by command:

/usr/bin/tito tag
2018-10-02 17:01:23 -07:00
Brian C. Lane
cec5f941bf Automatic commit of package [lorax] release [28.14.10-1].
Created by command:

/usr/bin/tito tag
2018-10-01 15:30:19 -07:00
Brian C. Lane
546c8b5a62 Automatic commit of package [lorax] release [28.14.9-1].
Created by command:

/usr/bin/tito tag
2018-09-25 10:07:19 -07:00
Brian C. Lane
9cb0df6223 Automatic commit of package [lorax] release [28.14.8-1].
Created by command:

/usr/bin/tito tag
2018-09-18 10:25:47 -07:00
Brian C. Lane
281a005799 Automatic commit of package [lorax] release [28.14.7-1].
Created by command:

/usr/bin/tito tag
2018-09-04 11:24:53 -07:00
Josh Boyer
97ae180677 Require python3-librepo
Newer python3-dnf no longer Requires: python3-librepo, but lorax
uses this.  Add an explicit Requires instead of getting it
transitively
2018-08-31 11:29:22 -04:00
Brian C. Lane
fc139f451a Automatic commit of package [lorax] release [28.14.6-1].
Created by command:

/usr/bin/tito tag
2018-08-29 15:54:31 -07:00
Brian C. Lane
8e27de29b2 Bump required dnf version to 3.2.0 for module_platform_id support 2018-08-29 10:48:02 -07:00
Brian C. Lane
afb9ac2d59 Automatic commit of package [lorax] release [28.14.5-1].
Created by command:

/usr/bin/tito tag
2018-08-27 15:57:55 -07:00
Brian C. Lane
a567c614f1 Fix tests related to blueprint name changes 2018-08-22 10:22:36 -07:00
Brian C. Lane
792bf67ac7 Only include specific blueprints in the rpm
Related: rhbz#1613058
2018-08-21 12:30:05 -07:00
Brian C. Lane
7c653aa837 Automatic commit of package [lorax] release [28.14.4-1].
Created by command:

/usr/bin/tito tag
2018-08-09 16:29:04 -07:00
Brian C. Lane
41b8dba827 Fix bash_completion.d typo 2018-08-09 16:25:51 -07:00
Will Woods
10f2cde6bc Add etc/bash_completion.d/composer-cli
Here's a bash_completion file for composer-cli! It completes known
commands, subcommands, and flags, plus arguments to flags that take
arguments, and if you've got write access to the socket it'll also
autocomplete:

* source names for commands that need source names
* blueprint names for commands that take blueprint names
* compose uuids for commands that take compose uuids
  * intelligently only suggests appropriate uuids - e.g. only
    suggests uuids of running composes for "compose cancel"

NOTE: bash completion scripts are horrible and this is no exception.
Please forgive me.
2018-08-07 12:12:17 -07:00
Brian C. Lane
ac6f6f6a80 Automatic commit of package [lorax] release [28.14.3-1].
Created by command:

/usr/bin/tito tag
2018-07-30 08:32:33 -07:00
Brian C. Lane
619026ff3d Update to use only qemu-kvm
We only have qemu-kvm available, so use that. This also means that there
will not me any support for using qemu with arches that are different
from the host.
2018-07-27 15:10:22 -07:00
Brian C. Lane
fab8c0786d Automatic commit of package [lorax] release [28.14.2-1].
Created by command:

/usr/bin/tito tag
2018-07-20 16:27:40 -07:00
Brian C. Lane
f05a95ebe5 Automatic commit of package [lorax] release [28.14.1-1].
Created by command:

/usr/bin/tito tag
2018-07-18 10:07:23 -07:00
Brian C. Lane
5b83da690e Add requires on lorax-templates-rhel
Also switch to using the %{buildroot} macro and %autosetup
2018-07-18 10:06:06 -07:00
Brian C. Lane
38bd2bbe95 Require python3-dnf v3.0.0 or later 2018-06-28 16:22:07 -07:00
Brian C. Lane
7c364d297b Include example blueprints in the rpm
This also sets ownership of /var/lib/lorax/composer/ to root:weldr to
allow missing directories to be created at runtime.

(cherry picked from commit f38f5cc168)
2018-06-27 16:14:47 -07:00
Brian C. Lane
9192454ffe Automatic commit of package [lorax] release [28.14.0-1].
Created by command:

/usr/bin/tito tag --keep-version
2018-06-07 09:51:17 -07:00
Brian C. Lane
760d70f158 Automatic commit of package [lorax] release [28.14-1].
Created by command:

/usr/bin/tito tag
2018-06-07 09:18:26 -07:00
Brian C. Lane
fd2b5de02c Automatic commit of package [lorax] release [28.13-1].
Created by command:

/usr/bin/tito tag
2018-06-04 16:51:00 -07:00
Brian C. Lane
5548f5f1c7 Automatic commit of package [lorax] release [28.12-1].
Created by command:

/usr/bin/tito tag
2018-05-24 09:13:16 -07:00
Brian C. Lane
9c7446f44c Automatic commit of package [lorax] release [28.11-1].
Created by command:

/usr/bin/tito tag
2018-05-17 13:13:17 -07:00
Brian C. Lane
55b89d1aeb Add support for systemd socket activation
Instead of enabling lorax-composer.service enable lorax-composer.socket
and it will start lorax-composer on first access to
/run/weldr/api.socket
2018-05-17 10:34:35 -07:00
Brian C. Lane
d68429071c lorax-composer also requires tar 2018-05-17 10:34:35 -07:00
Brian C. Lane
df63cfddc5 Update setup.py for lorax-composer and composer-cli 2018-05-17 10:34:34 -07:00
Brian C. Lane
263f1154a0 Update lorax.spec for lorax-composer
Add new subpackages for lorax-composer and composer-cli, and new requirements.
Trim changelog
Fix a couple of un-versioned Provides
2018-05-17 10:34:34 -07:00
Dan Horák
1f48a5137d really kill kernel-bootwrapper on ppc
(cherry picked from commit 4a905bdfb0)
2018-05-17 10:33:55 -07:00
Brian C. Lane
63d144e5d9 Automatic commit of package [lorax] release [28.10-1].
Created by command:

/usr/bin/tito tag
2018-04-09 13:49:53 -07:00
Brian C. Lane
c417f8475d Update the URL in lorax.spec to point to new Lorax location
Moved to https://github.com/weldr/lorax

(cherry picked from commit 1cf2d8fe6f)
2018-03-19 13:45:22 -07:00
Brian C. Lane
fa28f2ba2e Automatic commit of package [lorax] release [28.9-1].
Created by command:

/usr/bin/tito tag
2018-03-15 13:52:45 -07:00
Brian C. Lane
7bc3732bda Automatic commit of package [lorax] release [28.8-1].
Created by command:

/usr/bin/tito tag
2018-02-26 10:25:51 -08:00
Brian C. Lane
039c992e69 Automatic commit of package [lorax] release [28.7-1].
Created by command:

/usr/bin/tito tag
2018-02-23 13:24:19 -08:00
Brian C. Lane
5d21dee7c0 livemedia-creator --no-virt requires a system-logos package
In order to run the output templates it needs the logos package to be
installed on the host.
2018-02-23 10:19:25 -08:00
Brian C. Lane
1471ef8ad0 Automatic commit of package [lorax] release [28.6-1].
Created by command:

/usr/bin/tito tag
2018-02-22 17:02:19 -08:00
Brian C. Lane
80ed94dc06 Automatic commit of package [lorax] release [28.5-1].
Created by command:

/usr/bin/tito tag
2018-01-29 08:34:52 -08:00
Brian C. Lane
f1467ca99f Automatic commit of package [lorax] release [28.4-1].
Created by command:

/usr/bin/tito tag
2018-01-17 09:40:48 -08:00
Brian C. Lane
c611bbee73 Automatic commit of package [lorax] release [28.3-1].
Created by command:

/usr/bin/tito tag
2018-01-03 11:44:07 -08:00
Brian C. Lane
8b50bfbf8d Automatic commit of package [lorax] release [28.2-1].
Created by command:

/usr/bin/tito tag
2017-11-28 09:10:44 -08:00
Brian C. Lane
3c0cb25770 Add /usr/share/lorax/templates.d ownership to lorax-templates-generic 2017-11-27 12:02:46 -08:00
Brian C. Lane
b55398c521 Automatic commit of package [lorax] release [28.1-1].
Created by command:

/usr/bin/tito tag
2017-10-19 14:39:00 -07:00
Brian C. Lane
11e3fdadbb Automatic commit of package [lorax] release [28.0-1].
Created by command:

/usr/bin/tito tag --keep-version
2017-10-17 10:02:14 -07:00
Brian C. Lane
d93adc283f Automatic commit of package [lorax] release [27.11-1].
Created by command:

/usr/bin/tito tag
2017-09-27 13:30:46 -07:00
Dan Horák
9264ec7f26 distribute the mk-s390-cdboot utility 2017-09-27 09:43:10 -07:00
Brian C. Lane
743fb92757 Automatic commit of package [lorax] release [27.10-1].
Created by command:

/usr/bin/tito tag
2017-09-18 13:13:55 -07:00
Brian C. Lane
28df9a9d82 Automatic commit of package [lorax] release [27.9-1].
Created by command:

/usr/bin/tito tag
2017-08-25 16:40:45 -07:00
Brian C. Lane
a31617e376 Automatic commit of package [lorax] release [27.8-1].
Created by command:

/usr/bin/tito tag
2017-08-24 12:05:57 -07:00
Brian C. Lane
d36f188160 Automatic commit of package [lorax] release [27.7-1].
Created by command:

/usr/bin/tito tag
2017-08-24 09:27:29 -07:00
Brian C. Lane
931f7da88e Automatic commit of package [lorax] release [27.6-1].
Created by command:

/usr/bin/tito tag
2017-08-14 14:47:19 -07:00
Brian C. Lane
88498263b1 Automatic commit of package [lorax] release [27.5-1].
Created by command:

/usr/bin/tito tag
2017-08-02 17:36:44 -07:00
Brian C. Lane
e562f79f3a Automatic commit of package [lorax] release [27.4-1].
Created by command:

/usr/bin/tito tag
2017-07-10 11:43:10 -07:00
Brian C. Lane
79d5690547 Automatic commit of package [lorax] release [27.3-1].
Created by command:

/usr/bin/tito tag
2017-06-20 10:43:48 -07:00
Brian C. Lane
a0ef28fb82 Automatic commit of package [lorax] release [27.2-1].
Created by command:

/usr/bin/tito tag
2017-06-01 08:09:41 -07:00
Brian C. Lane
62969dee4f Automatic commit of package [lorax] release [27.1-1].
Created by command:

/usr/bin/tito tag
2017-05-31 08:36:14 -07:00
Brian C. Lane
39e64b627f Automatic commit of package [lorax] release [27.0-1].
Created by command:

/usr/bin/tito tag --keep-version
2017-05-30 11:10:16 -07:00
Brian C. Lane
36b9c14dc4 Bump version to 27.0 2017-05-30 11:09:34 -07:00
Brian C. Lane
3552cda01c Automatic commit of package [lorax] release [26.7-1].
Created by command:

/usr/bin/tito tag
2017-03-06 15:23:07 -08:00
Brian C. Lane
620c4469a6 Automatic commit of package [lorax] release [26.6-1].
Created by command:

/usr/bin/tito tag
2017-02-21 10:27:28 -08:00
Brian C. Lane
0a53c9f8e6 Automatic commit of package [lorax] release [26.5-1].
Created by command:

/usr/bin/tito tag
2017-02-06 10:11:47 -08:00
Brian C. Lane
6d5161c7f1 Automatic commit of package [lorax] release [26.4-1]. 2017-01-13 13:47:20 -08:00
Brian C. Lane
ff5b931049 Automatic commit of package [lorax] release [26.3-1]. 2016-12-06 16:27:36 -08:00
Brian C. Lane
0a3fbaa446 Only require edk2-ovmf on supported arches. 2016-11-28 10:53:39 -08:00
Brian C. Lane
ea11bcf8da Automatic commit of package [lorax] release [26.2-1]. 2016-11-22 09:24:32 -08:00
Brian C. Lane
359b78385f Automatic commit of package [lorax] release [26.1-1]. 2016-10-17 17:39:06 -07:00
Brian C. Lane
59c3109b3e Automatic commit of package [lorax] release [26.0-1]. 2016-09-30 09:14:17 -07:00
Brian C. Lane
492364169f Bump version to 26.0 2016-09-30 09:13:42 -07:00
Igor Gnatenko
ef5475e552 adapt to DNF 2.0 API changes
References: https://bugzilla.redhat.com/show_bug.cgi?id=1380566
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-09-30 09:09:41 -07:00
Brian C. Lane
1cde1b46a4 Automatic commit of package [lorax] release [25.16-1]. 2016-09-26 12:07:48 -07:00
Brian C. Lane
2948925c28 Automatic commit of package [lorax] release [25.15-1]. 2016-09-08 12:15:36 -07:00
Brian C. Lane
81e394dc9a Automatic commit of package [lorax] release [25.14-1]. 2016-08-23 11:54:58 -07:00
Brian C. Lane
aa12874daf Automatic commit of package [lorax] release [25.13-1]. 2016-08-12 17:42:52 -07:00
Brian C. Lane
544751dd41 Automatic commit of package [lorax] release [25.12-1]. 2016-07-28 07:58:02 -07:00
Brian C. Lane
05fe12ed9a Automatic commit of package [lorax] release [25.11-1]. 2016-07-20 17:52:18 -07:00
Brian C. Lane
64b5fed1a9 Automatic commit of package [lorax] release [25.10-1]. 2016-07-13 07:23:25 -07:00
Brian C. Lane
b8a6814024 Automatic commit of package [lorax] release [25.9-1]. 2016-07-08 17:16:35 -07:00
Brian C. Lane
cac5140e20 Automatic commit of package [lorax] release [25.8-1]. 2016-06-02 17:14:52 -07:00
Brian C. Lane
ad4e7300ba Automatic commit of package [lorax] release [25.7-1]. 2016-05-27 17:01:39 -07:00
Brian C. Lane
551b27a8fa Update lmc UEFI support to use the edk2-ovmf package
Fedora now has a edk2 package so use the OVMF code from there. This also
adds using a copy of OVMF_VARS for each boot instead of reusing the one
provided by the package.
2016-05-17 16:44:22 -07:00