Commit Graph

1314 Commits

Author SHA1 Message Date
Brian C. Lane
ba531e97a0 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:52 -07:00
Brian C. Lane
372ba1ed16 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:08:49 -07:00
Brian C. Lane
631daa0178 Automatic commit of package [lorax] release [22.14-1]. 2016-03-29 17:42:39 -07:00
Will Woods
160be350fb 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 d9c23d1bce)
2016-03-29 17:14:18 -07:00
Brian C. Lane
0274b91a14 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 eb59bc4fab)
2016-03-29 17:14:15 -07:00
Brian C. Lane
863039555d 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 07dca74c06)
2016-03-29 17:14:12 -07:00
Brian C. Lane
620849968f Automatic commit of package [lorax] release [22.13-1]. 2015-10-30 11:51:41 -07:00
Will Woods
85d3652af5 drop fedup-dracut and friends
This package will not exist soon. Don't bother trying to install it.

(cherry picked from commit 52171ecf23)
2015-10-30 11:49:13 -07:00
Brian C. Lane
4a4a62ce1b Automatic commit of package [lorax] release [22.12-1]. 2015-05-27 17:49:58 -07:00
Brian C. Lane
8e2556474d Use imgutils.copytree instead of shutil (#1221878)
Sometimes the directory is already there, we just want to copy things
into it, so use our copytree.
2015-05-26 13:50:33 -07:00
Brian C. Lane
8619ec59cc Automatic commit of package [lorax] release [22.11-1]. 2015-05-07 16:48:28 -07:00
Brian C. Lane
240f688fb3 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 08:53:08 -07:00
Brian C. Lane
bf620f9662 Automatic commit of package [lorax] release [22.10-1]. 2015-04-29 16:53:39 -07:00
Dan Horák
0f65bc4a31 Add product.img support for s390 templates
(cherry picked from commit a2c2a4be28)
2015-04-29 11:41:03 -07:00
Brian C. Lane
e76a4ea15c Automatic commit of package [lorax] release [22.9-1]. 2015-04-02 13:31:59 -07:00
Brian C. Lane
92808bcbe6 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 11:52:00 -07:00
Brian C. Lane
c45255b666 Automatic commit of package [lorax] release [22.8-1]. 2015-03-27 17:32:16 -07:00
Brian C. Lane
229759f411 livemedia-creator: Clean up resultdir handling
(cherry picked from commit 3148a2b215)
2015-03-24 14:22:44 -07:00
Colin Walters
5155ff65ac 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.

Conflicts:
	src/sbin/lorax
2015-03-22 08:48:07 -04:00
Brian C. Lane
ebf107a28e Automatic commit of package [lorax] release [22.7-1]. 2015-03-20 18:12:53 -07:00
Brian C. Lane
0f79920957 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.

(cherry picked from commit f130efdbc2)
2015-03-20 18:12:07 -07:00
Brian C. Lane
a0e35dbbe0 Keep logitech hid drivers (#1199770)
Some logitech mice need a driver.
2015-03-20 09:16:25 -07:00
Brian C. Lane
68656592e2 Automatic commit of package [lorax] release [22.6-1]. 2015-03-16 17:05:00 -07:00
Stephen Gallagher
c0b1063397 Don't erase /usr/lib/os.release.d
This directory now contains the standard and productized
/etc/os-release feeder files.
2015-03-16 15:34:14 -04:00
Brian C. Lane
a612c1ebd0 Fix Source0 for use with github 2015-02-12 17:06:42 -08:00
Brian C. Lane
281218b258 Automatic commit of package [lorax] release [22.5-1]. 2015-02-12 16:42:03 -08:00
Brian C. Lane
c97f3fb6e8 os-release moved to /usr/lib (#1191713)
Don't remove it or the symlink to it.
2015-02-11 11:46:36 -08:00
Brian C. Lane
3f77b80d6c Use /usr/bin/python2 in scripts
New packaging guidelines:

https://fedoraproject.org/wiki/Packaging:Python#Multiple_Python_Runtimes
https://fedorahosted.org/fpc/ticket/327#comment:9
2015-02-09 08:48:22 -08:00
Brian C. Lane
918c2c0cd1 Add bridge-utils (#1188812)
This allows dracut's bridge commands to be used.
2015-02-09 08:39:55 -08:00
Brian C. Lane
6c9a03bd0b Automatic commit of package [lorax] release [22.4-1]. 2015-02-06 17:57:58 -08:00
Brian C. Lane
30c21a1b97 livemedia-creator: Add --timeout option to cancel install after X minutes
Installations sometimes get stuck. This adds the option to cancel it
after some number of minutes have passed.
2015-02-02 12:44:32 -08:00
Radek Vykydal
c1d38a9c48 network: add support for bridge (#1075195)
Related: rhbz#1075195
2015-01-30 15:09:13 +01:00
Brian C. Lane
7bf916a2ad Move url and source to github in specfile 2015-01-29 11:20:32 -08:00
Brian C. Lane
eb9b778b61 Use %license in lorax.spec
https://fedoraproject.org/wiki/Packaging:LicensingGuidelines#License_Text
2015-01-28 09:29:35 -08:00
Brian C. Lane
f825ef4919 Automatic commit of package [lorax] release [22.3-1]. 2015-01-23 17:38:08 -08:00
Brian C. Lane
3d01cd9129 livemedia-creator: Add documentation on using mock and livemedia-creator
As of anaconda version 22.15 you can run livemedia-creator and anaconda
inside a mock chroot to create iso and filesystem images.
2015-01-20 11:25:40 -08:00
Brian C. Lane
c231c2a63f livemedia-creator: Bump default releasever to 22 2015-01-20 10:59:18 -08:00
Marko Myllynen
eb5b886cea Change console font to eurlatgr
See https://fedoraproject.org/wiki/Changes/NewDefaultConsoleFont

Signed-off-by: Brian C. Lane <bcl@redhat.com>
2015-01-19 10:10:18 -08:00
Brian C. Lane
ff8af1c8f4 Automatic commit of package [lorax] release [22.2-1]. 2015-01-16 16:54:18 -08:00
Radek Vykydal
5aa6bb5f0c Add --live-rootfs-keep-size option 2015-01-16 10:01:41 +01:00
Radek Vykydal
d16bdcaf6d Add --live-rootfs-size option. 2015-01-16 10:01:41 +01:00
Brian C. Lane
a55fe2259a livemedia-creator: Update example kickstarts
We don't need biosboot partitions, and the urls should point to rawhide.
On minimal installs dracut needs to have tar and dracut-network
explicitly included.
2015-01-15 09:39:15 -08:00
Brian C. Lane
879d831ffc livemedia-creator: Turn on debug output for dracut
Some dracut failures are hard to detect without debug enabled, so just
turn it on all the time.
2015-01-15 09:39:15 -08:00
Brian C. Lane
563f4386e8 livemedia-creator: Copy all the logs from /tmp/
It wasn't copying new logs from dnf, kickstart script logs or
tracebacks.
2015-01-15 09:39:15 -08:00
Brian C. Lane
8641caca9e livemedia-creator: Create parent dirs for logfile path
The directory where the --logfile is located is also used for other log
files and for the anaconda logs when using --no-virt. Create the parent
directories if they don't exist.
2015-01-15 09:39:15 -08:00
David Shea
e9c1b5f200 Remove fedora-icon-theme
This package no longer contains anything that we actually use. Removing
it also removes gnome-themes, which we needed for the metacity theme but
which is now handled by anaconda, and gtk2-engines.
2015-01-15 10:36:16 -05:00
David Shea
22017af48a Remove fedora-gnome-theme
fedora-gnome-theme provides gnome-themes-standard, from which we remove
everything except a metacity theme file that metacity doesn't actually
use. Remove fedora-gnome-theme entirely and manually add the font
dependency that it was pulling in.
2015-01-15 10:36:16 -05:00
David Shea
d746ea7323 Remove the GSettings overrides for metacity
Let anaconda figure this out on its own.
2015-01-15 10:36:16 -05:00
David Shea
ba489f71ff Remove gnome-python2-gconf
There's nothing in here we can use and we already remove everything
that's in it, and having it pulls in gtk2 dependencies that we no longer
need.
2015-01-15 10:35:32 -05:00
Radek Vykydal
14494461a9 --make-pxe-target: change permissions of regenerated initramrfs to 0644 2015-01-15 11:03:15 +01:00