Commit Graph

919 Commits

Author SHA1 Message Date
Brian C. Lane 5cd87b9fe3 Automatic commit of package [lorax] release [18.13-1]. 2012-08-15 11:24:38 -07:00
d.marlin 5e677160cd Add a command line option to override the ARM platform.
Passed on to anaconda to make ARM images where the compose hardware
does not match the target hardware.

Signed-off-by: Brian C. Lane <bcl@redhat.com>
2012-08-15 11:09:50 -07:00
Martin Gracik d84dfcc561 Don't remove krb5-libs (#848227)
Anaconda needs it.
2012-08-15 09:52:40 +02:00
Peter Jones 72c1aa9cd3 Add grub2-efi support and Secure Boot shim support.
This adds grub2-efi support in general as well as using the Secure Boot
shim loader on uefi media.
2012-08-13 11:03:40 -04:00
Peter Jones 0f2c6ed007 Fix GPT code to allocate space for /2/ tables.
17408 is the size of the table being made, but there's one at the
beginning and one at the end.
2012-08-13 11:03:40 -04:00
d.marlin 0f02b5c920 Add platforms to the treeinfo for Beaker support. 2012-08-13 15:39:53 +02:00
Brian C. Lane 700d5007a3 add logging to lorax 2012-07-30 09:22:10 -07:00
Brian C. Lane 505d5bf164 move live templates into their own subdir of share
live media isn't exactly the same as the Anaconda install media. Right
now this amounts to needing a root= cmdline argument but in the future
there may be other differences.

This also reverts 5437557846 on the new copies of the templates.
2012-07-30 09:22:10 -07:00
Brian C. Lane 134eec24d5 clean up command execution
Switch to using execWith* so that the command and its output can be
logged. To capture the output setup a logger named "program"

