Commit Graph

266 Commits

Author SHA1 Message Date
Brian C. Lane
b3c4e530fe Automatic commit of package [lorax] release [28.26-1].
Created by command:

/bin/tito tag
2019-01-30 12:10:35 -08:00
Brian C. Lane
98d56fba67 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.

(cherry picked from commit e4fe1aab32)
2019-01-29 13:58:47 -08:00
Brian C. Lane
7e694c9c96 Automatic commit of package [lorax] release [28.25-1].
Created by command:

/bin/tito tag
2019-01-18 09:38:09 -08:00
Brian C. Lane
e11e428a6e Automatic commit of package [lorax] release [28.24-1].
Created by command:

/bin/tito tag
2019-01-08 14:40:07 -08:00
Brian C. Lane
970b787e68 Automatic commit of package [lorax] release [28.23-1].
Created by command:

/bin/tito tag
2018-12-17 16:55:19 -08:00
Brian C. Lane
286f4c1dce Automatic commit of package [lorax] release [28.22-1].
Created by command:

/bin/tito tag
2018-12-06 16:17:37 -08:00
Brian C. Lane
d262f6eaab Automatic commit of package [lorax] release [28.21-1].
Created by command:

/bin/tito tag
2018-11-29 14:58:43 -08:00
Brian C. Lane
8129e5a9f8 Automatic commit of package [lorax] release [28.20-1].
Created by command:

/usr/bin/tito tag
2018-10-29 15:48:24 -07:00
Brian C. Lane
32156bd349 Automatic commit of package [lorax] release [28.19-1].
Created by command:

/usr/bin/tito tag
2018-10-12 15:51:00 -07:00
Brian C. Lane
a951bf083d Automatic commit of package [lorax] release [28.18-1].
Created by command:

/usr/bin/tito tag
2018-08-27 15:47:16 -07:00
Brian C. Lane
7773be2bda Fix tests related to blueprint name changes 2018-08-23 13:46:39 -07:00
Brian C. Lane
3a89828faf Automatic commit of package [lorax] release [28.17-1].
Created by command:

/usr/bin/tito tag
2018-08-09 16:38:21 -07:00
Brian C. Lane
77dc017c78 Fix bash_completion.d typo 2018-08-09 16:25:26 -07:00
Will Woods
c44347ca77 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 10:18:10 -07:00
Brian C. Lane
0060729c3d Automatic commit of package [lorax] release [28.16-1].
Created by command:

/usr/bin/tito tag
2018-07-20 16:09:36 -07:00
Brian C. Lane
914c33ef97 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:13:39 -07:00
Brian C. Lane
96e132f733 Automatic commit of package [lorax] release [28.15-1].
Created by command:

/usr/bin/tito tag
2018-06-11 11:04:32 -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