Commit Graph

92 Commits

Author SHA1 Message Date
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
Will Woods
ebdf223497 add TODO comment 2011-06-30 16:05:43 -04:00
Will Woods
9ac7db8cb1 Add TreeBuilder.generate_module_data() for depmod/module-info
generate_module_data() runs depmod for each kernel module in the install
root, then generates the (anaconda-specific) module-info files.
2011-06-27 14:46:47 -04:00
Will Woods
c0cf2095e4 remove f15 junk from runtime-postinstall 2011-06-24 18:19:34 -04:00
Will Woods
c00a0afd21 fix PYTHONDIR for new _glob 2011-05-31 12:24:17 -04:00
Will Woods
66e8d5d1f8 postinstall.tmpl cleanups 2011-05-27 11:03:49 -04:00
Will Woods
9dad023a2f fix PYTHONDIR in runtime-postinstall.tmpl 2011-05-27 11:03:49 -04:00
Will Woods
08c58377cc postinstall fixup - there's no 'shutdown' in anaconda.. 2011-05-27 10:53:38 -04:00
Will Woods
33107bdab1 runtime-postinstall depmod cleanup 2011-05-26 18:36:30 -04:00
Will Woods
51472dee28 template fixup: use product.version instead of conf.systemd 2011-05-26 14:21:13 -04:00
Will Woods
511deeaea9 fix <%page args=""/> syntax error 2011-05-26 13:05:33 -04:00
Will Woods
398b3b0922 Remove module command from treebuilder and templates
Module whitelisting is silly. Let's blacklist the stuff we don't need.
2011-05-17 18:16:06 -04:00
Will Woods
fa80e95ed4 fixup: add module stuff to runtime-postinstall 2011-05-14 03:28:47 -04:00
Will Woods
0f474a0e07 runtime*.tmpl tweaks for conf.systemd 2011-05-13 12:25:52 -04:00
Will Woods
984185be0c WIP: port ramdisk.ltmpl and installtree to TemplateRunner 2011-05-12 17:28:52 -04:00