livemedia-creator captures all of this into program.log
2012-07-30 09:22:10 -07:00
Brian C. Lane 994ff776c7 livemedia-creator: cleanup logging a bit 2012-07-30 09:22:10 -07:00
Martin Gracik 07bf4e3c08 Automatic commit of package [lorax] release [18.12-1]. 2012-07-25 12:44:14 +02:00
d.marlin f170b6dc49 Add 'mvebu' to list of recognized ARM kernels.
Signed-off-by: David A. Marlin <dmarlin@redhat.com>
2012-07-25 12:43:23 +02:00
Martin Gracik 1000e98555 Cleanup boot menus (#809663) 2012-07-23 09:52:44 +02:00
Martin Gracik 84a4002870 Don't remove chvt from the install image (#838554) 2012-07-23 09:52:44 +02:00
Martin Gracik 8c8a186309 Add llvm-libs (#826351)
vmware driver needs this when installing in virtual machines.
2012-07-23 09:52:44 +02:00
Brian C. Lane 38a5df0ee8 Automatic commit of package [lorax] release [18.11-1]. 2012-07-20 17:52:53 -07:00
Brian C. Lane de3d3e17b7 livemedia-creator: add some error checking
- Add a check to livemedia-creator for /usr/bin/virt-install (#841566)
- Suggest the correct package for livemedia-creator's libvirt (#841552)
- Add to list of packages needed to build a livemedia-creator iso (#841594)
2012-07-20 17:50:00 -07:00
Martin Gracik 08efe1217b Automatic commit of package [lorax] release [18.10-1]. 2012-07-10 13:03:12 +02:00
Will Woods 5437557846 Don't set a root= argument (#837208)
Using root= overrides the anaconda magic code for finding product.img
and updates.img. Anaconda can find the CDROM itself without needing
root=, though, so we can omit it safely for boot.iso.
2012-07-10 09:58:48 +02:00
Martin Gracik 4715134502 Don't remove the id tool (#836493) 2012-07-10 09:57:57 +02:00
Martin Gracik b75422d94e Xauth is in bin (#837317) 2012-07-10 09:57:57 +02:00
Will Woods 90ab7bfcfd Actually add plymouth to the initramfs
One more piece to get plymouth in place - we have to stop omitting it
from the initramfs so it's available at boot.
2012-07-06 00:19:48 -04:00
Will Woods 8e71bb045a don't use --prefix with dracut anymore
systemd in F18 doesn't work with --prefix anymore, so drop it.

(patch from haraldh - thanks Harald!)
2012-07-06 00:19:48 -04:00
Chris Lumens b7fe01db89 newui requires checkisomd5 to run media check. 2012-07-02 11:08:39 -04:00
Martin Gracik 3221fe7446 Automatic commit of package [lorax] release [18.9-1]. 2012-06-21 16:26:22 +02:00
Martin Gracik 30cb18a9ec Add initial support for ARM based systems (dmarlin) 2012-06-21 09:33:53 +02:00
Will Woods 6d1e637731 Add plymouth to the installer runtime
Now we can have bootsplash if we want. Whee!
2012-06-19 20:00:00 -04:00
Will Woods 3a75b2e07d add 'systemctl' command and use it in postinstall
The 'systemctl' command can be used to enable, disable, or mask systemd
units inside the runtime being modified. Modify runtime-postinstall.tmpl
to use the 'systemctl' command.

We also no longer remove quota*.service or kexec*.service, since
these aren't enabled by default. And systemd-remount-api-vfs.service
should work correctly now, so we can leave it alone as well.
2012-06-19 20:00:00 -04:00
Will Woods 8d49fcdc24 add dracut-shutdown.service (and its dependencies)
We need the initramfs around to reboot properly. If it's packed up in
/boot we need this service to unpack it. If it's not there, the service
does nothing, so this patch won't hurt anything.

Also add pigz, which speeds up compression nicely (for use in
anaconda-cleanup-initramfs.service).
2012-06-19 20:00:00 -04:00
Will Woods f36f775146 leave pregenerated locale files (save RAM)
Now that the runtime contents remain compressed and aren't always stored
in RAM, it generally takes less RAM to keep these around than to run
'localedef' in anaconda.

This switches us back to the old pre-lorax method for setting up the
locale archive - see e.g. anaconda commit ea71816d
2012-06-19 20:00:00 -04:00
Will Woods 7150cad31b runtime-cleanup: log broken symlinks being removed
Print out a message about each broken symlink being removed. Also, no
need to bother looking in /lib since it's just a symlink to /usr/lib.
2012-06-19 19:59:59 -04:00
Will Woods 3fda56b499 Add some documentation to LoraxTemplateRunner 2012-06-19 19:59:59 -04:00
Will Woods daacb4465d fix '-runcmd' and improve logging
The '-cmd' functionality depends on the individual lorax template
commands raising errors, so they shouldn't do sys.exit().

Also, capture stderr along with stdout, and put both in the log.
2012-06-19 19:59:59 -04:00
Will Woods 6080ff3b2a mkefiboot: add --debug
You can use the --debug flag to get debugging output from mkefiboot and
pylorax.imgutils. Helpful!
2012-06-19 19:59:59 -04:00
Will Woods 1c2c8ec4a8 pylorax.imgutils: add retry loop and "lazy" to umount()
There's something strange going on where unmounting a hfsplus volume
immediately after mounting it will fail with EBUSY.

This makes the umount fail, which makes the rmdir fail, which causes a
traceback, which breaks mkefiboot --apple.

It works fine if you wait a second and retry.. so do that.

Also, add the "lazy" argument so you can do lazy unmounts if you like.
2012-06-19 19:59:59 -04:00
Will Woods 2aae30e691 pylorax.imgutils: add debug logging
Add some useful debug logging info to various functions in
pylorax.imgutils.
2012-06-19 19:59:59 -04:00
Will Woods 329432b58e pylorax: set up logging as recommended by logging module
Generally it's not a good idea for python libraries to set up loggers in
the body of the library.

Set up a NullHandler by default (as the logging module suggests), and
add a function to do the current logging setup during run().
2012-06-19 19:59:59 -04:00
Will Woods 00272dec94 remove dmidecode
current anaconda-dracut doesn't need this; drop it from the runtime.
2012-06-19 19:59:59 -04:00
Will Woods e16e466a77 clean up net-tools properly
The 'removefrom net-tools' lines were trying to delete a bunch of things
that don't exist anymore, or have changed paths. Fix 'em up.
2012-06-19 19:59:59 -04:00
Will Woods 46b405d40a runtime-cleanup: correctly clean up kbd
The 'removefrom kbd' line wasn't deleting anything because it was
looking in the wrong place. It was also kind of wordy.

This version should keep the needed binaries and remove the stuff we
don't need, as intended.
2012-06-19 19:59:59 -04:00
Will Woods a6d3b9355b runtime-cleanup: correctly clean up iproute
iproute's binaries moved to /usr/sbin, so they were *all* getting
removed by the '/usr/*' glob. iscsi's NetworkManager dispatcher script
uses 'ip' so this might be needed for proper iscsi support; at the very
least it quiets some error messages from NM. It's also pretty likely
people's kickstart scripts use 'ip' utility, so we'd better make sure
it's still available.
2012-06-19 19:59:59 -04:00
Will Woods 886e0c1557 runtime-cleanup: drop a bunch of do-nothing removals
Remove a bunch of useless 'removefrom' lines that did nothing but cause
"no files to remove!" messages in lorax logs.

- ConsoleKit isn't in the anaconda runtime
- update-gtk-immodules isn't in gtk3
- there's nothing in /usr/share/selinux in selinux-policy-targeted
- zenity doesn't have a /usr/share/omf directory
- libpng moved to libpng15.*; actually removing it breaks the GUI
- pcmciautils' binaries are in /sbin, not /usr/sbin. They're only 7kb,
  so let's just keep 'em.

This should have *no effect* on the contents of the runtime images.
2012-06-19 19:59:59 -04:00
Will Woods 68f97a3cfd Create missing /etc/fstab
Some things (e.g. systemd-remount-api-vfs) fail if /etc/fstab is
missing, but work fine if it's empty. So create it.
2012-06-19 19:59:20 -04:00
Will Woods 24a6430098 Fix systemd unit cleanup in runtime-postinstall
A lot of the systemd unit files got moved around due to UsrMove, so
these lines weren't removing the services as expected.

Fix the paths and they all work. This eliminates the "FAILED"
message from systemd-remount-api-vfs.service and plymouth-start.service.

Oh - and the ConsoleKit removal got dropped 'cuz ConsoleKit isn't in the
installer images anymore.
2012-06-17 15:34:20 -04:00
Martin Gracik ebbd13c93c Disable Alt+Tab in metacity 2012-06-14 14:54:35 +02:00
Brian C. Lane c143d5b72d Add pollcdrom module to dracut
From Harald Hoyer <harald@redhat.com>:

pollcdrom is used to poll for the install medium. A lot of CDROM drives
are not polled by the kernel correctly, so we have to actively poll for
the medium.
2012-06-11 10:31:57 -07:00
Martin Gracik a7698e3540 Automatic commit of package [lorax] release [18.8-1]. 2012-06-06 16:01:53 +02:00
Martin Gracik 0123377d9b Check if selinux is enabled before getting the mode 2012-06-06 10:48:29 +02:00
Brian C. Lane f73545471b Add grub2 so that rescue is more useful 2012-06-04 14:42:57 -07:00
Martin Gracik d5e334fec4 Automatic commit of package [lorax] release [18.7-1]. 2012-06-04 16:15:59 +02:00