Commit Graph

1402 Commits

Author SHA1 Message Date
Brian C. Lane
8268069a9c Automatic commit of package [lorax] release [23.21-1]. 2016-04-18 10:57:46 -07:00
Brian C. Lane
5bbef06725 livemedia-creator: Make sure make-iso kickstart includes dracut-live
iso creation requires the dracut-live package, otherwise rebuilding the
initrd will crash. Since it takes a long time to discover let's fail
early.

(cherry picked from commit 607d7c1eeb)
2016-04-06 17:11:37 -07:00
Brian C. Lane
541109ff69 livemedia_creator: dirinstall_path is ROOT_PATH 2016-04-06 17:09:43 -07:00
Brian C. Lane
d14f19ae31 livemedia-creator: Simplify cleanup for no-virt
If an anaconda no-virt run crashes it can leave things mounted under
/mnt/sysimage. Previously anaconda-cleanup was used to handle this, but
it will also try to cleanup host mountpoints which isn't desired.

(cherry picked from commit bae111d5a3)
2016-04-06 17:06:20 -07:00
Brian C. Lane
926a7f6b16 image-minimizer: Fix argument parsing
Can't pass metavar to args that are just switches.

(cherry picked from commit f616d37f59)
2016-04-05 10:26:55 -07:00
Brian C. Lane
f1fd83da7a livemedia-creator: Update ks examples to point to F23 release repo 2016-04-05 08:56:33 -07:00
Brian C. Lane
4679887cc9 Automatic commit of package [lorax] release [23.20-1]. 2016-03-29 17:40:09 -07:00
Colin Walters
dcd029f50b templates: Reinstate gpgme-pthread.so for ostree
See https://github.com/GNOME/ostree/pull/190

Without this the installer ISO generation fails.

(cherry picked from commit 6fcdac5c88)
2016-03-29 15:54:03 -07:00
Brian C. Lane
eb59bc4fab templates: On 32 bit systems limit the amount of memory xz uses
This uses --memlimit-compress=3700MiB on i386 and arm when building the
product and updates images.

(cherry picked from commit ce895bbeb1)
2016-03-29 15:31:58 -07:00
Brian C. Lane
07dca74c06 ltmpl: Add compressor selection and argument passing to installimg
Allow the template to select a different compression type or arguments
for the installimg command.

On 32bit builds running inside a mock xz sees the full amount of system
memory which can result in xz failing with a memory error. This allows
the template to limit the amount of memory it tries to use.

(cherry picked from commit 0400b8c393)
2016-03-29 15:31:55 -07:00
Brian C. Lane
4bec6f9b61 Automatic commit of package [lorax] release [23.19-1]. 2016-03-11 10:47:01 -08:00
Brian C. Lane
476deb0e42 pylorax: proc.returncode can be None
So use %s to keep it from generating a Traceback. If a callback is used
and it exits before the process does the returncode can be None.

(cherry picked from commit 4fea0ba7f1)
2016-03-11 10:46:42 -08:00
Brian C. Lane
d12fc22673 Change location of basearch to dnf.rpm.basearch (#1312087)
The dnf fix for the busted API change is also busted, so just change it
everywhere.

(cherry picked from commit 8085395678)
2016-03-11 10:46:02 -08:00
Dan Horák
4056a5cc84 rsa1 keys are not supported any more by our openssh
(cherry picked from commit 15d44ce562)
2015-10-02 09:04:15 -07:00
Brian C. Lane
8ac8939b3a Automatic commit of package [lorax] release [23.18-1]. 2015-09-11 18:02:19 -07:00
Brian C. Lane
48498d9a2e Add a font that supports Urdu characters (#1004717)
(cherry picked from commit dc663cd9bf)
2015-09-09 08:08:55 -07:00
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