Commit Graph

507 Commits

Author SHA1 Message Date
David Shea
28fb511790 Add glibc-all-langpacks (#1312607)
glibc recently split all of its locale data into subpackages, so if we
install no langpacks we get no locales. Explicitly install all of the
langpacks.
2016-02-29 09:25:44 -05:00
Colin Walters
6fcdac5c88 templates: Reinstate gpgme-pthread.so for ostree
See https://github.com/GNOME/ostree/pull/190

Without this the installer ISO generation fails.
2016-02-24 10:27:54 -08:00
Brian C. Lane
83590af2be 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:50:23 -08:00
Brian C. Lane
2b66adb5ad 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:44:44 -08:00
Brian C. Lane
97d31cb8fe Put the NM loglevel config in the right place. 2016-02-19 17:34:14 -08:00
Radek Vykydal
51aa86e425 configure NetworkManager to loglevel=DEBUG (#1274647)
Resolves: rhbz#1274647
2016-02-19 16:52:36 -08:00
Brian C. Lane
690feba381 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
2016-02-12 10:24:38 -08:00
Brian C. Lane
76bce910e0 Move templates to /usr/share/lorax/templates.d/99-generic 2016-02-10 17:14:11 -08:00
Dennis Gilmore
0be4096a94 Make arm .treeinfo match reality
since we no longer make the wrappend kernel and initrd for arm we need
to not put them in the .treeinfo file

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2016-01-12 08:13:47 -08:00
Brian C. Lane
ffe77cdad7 Also remove uboot from live arm.tmpl 2015-12-10 11:51:24 -08:00
Dennis Gilmore
b81414b8a7 no longer make u-boot wrapped kernels
We have been defaulting to using raw kernels and initrds for awhile
now. Lets not make the legacy version anymore. Anyone that needs one
should be able to make their own with the correct variables.

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-12-10 11:50:56 -08:00
Jiri Konecny
ceca1c6e32 Fix chronyd not working in the installation (#1288905)
Service chronyd not working on rhel7 now because it's missing command
flock.

Related: rhbz#1085013
(cherry picked from commit b2f6a9f129)
2015-12-07 15:04:41 -08:00
Brian C. Lane
4312ddf1a6 paste is needed by os-prober (#1275105)
Resolves: rhbz#1275105
2015-11-09 17:04:04 -08:00
David Shea
bb2dc62521 Enable gtk inspector.
Gtk turned off the inspector keybindings by default, because they were
interfering with applications that use a lot of complicated keyboard
shortcuts. This is not a concern for anaconda, and the inspector is
pretty handy, so turn it back on.
2015-11-02 14:35:50 -05:00
Brian C. Lane
0b8b74edda Keep libthread so that gdb will work correctly (#1269055)
Related: rhbz#1269055
2015-10-08 16:43:39 -07:00
David Shea
e3d8b01afa Do not let systemd-tmpfiles set up /etc on boot
The etc portion of systemd-tmpfiles creates a broken /etc/resolv.conf,
which breaks networking, and the rest of the stuff in the there is
already installed to the stage2.
2015-10-06 15:00:26 -07:00
Jiri Konecny
094ad38310 Add findmnt command
This is nice way how to show existing mounts.
2015-10-05 15:00:15 -07:00
Dan Horák
15d44ce562 rsa1 keys are not supported any more by our openssh 2015-10-01 13:30:37 -07:00
David Shea
fb19d7f509 Include gdb in the boot.iso
This way anaconda can generate a core file from itself when it crashes.
2015-09-24 16:52:20 -04:00
Brian C. Lane
dc663cd9bf Add a font that supports Urdu characters (#1004717) 2015-09-08 11:19:17 -07:00
Will Woods
52171ecf23 drop fedup-dracut and friends
This package will not exist soon. Don't bother trying to install it.
2015-08-31 16:24:39 -07:00
Will Woods
a3e1a275ff 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.
2015-08-31 16:24:39 -07:00
Chris Lumens
7c0f9cedc1 No longer offer a rescue boot menu option on liveinst (#1256061). 2015-08-27 13:35:26 -04:00
David Shea
88869fff66 Add enough of shadow-utils to create new user accounts.
Yes user accounts, some account management
2015-08-27 10:12:58 -04:00
Radek Vykydal
8ab53eb3b1 Add lldptool (#1085325)
Related: rhbz#1085325
(cherry picked from commit c124d8277d)
2015-08-12 09:36:28 -07:00
Peter Robinson
dc9bae9b68 some of the PowerPC utilities (powerpc-utils and fbset) need perl too
(cherry picked from commit 4794ba6a8e)
2015-08-07 16:52:00 -07:00
Brian C. Lane
57b7516857 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.
2015-08-07 16:47:51 -07: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
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
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
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
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
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
Brian C. Lane
eb22c69f29 Additional python3 changes
Add a 'lower' filter to the templates to replace string.lower which no
longer exists. Fix udev_escape, the strings are already unicode, and
drop --chdir from runcmd. It wasn't ever used, and passing cwd to the
new runcmd isn't supported.
2015-05-15 17:11:20 -07:00
Brian C. Lane
d88cb00943 Make sure openssh-clients is installed (#1219398)
It used to be pulled in by a dependency, which went away. It should be
explicitly installed.
2015-05-07 16:49:18 -07:00
Dan Horák
a2c2a4be28 Add product.img support for s390 templates 2015-04-29 11:30:59 -07:00
Brian C. Lane
a810cad542 Include cryptsetup in the image (#1208214)
blivet dropped its requirement on cryptsetup, but fedup needs it in the
upgrade.img and it is useful for rescue mode so add it back.
2015-04-02 13:38:51 -07:00
Brian C. Lane
f130efdbc2 Include ld.so.conf (#1204031)
ldconfig runs at boot time, and some libraries apparently aren't setup
properly, so the config is needed to point to their directories.
2015-03-20 17:27:33 -07:00
Brian C. Lane
3981ff5b79 Revert "Turn off ldconfig"
This reverts commit c4c90e0b5e.

Appears to be causing rhbz#1201897
2015-03-20 17:26:32 -07:00
Colin Walters
67217f5642 Add ability for external templates to graft content into boot.iso
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.
2015-03-19 16:48:16 -04:00
Brian C. Lane
90dfe0cf81 Keep logitech hid drivers (#1199770)
Some logitech mice need a driver.
2015-03-17 16:45:18 -07:00
Stephen Gallagher
9ed9268cfa Don't erase /usr/lib/os.release.d
This directory now contains the standard and productized
/etc/os-release feeder files.
2015-03-16 13:12:03 -07:00
Brian C. Lane
c4c90e0b5e Turn off ldconfig
We don't need to update ldconfig when running the boot.iso, disable it
to speed up the boot.
2015-03-06 11:26:50 -08:00
Brian C. Lane
11c9e0e8ee Add removekmod template command
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.
2015-03-06 11:26:14 -08:00
Brian C. Lane
c548084ccf Move stage2 to images/install.img (#815275)
Use the same stage2 location for all arches, put it in images with all
the other images. This only effects boot.iso, live images still use
LiveOS/squashfs.img because that's where dracut's 90dmsquashfs-live
module expects to find it.

For boot.iso anaconda-dracut handles finding stage2, looking at
images/install.img and LiveOS/squashfs.img
2015-03-03 09:01:21 -08:00
David Shea
df411094ac Explicitly install notification-daemon
This prevents dnf from making some unfortunate choices when depsolving
libnotify.
2015-02-18 17:07:29 -05:00