Commit Graph

1906 Commits

Author SHA1 Message Date
Brian C. Lane
33308c227c Add support for aarch64 live images
This adds the aarch64 template, and the grub2-efi config file to the
live template directory.

Resolves: rhbz#1369014
2017-05-30 09:46:10 -07:00
Brian C. Lane
a92aa63491 pylint: Ignore different argument lengths for dnf callback.
It may or may not be used with a newer version of dnf. The callback
doesn't use the argument so just ignore it.
2017-05-24 09:13:42 -07:00
Jaroslav Mracek
10bbeac6d1 Adds additional callbacks keyword for start()
It reflects latest changes in dnf-2.5.0-1
2017-05-24 08:05:15 -07:00
Peter Robinson
5bbd05e620 Add ppc64-diag for Power64 platforms
As per RHBZ #1433859 ppc64-diag is needed for dynamic pci hotplug in
virtual guest.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
2017-04-24 14:23:38 -07:00
Brian C. Lane
c91278a17d livemedia-creator: Add release license files to / of the iso
This used to be handled by a %post section of the kickstart, but that
won't work with lmc, so do it in the template instead.
2017-03-15 08:22:23 -07:00
Brian C. Lane
9fe59eed0b lorax: Add release license files to / of the iso 2017-03-15 08:22:23 -07:00
Brian C. Lane
092c593d6b INSTALL_ROOT and LIVE_ROOT are not available during %post
These were set by livecd-creator, and the %post section was used to
setup the license files on the / of the iso which will not work from
inside anaconda so drop it completely.
2017-03-15 08:22:23 -07:00
Brian C. Lane
cc56a5b5c9 Add --noverifyssl to lorax (#1430483)
Previously lorax had no way to use repos with self-signed certificates.
This adds the --noverifyssl cmdline option which will ignore certificate
errors.

Resolves: rhbz#1430483
2017-03-08 13:27:22 -08: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
Dusty Mabe
d6b805ae09 add ostree to get installed in anaconda environment
rpm-ostree used to have a requirement on the ostree rpm. It no
longer has that dependency, but rather requires ostree-libs. However,
we call ostree directly in some cases so we need to have it installed.
2017-02-27 11:22:55 -08:00
Jiri Konecny
957e1af948 Add dependency for lvmdump -l command (#1255659)
This is required for pre installation logging feature in Anaconda.

The libpcap library is dependency for nmap-ncat which is dependency for
lvmdump -l.
2017-02-22 09:42:31 -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
d95e69aa34 Create /dev/random and /dev/urandom before running rpm -qa (#1420523)
In order to run rpm inside the newly created image it now needs to
create a couple device nodes to satisfy nss, which is used by rpm.
2017-02-21 10:24:56 -08:00
Radek Vykydal
21076f08d9 Fix duplicate kernel messages in /tmp/syslog (#1382611)
Resolves: rhbz#1382611

The kernel messages will be read from journal so don't use additional imlkog
module to read them duplicitly.

Fixup of
commit 3eca8a0425
2017-02-16 10:36:02 +01: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
f8c9e8c120 Print the full NEVRA when installing packages.
(cherry picked from commit 92e60d7dd1)
2017-01-30 09:43:31 -08:00
Brian C. Lane
6d5161c7f1 Automatic commit of package [lorax] release [26.4-1]. 2017-01-13 13:47:20 -08:00
Dennis Gilmore
f1378dd443 Only cleanup libhistory from readline
with readline 7 libreadline.so moved to libdir as a result it is
currently removed in the cleanup phase, however it is needed

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
Signed-off-by: Brian C. Lane <bcl@redhat.com>
2017-01-13 13:45:05 -08:00
Vit Ry
a9decdd6ed Do not install rsh to anaconda chroot
* `rsh` not used in anaconda now (can't find any mentions)
* `rsh` duplicates already existing ssh
* `rsh` not secure enough these days

Signed-off-by: Brian C. Lane <bcl@redhat.com>
2017-01-13 13:42:43 -08:00
Yuval Turgeman
46277f36db Fixed NameError on result_dir when calling with --image-only
Signed-off-by: Brian C. Lane <bcl@redhat.com>
2017-01-13 13:38:33 -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
57216bd9c7 New lorax documentation - 26.2 2016-11-29 09:27:44 -08:00
Brian C. Lane
4ea20823bc runtime-postinstall: PYTHONDIR is no longer used.
Remove it.
2016-11-29 09:21: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
Peter Robinson
685b2164fb add exception for lulzbot-marlin-firmware
The lulzbot-marlin-firmware pulls in cura-lulzbot and a bunch of other
deps that aren't needed for install so add it to the exceptions.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
2016-11-22 09:00:34 -08:00
Peter Robinson
40a9f586f3 drop kexec arch conditional for aarch64
aarch64 now has support for kexec and the associated tools so we can drop
the arch conditional now.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
2016-11-22 09:00:34 -08:00
Colin Walters
3fa3d20489 imgutils: Don't relabel /ostree
OSTree is a deduplicating hardlink store using a new file path
`/ostree`, which SELinux policy doesn't know about.  However, OSTree
has SELinux support built in, and rpm-ostree (for example) uses this
to ensure the attributes on files stored there are simply always
correct.  Relabeling it will corrupt it.

Hence, let's skip it.
2016-11-16 16:39:53 -05:00
Pat Riehecky
7ca356845b Added option to remove packages (parallel to installpkgs) 2016-11-14 09:06:10 -08:00
Colin Walters
5aa6fea8c3 templates: When a subprocess fatally errors, output its stderr directly
Right now we dump all subprocess output to `program.log`.  Unfortunately,
The pungi/koji stack doesn't know how to scrape out the lorax logs.

And even when running interactively, it's annoying that *some* fatal
errors show up on stderr, but if it's from a subprocess, I need to go
over and `tail program.log`.

Let's output the subprocess stderr directly, since the user is
going to want it prominently anyways.
2016-11-14 09:04:08 -08:00
Brian C. Lane
359b78385f Automatic commit of package [lorax] release [26.1-1]. 2016-10-17 17:39:06 -07:00
Vendula Poncova
5dbc56bae9 Add missing fonts (#1370118)
Added fonts to support Tibetan, Khmer and Burmese.

Signed-off-by: Brian C. Lane <bcl@redhat.com>
2016-10-17 09:16:30 -07:00
Dan Horák
362e116cb5 drop ssh server key generation for s390(x) (#1383641)
Let the keys to be created during runtime as on other arches.

Signed-off-by: Brian C. Lane <bcl@redhat.com>
2016-10-12 09:08:28 -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
Jakub Jelen
2477d53098 Fix broken sshd.inst boot option (#1378378)
Follow-up of moving to sshd-keygen.target in anaconda-sshd.service
(#1331753)

 * Do not remove  /etc/ssh/moduli
 * slogin  symlink is already removed
 * Do not remove  sshd-keygen
2016-09-23 09:33:00 +02:00
Radek Vykydal
34940e7a49 Don't log dracut initrd regeneration messages into /tmp/syslog (#1369439)
Related: rhbz#1369439

Keep it same as in RHEL 7.2. They increase the size of the /tmp/syslog file
from ~280K to ~1M, and can be obtained from journal if needed.
2016-09-22 14:50:07 +02:00
Radek Vykydal
3eca8a0425 Use imjournal for rsyslogd instead of sharing /dev/log with journal (#1369439)
Resolves: rhbz#1369439

Rsyslogd used to read messages from /dev/log together with systemd-journald
which resulted in NetworkManager messages not being passed to syslog due to a
race condition during starting NetworkManager and rsyslogd service. So use
imjournal rsyslog plugin that picks messages from journald instead of using the
/dev/log socket. Same as regular RHEL 7 system.
2016-09-22 14:49:24 +02:00
Brian C. Lane
492ab9e4a5 livemedia-creator: Check for packaging failures in the logs (#1374809)
anaconda-26.1 changed how package scriptlet failures are handled. They
are now fatal, and anaconda hangs after logging an Installation failure.

ERR packaging: Installation failed: PayloadInstallError('DNF error:
Non-fatal POSTIN scriptlet failure in rpm package mlocate',)

Catch this (the 'packaging: Installation failed' part) and terminate the
image creation.
2016-09-21 09:00:49 -07:00
Colin Walters
4f1f118cee templates: Enusre basic.target.wants dir exists for rngd
There's something racy here; in my Atomic Workstation CI/CD I'm seeing:

```
01:12:43   symlink /lib/systemd/system/rngd.service etc/systemd/system/basic.target.wants/rngd.service
01:12:43   FileNotFoundError: [Errno 2] No such file or directory: '/lib/systemd/system/rngd.service' -> '/var/tmp/lorax.7cgdtz1_/installtree/etc/systemd/system/basic.target.wants/rngd.service'
```

Rather than debug this right now, let's just make sure it exists,
like we do right above for `tmp.mount`.
2016-09-12 21:37:31 -04:00
Brian C. Lane
2948925c28 Automatic commit of package [lorax] release [25.15-1]. 2016-09-08 12:15:36 -07:00
Robert Marshall
9543a46dac Keep fsfreeze in install environment (#1315468)
The latest POWER platform allows a host machine to configure guests
running in a different endian mode. Guests configured in this way may
have their bootloader configuration file corrupted after installation if
the file was not fully written to disk. The host machine would read the
journal and try to finish writing the file in the wrong endian mode.

Issuing an fsfreeze and unfreeze gives more assurance that the
configuration file is properly written before a reboot; this patch adds
fsfreeze to the installer runtime environment.

Related: rhbz#1315468
2016-09-08 12:13:30 -07:00
Manjunath A Kumatagi
f4a1302358 Add ppc64le kernel path
(cherry picked from commit b76fba85ea)
2016-09-08 12:12:07 -07:00
Vratislav Podzimek
dafb3a95c6 Install storaged-iscsi to the runtime (#1347415)
Blivet now needs it to work with iSCSI (with the iSCSI support being optional in
Blivet).
2016-09-08 12:10:26 -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
37d36daa9c lorax: Add --rootfs-size (#1368743)
This controls how big the root filesystem is for the squashfs used in
the boot.iso, the default is 2GiB.

Note that larger rootfs sizes will require more memory and may cause the
build to fail.
2016-08-22 17:20:48 -07:00
Brian C. Lane
442d0a0140 Revert "Use size=10 by default"
This reverts commit e61223d486.

On systems with less RAM (eg. ARM with 4G) this size change causes the
build to get stuck.
2016-08-22 16:17:35 -07:00
Brian C. Lane
aa12874daf Automatic commit of package [lorax] release [25.13-1]. 2016-08-12 17:42:52 -07:00