Commit Graph

64 Commits

Author SHA1 Message Date
David Lehman
577d9cc954 Let devices get detected and started automatically.
Also stop masking fedora-storage-* units as they no longer exist.
2013-04-08 09:54:42 -05:00
Brian C. Lane
73717a5288 Make sure tmpfs is enabled (#908253) 2013-02-14 16:55:46 -08:00
Jesse Keating
f2bcfafa85 Change the install user's shell for tmux 2012-10-11 10:25:56 -07:00
Martin Gracik
fb69670ea8 There's no lang-table in anaconda anymore (#857925) 2012-09-17 11:41:39 -07:00
Chris Lumens
da306b6313 Disable the maximize/unmaximize key bindings (#853410). 2012-08-31 17:11:49 -04:00
Jesse Keating
07d8f3f723 Revert "Mask the tmp.mount service to avoid tmpfs"
This reverts commit ca15f6d2ba.

Anaconda now handles /tmp being tmpfs with regard to updates and product
images.
2012-08-29 14:04:56 -07:00
Jesse Keating
ca15f6d2ba Mask the tmp.mount service to avoid tmpfs
Anaconda runtime is already in memory, no need to use tmpfs here.  In
fact use of tmpfs here will overwrite any updates content that was put
in place by dracut.
2012-08-15 15:11:39 -07: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
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
Will Woods
26f7a706e9 remove 'loadkeys' stub (#804306)
Just use the regular 'loadkeys' binary, for pity's sake.
2012-05-25 08:54:28 +02:00
Dan Horák
00ec88dac7 linuxrc.s390 is dead in anaconda 2012-05-25 08:48:39 +02:00
Brian C. Lane
b1ba9cacca stop moving /run (#818918)
This was a hack, /run is on tmpfs so lorax should leave it to the apps
to create their own directories.
2012-05-08 10:45:03 -07: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
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
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
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
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
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
e715cb0dd1 Fix /firmware and /modules symlinks 2011-10-26 14:48:55 -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
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
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
d3fcbcfbed remove hack that replaces /bin/login
anaconda should be handling this properly now.
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
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
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
ed95688d40 Add workaround for keymap/screenfont on ppc64 2011-08-02 11:55:01 -04:00
Will Woods
5c0fc573e6 fix bin/login for F16 2011-07-26 17:20:02 -04:00
Will Woods
de49d1fbd9 prefer "basearch" to "arch.basearch" (also "libdir") 2011-07-25 19:44:14 -04:00
Will Woods
f1b5c77e50 Add <%page args="..."/> to templates 2011-07-25 19:39:48 -04:00
Will Woods
080a32b273 More hacks to work around weird /var/run vs. /run stuff in F15 2011-07-07 19:26:03 -04:00
Will Woods
e1edc65e62 runtime-{postinstall,cleanup}: more F15 fixes
* don't remove /usr/lib/locale and locale-archive in F15
* make sure /var/run isn't a symlink
2011-07-07 18:38:55 -04:00
Will Woods
abaab765cb Fix f15 crash with missing /var/run/dbus 2011-07-07 10:57:55 -04:00
Will Woods
9dde406193 Copy lang-table into etc, and remove it during cleanup 2011-07-06 19:33:38 -04:00
Will Woods
14cc34e1ee F15 fix: remove /sbin/init before copying over it
If it's a symlink, we'll copy the file into the symlink, and then we'll
likely remove the target of the symlink (../bin/systemd) in cleanup, and
then we have no init. Boo.
2011-07-06 19:10:48 -04:00
Will Woods
d61ae8c1e6 fixup - correctly detect F15 builds
Yeah, for F16 you need to do "version > 15", not ">= 15". Oops.
Also, check product.version before using anaconda_dracut_hack().
2011-07-06 17:17:40 -04:00
Will Woods
23e048d7de remove "mknod" from the anaconda stub list
Apparently this doesn't exist anymore.
2011-07-06 13:55:39 -04:00
Will Woods
ba686350ef Revive code/hacks for building F15 images
To build F15 images we need to remove systemd and set up loader as init
(see runtime-cleanup and runtime-postinstall).

We also need to add a hack to dracut so loader won't freak out when it
gets started by anaconda - see the file we're adding to the initramfs in
treebuilder.py.

(There's also an extra bonus hack for working around a bug in dracut if
/proc/cmdline is empty - SEE IF YOU CAN SPOT IT!!!)
2011-07-06 13:07:21 -04:00