Commit Graph

447 Commits

Author SHA1 Message Date
Radek Vykydal
b5d0b1fd79 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-08-23 14:50:16 +02:00
Brian C. Lane
6268aaff6e livemedia-creator: Install genericdvd.prm (#1269213)
share/live/s390.tmpl needs to install the file.

Related: rhbz#1269213
2016-08-01 14:24:44 -07:00
Brian C. Lane
6a8663c270 Keep fb_sys_fops module needed for ast support (#1272658)
Ends up the drm_kms_helper module depends on fb_sys_fops so keep that as well.

Resolves: rhbz#1272658
2016-07-18 14:57:40 -07:00
David Shea
b7f74cdb01 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.

(cherry picked from commit 89441cd675)

Resolves: rhbz#1347737
2016-06-23 09:45:04 -04:00
Brian C. Lane
abfbd76af2 Keep all of the kernel drivers/target/ modules (#1348381)
The ib_srpt, and ib_isert modules depend on these.

Resolves: rhbz#1348381
(cherry picked from commit 8bf144843a)
2016-06-22 15:33:12 -07:00
Brian C. Lane
4bdfa33958 Keep the pci utilities for use in kickstarts (#1344926)
Resolves: rhbz#1344926
(cherry picked from commit 1a60afc4ff)
2016-06-21 16:25:58 -07:00
Brian C. Lane
73b368de28 Create an empty selinux config file (#1332147)
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.

(cherry picked from commit d6584e1d77)

Resolves: rhbz#1332147
2016-05-03 10:57:10 -07:00
Brian C. Lane
e2285683c4 Use eurlatgr as the console font (#1265354)
Resolves: rhbz#1265354
2016-04-19 16:52:07 -07:00
Brian C. Lane
51eac47775 Remove Metacity override and theme (#1324890)
This will now be handled by Anaconda because it is also needed on the
installed system for Initial Setup.

Resolves: rhbz#1324890
2016-04-13 13:38:36 -07:00
Brian C. Lane
391f1a7b57 Copying same file shouldn't crash (#1269213)
When using the template install command copying the same file to itself
shouldn't crash. Just log the error and continue.

Also copy the s390 configuration files for use with livemedia-creator

Resolves: rhbz#1269213
(cherry picked from commit 701ab02619)
2016-04-06 17:02:41 -07:00
Colin Walters
cc374548e8 templates: Reinstate gpgme-pthread.so for ostree (#1311793)
See https://github.com/GNOME/ostree/pull/190

Without this the installer ISO generation fails.

Resolves: rhbz#1311793
(cherry picked from commit 6fcdac5c88)
2016-02-25 09:37:41 -08:00
Brian C. Lane
fec7b8d7b8 Add rng-tools and start rngd.service by default (#1258516)
This will help improve the entropy situation with non-x86 hardware. rngd
will add entropy from hardware rng sources.

Resolves: rhbz#1258516
(cherry picked from commit 690feba381)
2016-02-25 09:09:13 -08:00
Brian C. Lane
0252c5a7f1 Include grub2-efi-modules on the boot.iso (#1277227)
Some users need to be able to run grub2-install from %pre

Resolves: rhbz#1277227
2016-02-24 07:48:06 -08:00
Brian C. Lane
a17cecdee2 Keep modules needed for ast video driver support (#1272658)
The ast module depends on:
drm,drm_kms_helper,ttm,syscopyarea,i2c-core,sysfillrect,sysimgblt,i2c-algo-bit

This retains the syscopyarea, sysfillrect, and sysimgblt modules.

Resolves: rhbz#1272658
2016-02-24 07:45:45 -08:00
Radek Vykydal
420d006ab6 configure NetworkManager to loglevel=DEBUG (#1274647)
Resolves: rhbz#1274647
2016-02-19 16:47:39 -08:00
Brian C. Lane
cc715caaf9 paste is needed by os-prober (#1275105)
Resolves: rhbz#1275105
(cherry picked from commit 4312ddf1a6)
2016-02-19 16:31:06 -08:00
Brian C. Lane
b8bcb063cc Keep libthread so that gdb will work correctly (#1269055)
Resolves: rhbz#1269055
(cherry picked from commit 0b8b74edda)
2016-02-19 16:14:48 -08:00
Dan Horák
7949b7dc52 Add product.img support for s390 templates (#1272359)
(cherry picked from commit a2c2a4be28)

Resolves: rhbz#1272359
2016-02-19 13:53:18 -08:00
Brian C. Lane
94d4bc7c4a Fix metacity theme path (#1231856)
${configdir} already includes the /common/ path component.

Related: rhbz#1231856
2015-08-31 10:42:17 -07:00
David Shea
41715eb194 Run spice-vdagentd without systemd-logind integration
The system-wide spice guest agent, spice-vdagentd, normally uses
systemd-logind to determine which of the per-session spice-vdagent
instances it should be communicating with. On the non-live media, the X
session isn't registered with systemd-logind, so instead start
spice-vdagentd with -X to disable the systemd-logind integration and
serve instead to a single spice-vdagent.

(cherry picked from commit 96ecdd4e6e)

Related: rhbz#1169991
2015-08-28 09:46:18 -04:00
David Shea
d93ace517e Replace the metacity theme file.
This replaces the Adwaita metacity-theme-2.xml file with a version that
sets has_title=False and removes the title borders for maximized
windows. This allows anaconda to run as a maximized window instead of a
fullscreen window while still running without a titlebar.

Related: rhbz#1231856
2015-08-26 14:53:47 -04:00
Radek Vykydal
c124d8277d Add lldptool (#1085325)
Related: rhbz#1085325
2015-08-11 13:40:58 +02:00
Jiri Konecny
b2f6a9f129 Fix chronyd not working in the installation (#1085013)
Service chronyd not working on rhel7 now because it's missing command
flock.

Related: rhbz#1085013
2015-08-05 15:35:27 +02:00
Brian C. Lane
b51ff60875 Keep hyperv_fb driver in the image (#834791)
Hyper-V needs this.

Resolves: rhbz#834791
2015-06-29 11:01:45 -07:00
Radek Vykydal
96371548d3 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-06-26 15:00:27 +02:00
Colin Walters
50f9f48cc1 Add ability for external templates to graft content into boot.iso (#1202278)
I originally added --add-template to support doing something similar
to pungi, which injects content into the system to be used by default.
However, this causes the content to be part of the squashfs, which
means PXE installations have to download significantly more data that
they may not need (if they actually want to pull the tree data from
the network, which is not an unusual case).

What I actually need is to be able to modify *both* the runtime image
and the arch-specific content.  For the runtime, I need to change
/usr/share/anaconda/interactive-defaults.ks to point to the new
content.  (Although, potentially we could patch Anaconda itself to
auto-detect an ostree repository configured in disk image, similar to
what it does for yum repositories)

For the arch-specfic image, I want to drop my content into the ISO
root.

So this patch adds --add-arch-template and --add-arch-template-var
in order to do the latter, while preserving the --add-template
to affect the runtime image.

Further, the templates will automatically graft in a directory named
"iso-graft/" from the working directory (if it exists).

(I suggest that external templates create a subdirectory named
 "content" to avoid clashes with any future lorax work)

Thus, this will be used by the Atomic Host lorax templates to inject
content/repo, but could be used by e.g. pungi to add content/rpms as
well.

I tried to avoid code deduplication by creating a new template for the
product.img bits and this, but that broke because the parent boot.iso
code needs access to the `${imggraft}` variable.  I think a real fix
here would involve turning the product.img, content/, *and* boot.iso
into a new template.

Resolves: rhbz#1202278
2015-06-25 09:18:25 +02:00
Brian C. Lane
b3dabdd2e0 Update templates to use installimg for product and updates
With these templates if a package has installed files in
/usr/share/lorax/product or /usr/share/lorax/updates/ they will be used
to create product.img and/or updates.img which will be included in the
images/ directory of the iso and of the final output tree.

These can be used to customize the installation environment or provide
updates. See README.product for current documentation.

Related: rhbz#1202278
2015-06-25 09:18:24 +02:00
Jiri Konecny
b7ce8b4b0f Merge pull request #26 from jkonecny12/rhel7-ntp-add
Add ntp configuration file to installation for the main patch part in anaconda.
2015-06-22 15:02:11 +02:00
Jiri Konecny
13ea2c5253 Add ntp configuration file to installation
Add package ntp and remove it except ntp.conf file.
This is required for the main patch part in the anaconda.

Related: rhbz#1085013
2015-06-22 13:33:57 +02:00
Vratislav Podzimek
80fcdb4f91 Install the oscap-anaconda-addon (#1190685)
And keep in the rpm2cpio utility it requires.

Signed-off-by: Vratislav Podzimek <vpodzime@redhat.com>
2015-06-17 09:00:29 -07:00
Brian C. Lane
a37a59b3eb Add removekmod template command (#1230356)
removekmod GLOB [GLOB...] --allbut KEEPGLOB [KEEPGLOB...]

This can be used to remove kernel modules from under
/lib/modules/*/kernel/ while keeping specific items. This should be
easier than constructing find arguments to select the right things to
save.

(cherry picked from commit 11c9e0e8ee)

Resolves: rhbz#1230356
2015-06-15 15:04:06 -07:00
Brian C. Lane
b79ad68a50 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-12 16:01:07 -07:00
Brian C. Lane
115d6d4c7d Add bridge-utils (#1188812)
This allows dracut's bridge commands to be used.

Resolves: rhbz#1188812
(cherry picked from commit 918c2c0cd1)
2015-06-12 15:07:32 -07:00
Brian C. Lane
9b57050fc6 Keep the zram kernel module
Needed by the zram.service

Related: rhbz#1196721
2015-06-05 08:34:44 -07:00
Vratislav Podzimek
bf8d25fc91 Keep seq and getconf utilities in the image
They are needed by the zram.service.

(cherry picked from commit 668fe3aa4b)

Related: rhbz#1996721
2015-06-05 08:34:35 -07:00
Brian C. Lane
680037372e Don't remove usr/lib/rpm/platform/ (#1116450)
This appears to cause the rpm-plugin-selinux to fail and some of the
selinux lebels aren't applied correctly.

(cherry picked from commit e1741763a9)

Related: rhbz#1196721
2015-06-05 08:34:18 -07:00
David Lehman
155750a4c8 Include /sbin/ldconfig from glibc.
python-pyudev needs it.

(cherry picked from commit f035057ef0)

Related: rhbz#1202877
2015-06-05 08:33:09 -07:00
Radek Vykydal
28801d8d42 Add --make-pxe-live and --make-ostree-live (for Atomic) targets.
Resolves: rhbz#1184021

--make-pxe-live target generate live squashfs and initrd for pxe boot.
Also generates pxe config template.

--make-ostree-live is used for installations of Atomic Host. Additionally to
--make-pxe-live it ensures using deployment root instead of physical root of
installed disk image where needed. Atomic installation needs to be virt
installation with /boot on separate partition (the only way supported by
Anaconda currently). Content of boot partition is added to live root fs so that
ostree can find deployment by boot configuration.
2015-04-13 10:05:17 +02:00
Brian C. Lane
a0f4a50291 Remove imggraft from aarch64.tmpl (#1174475)
rhel7 branch doesn't use imggraft.

Related: rhbz#1174475
2015-01-16 10:46:58 -08:00
Peter Jones
db5e36b2b6 Use gcdaa64.efi and make boot.iso on aarch64 (#1174475)
Add iso creation and switch to using gcdaa64.efi instead of grubaa64.efi

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Brian C. Lane <bcl@redhat.com>

(cherry picked from commit 8f582846af)

Resolves: rhbz#1174475
2015-01-13 08:54:00 -08:00
Laszlo Ersek
fa2655f7d4 runtime-cleanup.tmpl: keep virtio-rng (#1179000)
Virtual machines easily get starved for randomness, and Anaconda insists
on sufficient amounts of entropy when the user requests LUKS disk
encryption. As a result, such installations can hang until Anaconda gives
up (after 10 minutes) and makes do with whatever entropy is available.

The virtualization host can feed randomness to the guest, unblocking the
installation. However, the guest can only consume that randomness through
the virtio-rng module. Let's not remove that module.

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Brian C. Lane <bcl@redhat.com>

Resolves: rhbz#1179000
(cherry picked from commit bd501cccef)
2015-01-07 10:31:46 -08:00
Brian C. Lane
e1655d7c3a aarch64 no longer needs explicit console setting (#1170413)
As of kernel-3.18.0-0.54 aarch64 can sort out what to use for the
console on its own, so drop the console= from the aarch64 grub2-efi.cfg
template.

Resolves: rhbz#1170413

(cherry picked from commit 519771a1df)
2014-12-19 10:16:23 -08:00
Brian C. Lane
6db00b977e Drop 32 bit for loop from ppc64 grub2 config (#1169878)
Older versions of petitboot don't understand the for loop and won't
boot.  We also don't shipt 32 bit media anymore so there is no reason
for this to remain.

(cherry picked from commit 5909574a44)
2014-12-02 12:23:38 -08:00
David Lehman
c79b291923 Don't include the stock lvm.conf.
We started including it as an unintended side-effect of commit 9ca487f8.

lvm doesn't like it when there are multiple 'global' sections in lvm.conf,
and we add one right at the end of that block. We expect ours to be the
file's only content.

(cherry picked from commit 4a7552d4be)

Related: rhbz#1149992
2014-10-31 13:22:42 -05:00
Brian C. Lane
f259ff0e29 Use all upper case for shim in live/efi.tmpl
mkefiboot now expects all upper case for BOOT*.EFI

Related: rhbz#1100048

Conflicts:
	share/live/efi.tmpl
2014-10-15 11:44:09 -04:00
Martin Kolman
d646ddb5d6 Revert "Don't remove /usr/share/doc/anaconda." (#1072033)
The help content path has been changed to /usr/share/anaconda/help,
so this Lorax change is no longer needed.

This reverts commit 8bd3d8d232.

Related: rhbz#1072033
2014-10-07 18:44:36 +02:00
Martin Kolman
1f56b27082 Libgailutil is required yelp, don't remove it (#1072033)
Related: rhbz#1072033
2014-10-06 18:13:08 +02:00
Peter Jones
26cfe3ebc8 Make sure shim is actually in the package list on aarch64 as well.
Otherwise all the other stuff gets to be just extra error messages and
failures.

Signed-off-by: Peter Jones <pjones@redhat.com>
2014-10-03 16:45:45 -04:00
Peter Jones
771ff40c4e Use shim on aarch64.
We have shim and grub working together on aarch64 now, so we may as well
use them.

(this also makes the case of boot${arch}.efi not mixed-case, which
should guarantee it's in FAT rather than VFAT...)

Related: rhbz#1100048

Signed-off-by: Peter Jones <pjones@redhat.com>
2014-10-02 15:58:04 -07:00
Vratislav Podzimek
b343637745 Keep the /etc/lvm/profiles directory in the image
Profile definitions are needed e.g. for creation of thin pools with specific
profile.

Related: rhbz#869456
2014-10-02 15:44:59 +02:00