Commit Graph

291 Commits

Author SHA1 Message Date
Matthew Garrett 3aa1fcadb9 mkefiboot: Add support for disk label files
The Apple boot picker provides drive names by reading small icon files
off the filesystem. Add support for including them.
2012-05-03 10:03:13 -07:00
Will Woods c03ac93997 Add 'tmux' to runtime image
Having tmux would let us set things up so we can run all our 'terminals'
(shell, log output, etc) inside one terminal. Useful for headless stuff.
2012-04-27 14:26:18 -04:00
Will Woods 9d90760f93 Add /etc/sysctl.d/anaconda.conf, set kernel.printk=1 (#816022)
We use this to set various sysctl settings, like setting kernel.printk=1
so we don't get the screen all crudded up with kernel messages during
text-mode installs.
2012-04-27 14:25:50 -04:00
Will Woods 42737f0abf keep all filesystem tools
This adds ~700kb to the installer runtime, but it also adds a lot of
useful filesystem tools and reduces complexity a bit. A fair trade!
2012-04-24 14:47:42 -04:00
Martin Gracik ef214183ec Leave some of the grub2 utilities in the install image (#749323) 2012-04-24 14:47:41 -04:00
Brian C. Lane 5ca1aa089e add media check menu option
Add an option to check the media
2012-04-23 08:24:34 -07:00
Brian C. Lane 371e59d27f remove unneeded dracut bootargs
anaconda-dracut now adds these itself.
2012-04-23 08:24:34 -07:00
Brian C. Lane 60f8c9fabe add gdisk to install image (#811083)
Add gdisk and related tools to the install image.
2012-04-12 08:29:39 -07:00
Martin Gracik 5d026fed46 Don't use --allbut for xfsprogs cleanup (#804779) 2012-04-12 08:29:17 -07:00
Martin Gracik d45e583c7b Add spice-vdagent to initrd (#804739) 2012-04-12 08:28:47 -07:00
Martin Gracik fd984f77f9 Add ntfs-3g to initrd (#804302) 2012-04-12 08:28:36 -07:00
Brian C. Lane 159f9eac3d ntfs-3g now uses /usr/lib (#810039) 2012-04-05 07:47:42 -07:00
Matthew Garrett bb18614c3b mkefiboot: Make Apple boot images appear in the startup preferences
There's a small amount of additional metadata required for the Mac boot
images to appear as bootable devices in the startup preferencs, so add
support for generating that.

Signed-off-by: Brian C. Lane <bcl@redhat.com>
2012-03-30 13:23:02 -07:00
Will Woods b856297986 add symlink from /mnt/install -> /run/install
Since noloader mounts stuff under /run/install, but anaconda (and
people's scripts etc.) look under /mnt/install, make a symlink so
everything works as expected.
2012-03-30 13:22:54 -07:00
Will Woods 1fe6e6ce54 Don't trash all the initscripts 'fedora*' services
We need some of them (fedora-import-state.service), so let's just
disable the ones that cause us problems (mostly fedora-storage*).
2012-03-30 13:22:48 -07:00
Will Woods 562be7eaec remove anaconda-copy-ks.sh
anaconda-copy-ks.sh is included in the 'anaconda' dracut module, so we
don't need to install it here anymore.
2012-03-30 13:22:48 -07:00
Will Woods 2d9a56a9ec add anaconda dracut module
Install the anaconda dracut module during 'install', use it when
rebuilding initramfs, and clean it up afterward.

Also install '.buildstamp' into the initramfs (the anconda module wants
it).
2012-03-30 13:22:48 -07:00
Will Woods 34f5397768 runtime-postinstall: remove references to loader
No more loader. Bye-bye, loader.
2012-03-30 13:22:48 -07:00
Will Woods d61f330462 runtime-postinstall: remove keymap stuff
anaconda no longer contains the keymap overrides and systemd should be
handling keymap stuff for us, so this isn't necessary.
2012-03-30 13:22:48 -07:00
Martin Gracik 4e3c11c5eb Add the icfg package (#771733) 2012-03-30 13:22:48 -07:00
Martin Gracik 4762c45b22 Fix product name replacing in templates (#799919)
The product name may contain spaces, so it needs
to be in quotes, otherwise the other words get stripped.
2012-03-30 13:22:45 -07:00
Brian C. Lane 6c93dcde9a add iscsi-initiator-utils (#804522) 2012-03-28 08:38:41 -07:00
Martin Gracik b84fba40a5 Don't remove btrfs utils (#796511) 2012-02-28 12:50:34 +01:00
Martin Gracik 73faf711bd Remove root and ip parameters from generic.prm (#796572) 2012-02-28 12:50:34 +01:00
Martin Gracik 746811944a Install nhn-nanum-gothic-fonts (#790266)
Replacing un-core-dotum-fonts.
2012-02-28 12:50:34 +01:00
Brian C. Lane f6876beea6 iputils is small and required by dhclient-script 2012-02-27 13:04:52 -08:00
Brian C. Lane 8c56e9d261 dhclient-script needs cut and arping 2012-02-17 16:31:06 -08:00
Brian C. Lane ff27282431 metacity now depends on gsettings-desktop-schemas
but they didn't set a dep on it so it crashes with
GLib-GIO-ERROR **: Settings schema
'org.gnome.desktop.wm.preferences' is not installed
2012-02-15 07:40:34 -08:00
Matthew Garrett 2553a6d5f1 Add findiso to grub config
In order for grub to be able to read the kernel regardless of whether
the image is written to a CD or a USB stick, it's necessary to autoprobe
for the filesystem using the findiso command. Add it to the grub config.
2012-02-14 09:20:22 -08:00
Brian C. Lane 141312ba0e add memtest to the boot.iso for x86 (#787234) 2012-02-13 07:06:09 -08:00
Martin Gracik 872340071b Don't use mk-s390-cdboot (dhorak)
Anaconda dropped the mk-s390-cdboot tool, so we can't call it in lorax.
2012-02-13 13:22:08 +01:00
Brian C. Lane b107181692 Add dracut args to grub.conf 2012-02-10 14:24:32 -08:00
Martin Gracik bbd758d998 Change the squashfs image section in .treeinfo
Related: rhbz#782108
2012-02-09 16:59:15 +01:00
Martin Gracik cb6d0758d9 Add path to squashfs image to the treeinfo
Related: rhbz#782108
2012-02-09 16:28:03 +01:00
Dan Horák 17179f2120 use internal implementation of the addrsize utility
Anaconda dropped the addrsize utility in F-16, so we need to implement
it directly in lorax.
2012-02-09 14:08:56 +01:00
Martin Gracik 08e7a19f42 Make sure var/run is not a symlink on s390x (#787217) 2012-02-09 10:34:07 +01:00
Martin Gracik 5af1ea948e Create var/run/dbus directory on s390x (#787217)
s390x has no systemd, so we need to create the directory.
2012-02-09 10:34:07 +01:00
Brian C. Lane cf7ec41ef0 keep convertfs.sh script in image (#787893)
This is needed by anaconda in order to upgrade to F17
2012-02-08 14:55:52 -08:00
Tim Flink e9d34e3cbf fix templates to work with F17 usrmove
Signed-off-by: Will Woods <wwoods@redhat.com>
2012-02-08 14:07:43 -05:00
Brian C. Lane c97666bb94 Add luks, md and dm dracut args to bootloaders 2012-02-03 15:06:21 -08:00
Brian C. Lane 2af864c438 lorax: copy kickstarts into sysroot (#743135)
The installer no longer has access to the initrd's root. We need to
copy any needed files over to /sysroot before switching root. This
copies *.cfg and *.ks files.

It also adds the ability to add dracut hook scripts to the initramfs
from /usr/share/lorax/dracut_hooks/

This re-adds commit af6d4e2c50 which was
lost during the switch to the treebuilder branch.
2012-01-25 21:59:48 -08:00
Chris Lumens 4758a2aa80 Add packages required for gtk3 and the new anaconda UI.
This doesn't get rid of the gtk2 stuff yet, though.  The intention here is
that you can use this lorax to generate an image containing either the old
anaconda or the newui branch, simply by including a different repo in your
tree composition kickstart file.

Also, it appears that some things in the tree still require gtk2 so we may
be stuck with both for the forseeable future.
2012-01-18 13:17:33 -05:00
Brian C. Lane 31c60b119b lorax: Don't touch /etc/mtab in cleanup 2012-01-09 12:11:02 -08:00
Brian C. Lane 3c02a01a81 dracut needs kbd directories (#769932) 2012-01-03 17:24:41 -08:00
Brian C. Lane 59a1ef8b0b Add config files for live media 2011-12-20 14:59:58 -08:00
Will Woods 27dda6eae6 ppc.tmpl: work around yaboot's crippling fear of backslashes
If yaboot so much as catches a whiff of a backslash in yaboot.conf, it
will reject the entire file. No bootloader config means no booting.

So as long as we're still using yaboot on PPC, we need to use ISO volume
labels it can handle. So: filter the isolabel, replacing any non-ASCII
characters with underscores.
2011-11-16 15:18:47 -05:00
Will Woods 86937d2c0a ppc.tmpl: clarify comments, fix yaboot.conf for Apple systems
So there's actually two copies of yaboot on a PPC image, and they each
use different config files:

  ppc/chrp/yaboot --> /etc/yaboot.conf
  ppc/mac/yaboot  --> /ppc/ppc{32,64}/yaboot.conf

So we need two copies of yaboot.conf - one in each place - to
boot properly (or all three if we're making hybrid images). Whee!

The comments should now make this more clear for future reference.
2011-11-16 15:17:39 -05:00
Will Woods e3bb8700c6 postinstall: fix root account password (#750907)
'replace' uses regexes, so that '*' needs to be escaped...

Signed-off-by: Will Woods <wwoods@redhat.com>
2011-11-08 11:29:53 -05:00
Will Woods 235962e30a drop workaround for pre-f16 anaconda's tmp.mount 2011-11-02 15:06:09 -04:00
Will Woods 3dde9f6316 fix postinstall user creation/modification (fixes #750907)
We were appending to /etc/shadow when previous versions of lorax
overwrote it, so we ended up with two conflicting entries for "root".

Instead:
- keep existing /etc/shadow and /etc/passwd contents
- add new entries for "install" user
- remove password from existing "root" entry in /etc/shadow

Also, we don't need to create the 'sshd' user, because the
openssh-server %post script does that for us.
2011-11-02 15:05:59 -04:00
Will Woods 0fed4e33c2 Add --mac to isohybrid args (makes Apple EFI work) 2011-11-02 13:17:20 -04:00
Will Woods d7f05f1386 use grub, not grub2 (we're still generating grub1 configs) 2011-11-01 15:57:45 -04:00
Will Woods 7f149decea efi.tmpl: drop efidisk.img
This was a holdover from the days when we couldn't properly EFI-boot
boot.iso, but now with isohybrid EFI support we should be fine without
it.
2011-10-31 15:02:02 -04:00
Will Woods 1ec2fe9fbd x86.tmpl: add eltorito alt boot entry for macboot.img
This should allow us to boot the created image on Apple EFI systems.
2011-10-31 15:02:01 -04:00
Will Woods f1ff48243d efi.tmpl: use Apple EFI icon from installed root 2011-10-31 14:57:44 -04:00
Chris Lumens 2168014d3f Set a default font for systemd to load. 2011-10-31 12:55:49 -04:00
Chris Lumens 1ff9b2377b Add console fonts to the runtime.
We need these around for systemd to load.
2011-10-31 12:11:02 -04:00
Will Woods d0a4364396 runtime-cleanup: clarify & improve gtk/gnome theme cleanups
Actual content changes:
- {High,Low}Contrast themes moved to gnome-themes-standard, so remove
  them from there. Also remove HighContrastInverse theme.
- Removed metacity 'Atlanta' theme - 'Adwaita' is the default metacity
  theme these days.
2011-10-26 15:47:14 -04:00
Will Woods ac347c364a runtime-cleanup: drop some useless lines
neither avahi nor dmz-cursor-themes gets installed anymore.
2011-10-26 15:46:37 -04:00
Will Woods e14c0e51a7 runtime-cleanup: clarify dejavu font cleanups 2011-10-26 14:48:55 -04:00
Will Woods e715cb0dd1 Fix /firmware and /modules symlinks 2011-10-26 14:48:55 -04:00
Will Woods 8cdef602d5 make sure ntfsresize gets installed
ntfsresize is currently living in the ntfsprogs package, which (for
whatever reason) isn't getting automatically pulled into the runtime
environment anymore.

So: install ntfsprogs in runtime-install, and remove everything but
ntfsresize in runtime-cleanup.
2011-10-26 14:47:28 -04:00
Will Woods 0e64f08ff8 Add '-cmd' syntax to ignore errors, drop copyif/moveif
Makefile-style "-cmd" syntax lets us run a command and ignore any
resulting errors. This is a more general version of what copyif/moveif
were trying to accomplish, so we can drop those commands.
2011-10-26 13:08:39 -04:00
Will Woods 8db7604a06 don't remove fs/nls kernel modules (we need them for some mounts) 2011-10-25 16:24:17 -04:00
Will Woods 601fef6874 fix /modules symlink problem (lorax deleting modules on host!)
symlinking /modules to '/lib/modules' inside the runtime image is fine,
but since we're operating outside the runtime image, the absolute
symlink will point to the host's /lib/modules, which can cause us to
delete kernel modules. Yikes.

Instead:
1) use /lib/modules rather than the symlink, and
2) use a relative symlink, just to be safe.
2011-10-25 16:12:09 -04:00
Will Woods 0236440581 clean up config_files dir (and fix templates to match)
move arch-specific stuff to arch-specific subdirs and move all the
common stuff to a subdir named 'common'. Also, rename '.profile' and
'.bash_history' so you actually see them when you 'ls' the 'common' dir.

also added some helpful(?) comments to the templates.
2011-10-21 17:35:52 -04:00
Will Woods 2f4b9c16b6 New syslinux config (#734170)
Adapted from commit b3301595bc.
2011-10-21 13:17:15 -04:00
Will Woods 0c2988f34d symlink /lib/{modules,firmware} to /
Anaconda expects /firmware and /modules because of Ancient Tradition.
Set up the symlinks for compatibility's sake.
2011-10-18 16:31:50 -04:00
Will Woods 1ed5d99473 move from grub to grub2. YEE-HAW. 2011-10-17 18:53:06 -04:00
Will Woods 23c7a029ce rsyslog.conf: hardcode hostname for virtio forwarding (#744544)
Patch by Ales Kozumplik <akozumpl@redhat.com>

The value syslogd provides at this early point when kickstart starts is
"(none)". This makes the receiving syslog unable to parse the incoming
messages.
2011-10-13 10:31:45 -04:00
Will Woods 33d306205e add grub-efi on x86 for EFI boot support 2011-10-12 20:42:52 -04:00
Will Woods f640a2faab Use a predictable ISO Volume Label (#732298)
New images find their root device by looking at the CDLABEL. Since pungi
is building ISO images separately from lorax, if it uses a different ISO
Volume Label we'll end up with unbootable images.

This changes the volume labels to match what pungi uses, so both should
boot OK.
2011-10-12 20:21:06 -04:00
Will Woods 9df3348a71 Move images/install.img to LiveOS/squashfs.img (#732298)
Since pungi doesn't know that images/install.img needs to be moved to
LiveOS/squashfs.img for images to be "live", they aren't bootable.

This is the simple solution to the problem. Thanks to Karsten Hopp
for the original patch.
2011-10-11 14:58:30 -04:00
Will Woods b59172a519 sparc.tmpl: cleanups (just use BOOTDIR for everything) 2011-10-11 14:56:39 -04:00
Will Woods a6dac28781 add some firstaidkit-plugins
yay! rescue mode is more useful!
2011-10-01 16:43:11 +02:00
Will Woods 1fa956a756 add /usr/bin/env (fpaste needs it) 2011-09-22 17:11:03 -04:00
Will Woods e0e5cccda6 Add fpaste to the runtime image. 2011-09-22 15:00:36 -04:00
Will Woods d3fcbcfbed remove hack that replaces /bin/login
anaconda should be handling this properly now.
2011-09-21 23:46:48 -04:00
Will Woods efea74ad12 syslinux-vesa-splash changed filename (#739345) 2011-09-21 23:46:48 -04:00
Will Woods be4d8160b2 Don't create /etc/sysconfig/network (#733425) 2011-09-14 15:28:33 -04:00
Will Woods e647a7e18a remove sysinit setup stuff for Fedora 15 and earlier 2011-09-07 20:36:22 -04:00
Will Woods a0b3343d1e efi.tmpl: create macboot.img
use the new --apple flag for mkefiboot to create Mac-compatible
boot images.
2011-09-06 12:52:46 -04:00
Will Woods faafd04dcb add '--allbut' flag to 'removefrom'
This lets us easily do whitelisting instead of blacklisting during
runtime cleanup. For example:
 removefrom xfsprogs --allbut /sbin/* /usr/sbin/xfs_admin
would remove everything from the xfsprogs package except files in /sbin
and /usr/sbin/xfs_admin.

A few things in runtime-cleanup have been converted to use --allbut. The
only difference in the created runtime image is that we're deleting
/usr/share/kde4 from fedora-logos.
2011-08-31 19:40:20 -04:00
Will Woods 3f709325ef Revert "remove firstboot from runtime build"
It turns out we actually do need the firstboot module in anaconda.

This reverts commit d341587814.
2011-08-30 11:22:19 -04:00
Will Woods 5cefea05d0 xauth and libXmu are needed for ssh -X (#731046) 2011-08-29 20:26:54 -04:00
Will Woods bf7ed5aa4e Build EFI hybrid (usb-bootable) images
From: Matthew Garrett <mjg@redhat.com>

If we're producing EFI bootable images then we should also support
making them bootable from USB sticks. This adds support for doing so.
2011-08-29 16:29:43 -04:00
Will Woods 219911f37c cleanup: don't bother removing network-manager-netbook 2011-08-29 15:46:15 -04:00
Will Woods eb7bc9c9be various runtime-cleanup cleanups
- use libdir in GConf2
- delete redundant removals of /usr/share/gnome/*
- remove systemd units for nfs-utils
- remove all of notification-daemon rather than piece-by-piece
- don't try to delete non-existent libldif from openldap
- /usr/sbin/xfs_bmapd is actually /usr/sbin/xfs_bmap
- remove /etc/* from yum rather than etc/*
2011-08-29 15:04:43 -04:00
Will Woods 1e8e8002b4 add libreport plugins (#729537), clean up libreport
report got renamed to libreport, so we need to fix those lines in
cleanup.
2011-08-29 14:17:07 -04:00
Will Woods 49ae7d875c Keep nss certs for libreport (#730438)
libreport uses nss (and its certificate store) to connect to https
servers, so we need to keep the certificates etc.
2011-08-29 14:16:32 -04:00
Will Woods adbd396314 Don't remove ModemManager (#727946) 2011-08-29 13:18:31 -04:00
Will Woods a02ffbb0b9 remove a bunch of unneeded firmware and llvm-libs
firmware saves us ~5MB and llvm-libs saves ~20MB (uncompressed). yay!
2011-08-09 20:55:39 -04:00
Will Woods 6962fe3e80 move systemd cleanup to runtime-postinstall
also make sure we clean a bunch more unneeded services, but don't bother
deleting target files that would just be ignored anyway.

also also, delete everything in /etc/systemd/system/default.target.wants
so that we don't get readahead stuff in anaconda.
2011-08-09 17:39:07 -04:00
Will Woods 0af2f62661 move stuff around in runtime-postinstall, add comments
no actual code changes here.
2011-08-09 17:37:43 -04:00
Will Woods ebbdcf72c4 rearrange/clarify removepkg lines
Add commentary for a bunch of the removepkg lines, and drop a bunch of
things that were in the list that weren't being installed anyway. Also
drop some redundant removepkg lines about chkconfig.
2011-08-09 17:33:27 -04:00
Will Woods 46a10f68f7 add dracut-network to runtime so it can get into the initramfs
it gets removed again during cleanup for space savings.
2011-08-08 21:14:10 -04:00
Will Woods f7010454a0 minor ppc.tmpl cleanups 2011-08-08 21:11:28 -04:00
Will Woods ec097a869e disable unneeded tmp.mount service in anaconda
this is also a workaround for some weirdo problem on ppc. whee!
2011-08-08 20:36:35 -04:00
Will Woods 058fa13a54 rename ANABOOTDIR to configdir 2011-08-08 20:35:35 -04:00
Will Woods 905b8f0dd7 runtime cleanup: clean out /tmp 2011-08-08 20:13:47 -04:00