Commit Graph

77 Commits

Author SHA1 Message Date
Brian C. Lane
fec7b8d7b8 Add rng-tools and start rngd.service by default (#1258516)
This will help improve the entropy situation with non-x86 hardware. rngd
will add entropy from hardware rng sources.

Resolves: rhbz#1258516
(cherry picked from commit 690feba381)
2016-02-25 09:09:13 -08:00
Radek Vykydal
420d006ab6 configure NetworkManager to loglevel=DEBUG (#1274647)
Resolves: rhbz#1274647
2016-02-19 16:47:39 -08:00
Brian C. Lane
94d4bc7c4a Fix metacity theme path (#1231856)
${configdir} already includes the /common/ path component.

Related: rhbz#1231856
2015-08-31 10:42:17 -07:00
David Shea
41715eb194 Run spice-vdagentd without systemd-logind integration
The system-wide spice guest agent, spice-vdagentd, normally uses
systemd-logind to determine which of the per-session spice-vdagent
instances it should be communicating with. On the non-live media, the X
session isn't registered with systemd-logind, so instead start
spice-vdagentd with -X to disable the systemd-logind integration and
serve instead to a single spice-vdagent.

(cherry picked from commit 96ecdd4e6e)

Related: rhbz#1169991
2015-08-28 09:46:18 -04:00
David Shea
d93ace517e Replace the metacity theme file.
This replaces the Adwaita metacity-theme-2.xml file with a version that
sets has_title=False and removes the title borders for maximized
windows. This allows anaconda to run as a maximized window instead of a
fullscreen window while still running without a titlebar.

Related: rhbz#1231856
2015-08-26 14:53:47 -04:00
Radek Vykydal
96371548d3 network: turn slaves autoconnection on
So we can activate master connection instead of searching for and activating
slave connections.

Makes turning bond/team device on in network spoke work.

Resolves: rhbz#1172751

It also causes a device configured in dracut to be properly reactivated as a slave
if it is configured so by kickstart.

Resolves: rhbz#1134090
2015-06-26 15:00:27 +02:00
Brian C. Lane
b79ad68a50 Disable systemd-tmpfiles-clean (#1202545)
When the time changes dramatically it cleans up the files in /tmp/
causing problems with the installation.

Resolves: rhbz#1202545
2015-06-12 16:01:07 -07:00
David Lehman
c79b291923 Don't include the stock lvm.conf.
We started including it as an unintended side-effect of commit 9ca487f8.

lvm doesn't like it when there are multiple 'global' sections in lvm.conf,
and we add one right at the end of that block. We expect ours to be the
file's only content.

(cherry picked from commit 4a7552d4be)

Related: rhbz#1149992
2014-10-31 13:22:42 -05:00
Vratislav Podzimek
b343637745 Keep the /etc/lvm/profiles directory in the image
Profile definitions are needed e.g. for creation of thin pools with specific
profile.

Related: rhbz#869456
2014-10-02 15:44:59 +02:00
Brian C. Lane
28bf37089b fedora- services are named rhel- (#1066118)
These services were renamed for RHEL but never updated. They could
potentially cause problems with the installer.

Resolves: rhbz#1066118
2014-02-17 10:28:01 -08:00
Radek Vykydal
61401e2640 Don't activate default auto connections after switchroot (#1012511)
Related: rhbz#1012511

Add NetworkManager config file turning default auto connections off.
2014-01-31 17:05:25 +01:00
Will Woods
b01abcaf64 Activate anaconda-shell@.service on switch to empty VT (#980062)
Right now, logind reserves tty6 for a login shell, which is not what we
want - normally anaconda puts Xorg there, and there's no need for a
login prompt anyway.

This configures logind to activate "anaconda-shell@.service" when a user
switches to an unused tty, and reserves tty2 for that purpose (which is
where users expect a shell anyway).

This will avoid us having login prompts that users don't know what to do
with. It also probably saves us a little bit of RAM.
2014-01-24 13:05:35 -05:00
Will Woods
270cb8272e Remove /var/log/journal so journald won't write to overlay
It's pretty pointless to copy data from /run/log/journal to
/var/log/journal, since both of those are in-memory filesystems.

This should somewhat reduce RAM use during installation.
2013-04-29 13:44:42 -04:00
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