Lorax is a set of tools used to create bootable images.
Go to file
Brian C. Lane e4fe1aab32 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.
2019-01-29 13:57:12 -08:00
.github Typo in PR template 2019-01-28 11:17:58 +02:00
docs Turn off smartquotes in Sphinx documentation 2019-01-08 10:20:38 -08:00
etc Revert "Rename composer-cli to composer" 2018-10-08 09:23:47 -07:00
rel-eng Automatic commit of package [lorax] release [30.12-1]. 2019-01-18 09:15:37 -08:00
share dracut-fips is no longer a subpackage, it is included in dracut. 2019-01-18 08:24:25 -08:00
src lorax: Move default tmp dir to /var/tmp/lorax 2019-01-29 13:57:12 -08:00
systemd lorax: Move default tmp dir to /var/tmp/lorax 2019-01-29 13:57:12 -08:00
tests Export OS_PROJECT_NAME variable in openstack scripts 2019-01-29 12:51:30 +02:00
utils Update things to make pylint 1.5.1 happy 2015-12-16 12:59:48 -08:00
.coveragerc Enable testing in Travis and collecting of coverage history 2018-04-26 22:33:34 +03:00
.dockerignore Update .dockerignore 2018-05-14 13:00:14 -07:00
.gitignore Fix reporting of coverage results to coverall.io 2018-11-14 09:11:03 -08:00
.travis.yml Fix reporting of coverage results to coverall.io 2018-11-14 09:11:03 -08:00
ANNOUNCE Added draft on initial announce email as I keep adding to it. 2008-10-06 09:51:01 -10:00
AUTHORS add wwoods to AUTHORS 2011-10-26 12:36:06 -04:00
COPYING Initial project description files imported. 2008-09-11 14:16:39 -10:00
Dockerfile.test Fix reporting of coverage results to coverall.io 2018-11-14 09:11:03 -08:00
HACKING.md Start a HACKING.md file and document how to run the tests 2018-09-19 08:47:23 -07:00
lorax.spec lorax: Move default tmp dir to /var/tmp/lorax 2019-01-29 13:57:12 -08:00
Makefile Collect results from all cleanup scripts 2019-01-29 10:43:43 +02:00
POLICY Update TODO and POLICY to reflect the current state of things 2012-01-06 14:41:21 -05:00
README.md Update the README with relevant URLs 2018-05-14 14:44:13 -07:00
requirements.txt Mock more modules for RTD 2015-04-09 11:01:20 -07:00
setup.py lorax: Move default tmp dir to /var/tmp/lorax 2019-01-29 13:57:12 -08:00
TODO Update TODO and POLICY to reflect the current state of things 2012-01-06 14:41:21 -05:00

Lorax is a set of tools used to create bootable images.

  • lorax - creates the Anaconda boot.iso used to install Fedora
  • livemedia-creator - uses Anaconda to create bootable images
  • lorax-composer - API server implementing the Weldr BDCS protocol using livemedia-creator

See the Weldr blog for more info about BDCS and the Lorax documentation for more information about Lorax and associated tools.