Commit Graph

1386 Commits

Author SHA1 Message Date
Brian C. Lane
ba11077394 livemedia-creator: Remove random-seed from images (#1258986)
systemd uses /var/lib/systemd/random-seed to add entropy to /dev/urandom
at boot time. During image creation this file is created, and if not
removed everything using the image will be adding the same seed.

This is only additional entropy, NOT a seed in the sense of a starting
point for a PRNG, so it will be mixed with other entropy as the system
runs. It isn't a good idea to use the same value everywhere so make sure
it is removed in %post

Resolves: rhbz#1258986
(cherry picked from commit 6f6af862c6)
2015-09-02 10:33:21 -07:00
Will Woods
704a01919b drop fedup-dracut and friends
This package will not exist soon. Don't bother trying to install it.

(cherry picked from commit 52171ecf23)
2015-08-31 16:39:30 -07:00
Will Woods
d9c23d1bce don't build upgrade.img anymore
fedup is deprecated and abandoned. Let's save time and disk by not
building `upgrade.img` when nothing is going to use it anymore.

For the record, performing upgrades using an initramfs from the new
system turns out to be fragile and hard to support:

* dracut initramfs isn't generic enough to handle booting all systems
  (e.g. missing vconsole.conf means you get keymaps wrong, so users
  can't unlock encrypted disks)

* The ABI differences between the two versions of plymouth, systemd,
  etc. requires nasty workarounds at best and causes nightmarish
  systemd crashes at worst

This patch removes all the code that built and installed `upgrade.img`.

For backwards compatibility, the API retains the `doupgrade` keyword
argument, and the `--noupgrade` flag is still accepted.

(cherry picked from commit a3e1a275ff)
2015-08-31 16:39:30 -07:00
Brian C. Lane
7c0c5c53ca Automatic commit of package [lorax] release [23.17-1]. 2015-08-27 15:44:39 -07:00
David Shea
2a19315dcd Add enough of shadow-utils to create new user accounts.
Yes user accounts, some account management

(cherry picked from commit 88869fff66)
2015-08-27 10:22:38 -04:00
Brian C. Lane
8efdfd26f2 Automatic commit of package [lorax] release [23.16-1]. 2015-08-07 17:12:50 -07:00
Peter Robinson
fd16dc1d1b some of the PowerPC utilities (powerpc-utils and fbset) need perl too
(cherry picked from commit dc9bae9b68)
2015-08-07 16:57:21 -07:00
Brian C. Lane
27e95a3b8b Add a default vconsole.conf to the boot.iso (#1250260)
This is needed so that the initial console will use the correct font
(eurlatgr). See
https://fedoraproject.org//wiki/Changes/NewDefaultConsoleFont for more
detail.

(cherry picked from commit 57b7516857)
2015-08-07 16:57:08 -07:00
Brian C. Lane
0c2905d2a3 Return the output from failed commands in CalledProcessError
Some callers expect CalledProcessError.output to have the output, so
pass up the stdout + stderr output.

This means failed runcmd template commands will log to program.log and
lorax.log

(cherry picked from commit 522ec34360)
2015-08-05 11:39:23 -07:00
Brian C. Lane
4ffcd47874 Add dracut-live for livemedia kickstart example
(cherry picked from commit b23bef069a)
2015-07-30 15:08:40 -07:00
Brian C. Lane
b74986b2ba Automatic commit of package [lorax] release [23.15-1]. 2015-07-30 14:56:53 -07:00
Brian C. Lane
955afa8699 livemedia-creator: Bump default releasevere to 23
Also point the example kickstarts to the F23 development repository.
2015-07-30 14:40:15 -07:00
Brian C. Lane
9f702f5624 Use execReadlines in livemedia-creator
Log output from anaconda as it is received so that progress can be
monitored.
2015-07-30 09:05:31 -07:00
Brian C. Lane
cfe4777042 Add execReadlines to executils.
Returns output in realtime instead of buffering it.
2015-07-30 09:02:48 -07:00
Brian C. Lane
11b8eb8b97 Add reset_lang argument to everything in executils.
Running anaconda from lmc needs to override the language reset,
otherwise libuser crashes because it cannot support "C".
2015-07-27 11:27:43 -07:00
Brian C. Lane
7fc78d7ba7 Automatic commit of package [lorax] release [23.14-1]. 2015-07-21 15:33:31 -07:00
Chris Lumens
a127bef9d7 Add a new makefile target that does everything needed for jenkins.
We should have as much of the logic of how the CI tests are run in source
control as possible, so that's what this target is for.  Besides this, jenkins
just runs a "git clean" first.
2015-07-21 16:24:21 -04:00
David Shea
52b7c4dd06 Revert "Revert "Turn off ldconfig""
We really shouldn't need to run ldconfig on boot from read-only media,
unless someone messed up %post in a package. And the verify step will
catch that.

This reverts commit 3981ff5b79.
2015-07-20 16:18:20 -04:00
David Shea
89441cd675 Add back libraries needed by spice-vdagent
spice-vdagent, half of the thing that lets copy/paste work across a
spice connection, added sound support, I guess, so now we need
alsa-libs.
2015-07-20 16:18:20 -04:00
David Shea
1fa622e77c Remove some junk that didn't work anyway
systemd-nspawn is some kind of container thing, and cairo-sphinx, as far
as I can tell (go ahead, try to google it) is a cairo debugging tool.
Neither of these are particularly useful on installer media and both use
libraries that are removed during cleanup.
2015-07-20 16:18:20 -04:00
David Shea
04d170bb09 Add a verification step to Lorax.run.
After the cleanup step, check that everything in /usr/bin and /usr/sbin
can still run. Currently, this just checks that ELF files have
everything they need to link, and scripts have an interpreter.

Verifying is on by default but can be skipped with --noverify
2015-07-20 16:18:20 -04:00
Brian C. Lane
d6584e1d77 Create an empty selinux config file (#1243168)
In order for selinux to properly label the system it needs to see that
the config file exists.

Also remove the old code trying to copy in a selinux config file, it
never worked -- the removepkg would remove it.
2015-07-20 11:32:31 -07:00
Brian C. Lane
9e910fadde Update Lorax documentation - 23.13
Add documentation for the new monitor and mount modules.
2015-07-17 08:36:21 -07:00
Brian C. Lane
ef40d91c76 Automatic commit of package [lorax] release [23.13-1]. 2015-07-10 17:01:14 -07:00
Brian C. Lane
8a8b4e1a45 Add a bit more overhead to the root filesystem size
When this is too small the rootfs can run into problems when used with a
live system. Doubling it leaves enough space for the system to run
properly during the installation and since it's all compresses it
doesn't make the image noticeably bigger.
2015-07-01 08:32:33 -07:00
Radek Vykydal
c0516dd961 network: turn slaves autoconnection on
So we can activate master connection instead of searching for and activating
slave connections.

Makes turning bond/team device on in network spoke work.

Resolves: rhbz#1172751

It also causes a device configured in dracut to be properly reactivated as a slave
if it is configured so by kickstart.

Resolves: rhbz#1134090
2015-07-01 10:42:46 +02:00
Brian C. Lane
4342b8f40b Keep hyperv_fb driver in the image (#834791)
Hyper-V needs this.

Resolves: rhbz#834791
(cherry picked from commit b51ff60875)
2015-06-29 11:04:07 -07:00
Brian C. Lane
02c767803f Automatic commit of package [lorax] release [23.12-1]. 2015-06-26 17:40:21 -07:00
Brian C. Lane
4c3595e797 Explicitly add kernel-modules and kernel-modules-extra
When it is left up to dnf to decide how to fulfill the kmod()
requirement from gfs2-utils it will pick kernel-debuginfo-* which adds
about 100M to the size of the iso.

Adding these packages first makes dnf choose them and the iso size is
back down around 450MB
2015-06-22 16:23:29 -07:00
Brian C. Lane
c3b2ac9433 Automatic commit of package [lorax] release [23.11-1]. 2015-06-19 17:30:45 -07:00
Brian C. Lane
a4d350a177 Disable systemd-tmpfiles-clean (#1202545)
When the time changes dramatically it cleans up the files in /tmp/
causing problems with the installation.

Resolves: rhbz#1202545
2015-06-15 14:48:30 -07:00
Brian C. Lane
ef445999cb Automatic commit of package [lorax] release [23.10-1]. 2015-06-10 16:37:48 -07:00
David Shea
bbd1592f43 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 16:32:29 -04:00
Brian C. Lane
da4456eda9 Stop moving sitecustomize into site-packages
Now that anaconda is python3 this is not needed.
2015-06-10 10:15:02 -07:00
Chris Lumens
c3743c54bc Pass setup_logging the log file, not the whole opts structure. 2015-06-03 08:55:34 -04:00
Chris Lumens
ffa25dd609 Move IsoMountpoint into its own module. 2015-06-01 14:27:32 -04:00
Chris Lumens
d23605d3cc Move setup_logging into pylorax/__init__.py. 2015-06-01 14:27:29 -04:00
Chris Lumens
893791cf7d Break all the log monitoring stuff from LMC out into its own module. 2015-05-29 13:53:07 -04:00
Brian C. Lane
7cd329a065 Fix bug with product DataHolder overwriting product string. 2015-05-18 08:24:23 -07:00
Brian C. Lane
e27ebffe81 Automatic commit of package [lorax] release [23.9-1]. 2015-05-15 17:12:06 -07:00
Brian C. Lane
3560d12608 Update execWith* docstrings 2015-05-15 17:11:21 -07:00
Brian C. Lane
1a6a118665 livemedia-creator: Update example kickstarts
network line is no longer needed.

zerombr is not needed, use --initlabel with clearpart
2015-05-15 17:11:21 -07:00
Brian C. Lane
0f8deb52e2 Update fedora-livemedia.ks example
Updated to current f22 version.
2015-05-15 17:11:20 -07:00
Brian C. Lane
37868a3529 Include html documentation under docs/html 2015-05-15 17:11:20 -07:00
Brian C. Lane
92583a728b Switch documentation to python3
Build html by running make html
2015-05-15 17:11:20 -07:00
Brian C. Lane
0f0f01d51d Create html documentation under docs/html/ 2015-05-15 17:11:20 -07:00
Brian C. Lane
1305d4d0f9 livemedia-creator: Catch missing package errors 2015-05-15 17:11:20 -07:00
Brian C. Lane
7827ba112c Update spec for python3 and add subpackages for lmc
This updates things for python3, and adds 2 subpackages to pull in
dependencies needed by lmc when running with virt-install or --no-virt
with anaconda.
2015-05-15 17:11:20 -07:00
Brian C. Lane
1a92b1b05e Convert to using pocketlint for pylint rules
Also cleanup some warnings.
2015-05-15 17:11:20 -07:00
Brian C. Lane
80f66d438d Convert livemedia-creator to py3 2015-05-15 17:11:20 -07:00