Harald Hoyer
ac5bff2b6f
dracut-lib/wait_for_dev(): prevent systemd daemon-reload
...
prevent a systemd daemon-reload, if it is not necessary to do.
2013-12-18 15:22:27 +01:00
Harald Hoyer
8bcfd683bd
*/module-setup.sh: add comments for dracut called functions
2013-10-08 10:37:56 +02:00
Harald Hoyer
af11946054
dracut-functions.sh: inst_multiple == dracut_install
2013-08-07 10:33:15 +02:00
Harald Hoyer
dc7085ceeb
systemd: use systemd in the initramfs, if installed on the system
...
and systemd version is >= 198
2013-07-31 13:56:03 +02:00
Harald Hoyer
d124904f2b
systemd: include systemd-tempfiles
2013-07-30 16:18:03 +02:00
Harald Hoyer
d988dc30df
systemd: add support for kmod static devnodes
2013-07-30 11:58:33 +02:00
Harald Hoyer
951cedf8cb
Revert "systemd: add systemd-fsck-root.service"
...
This reverts commit 35857f556c
.
2013-07-17 15:05:30 +02:00
Harald Hoyer
35857f556c
systemd: add systemd-fsck-root.service
2013-07-17 12:00:04 +02:00
Harald Hoyer
bf9cdc472c
systemd/module-setup.sh: create emtpy /etc/machine-id
...
Even in hostonly mode, if none was found on the system.
2013-07-11 12:15:17 +02:00
Harald Hoyer
b093aa2dc7
beautified shell code
...
checked with shellcheck http://www.shellcheck.net/about.html
2013-07-04 12:31:15 +02:00
Harald Hoyer
f13deabd22
systemd/module-setup.sh: add slices.target
2013-06-28 09:58:03 +02:00
Harald Hoyer
68cb510f18
systemd: add system.slice unit
2013-06-26 09:15:34 +02:00
Harald Hoyer
4961910fe3
systemd/module-setup.sh: mkdir /etc/systemd
2013-06-13 14:44:13 +02:00
Harald Hoyer
373efa4427
systemd: make unit files symlinks
2013-06-13 11:08:03 +02:00
Harald Hoyer
5d68c80b16
systemd: include the systemd-random-seed-load.service
...
The systemd cryptsetup-generator wants systemd-random-seed-load.service
in case /dev/urandom is the device.
2013-04-12 15:27:27 +02:00
Harald Hoyer
bfac40665b
systemd: add new timers.target and paths.target
2013-03-26 16:19:27 +01:00
Harald Hoyer
cbd69dc6ff
install dracut-*.service units
2013-03-25 07:56:12 +01:00
Harald Hoyer
e26d76dca1
systemd: add more ordering
2013-03-19 12:22:33 +01:00
Harald Hoyer
6b46e7baa0
systemd: do not use "systemd --version" until fixed
2013-03-15 07:10:20 +01:00
Harald Hoyer
85c85f07e2
systemd: switch to new initrd.target
...
(normal startup)
:
:
v
basic.target
|
______________________/|
/ |
| sysroot.mount
| |
| v
| initrd-root-fs.target
| |
| v
| initrd-parse-etc.service
(custom initrd services) |
| v
| (sysroot-usr.mount and
| various mounts marked
| with fstab option
| x-initrd.mount)
| |
| v
| initrd-fs.target
| |
\______________________ |
\|
v
initrd.target
|
v
initrd-cleanup.service
isolates to
initrd-switch-root.target
|
v
______________________/|
/ |
| initrd-udevadm-cleanup-db.service
| |
(custom initrd services) |
| |
\______________________ |
\|
v
initrd-switch-root.target
|
v
initrd-switch-root.service
|
v
switch-root
2013-03-15 07:10:20 +01:00
Harald Hoyer
a23b368c92
systemd: remove upstream renamed old service files
2013-03-13 14:45:55 +01:00
Harald Hoyer
b8060ef781
systemd: add sysctl.d and sysctl.conf
2013-03-13 11:37:05 +01:00
Harald Hoyer
727543c1e6
systemd: add modules-load.d modules to the initramfs
2013-03-13 11:37:05 +01:00
Harald Hoyer
c85cda9e2f
systemd: local-fs.target is now root-fs.target and initrd-fs.target
...
Also rename dracut.target to initrd.target
see also systemd commit 700e07f
http://cgit.freedesktop.org/systemd/systemd/commit/?id=700e07f
2013-03-13 09:34:47 +01:00
Harald Hoyer
900e15da34
systemd/module-setup.sh: call systemd in private dir for version
2013-03-08 11:50:03 +01:00
Harald Hoyer
31737a05e1
systemd: add version check in install()
2013-03-08 07:07:01 +01:00
Harald Hoyer
dbfaae0e34
systemd: changes for new initrd services
...
Requires systemd >= 198
2013-03-06 17:21:47 +01:00
Harald Hoyer
569ffe77bf
systemd: add systemd-modules-load.service and hook dirs
2013-02-21 12:13:09 +01:00
Harald Hoyer
27a2c3a406
systemd: services got renamed
2013-02-14 12:32:12 +01:00
Harald Hoyer
6b095274fb
systemd: trigger systemd-vconsole-setup.service only on demand
2013-02-11 11:49:19 +01:00
Will Woods
488d55c546
add 'swapoff' to initramfs to fix shutdown/reboot
...
systemd shutdown/reboot won't work unless 'swapoff' is available.
2012-12-14 09:04:55 +01:00
Harald Hoyer
528ae4f46c
systemd/module-setup.sh: turn off RateLimit for the journal
2012-11-26 13:49:19 +01:00
Harald Hoyer
2242cd92ee
systemd: rename emergency.service to dracut-emergency.service for rd.shell
2012-10-04 13:24:07 -04:00
Harald Hoyer
25787f8071
systemd/module-setup.sh: move some services to sysinit
2012-10-03 16:35:13 -04:00
Harald Hoyer
8b6bdafc39
systemd/module-setup.sh: install systemd udev rules
2012-07-30 17:08:52 +02:00
Harald Hoyer
3bb4700f98
systemd/module-setup.sh: removed initctl services
2012-07-18 15:54:08 +02:00
Harald Hoyer
6bd4ca5644
systemd/module-setup.sh: removed shutdownd
...
we don't need timed shutdowns in the initramfs
2012-07-18 14:08:50 +02:00
Harald Hoyer
765d8408e9
Revert "systemd/dracut-pre-pivot.service: force clean stop of udevd and cleanup-db"
...
This reverts commit a43f97c4e3
.
2012-07-17 13:05:11 +02:00
Harald Hoyer
a43f97c4e3
systemd/dracut-pre-pivot.service: force clean stop of udevd and cleanup-db
2012-07-17 11:08:58 +02:00
Harald Hoyer
bef2fd9722
systemd: install all dracut units in /etc and let the generator cp to /run
...
All custom units, which should appear in the system later on should be
installed in /etc/systemd. They should have a guard like:
ConditionPathExists=/etc/initrd-release
So, we can later query via systemctl:
$ systemctl status dracut-initqueue.service
dracut-initqueue.service - Dracut initqueue hook
Loaded: loaded (/run/systemd/system/dracut-initqueue.service; enabled-runtime)
Active: inactive (dead) since Tue, 10 Jul 2012 16:01:22 +0200; 1min 37s ago
start condition failed at Tue, 10 Jul 2012 16:01:23 +0200; 1min 36s ago
Main PID: 173 (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/dracut-initqueue.service
Jul 10 16:01:22 lenovo dracut-initqueue[173]: Checking, if btrfs device complete
Jul 10 16:01:22 lenovo dracut-initqueue[173]: Remounting /dev/disk/by-uuid/ade13292-d23f-45be-b732-fa9a391a56b0 with -o compress=lzo,ssd,rw
Jul 10 16:01:22 lenovo dracut-initqueue[173]: Mounted root filesystem /dev/sda3
2012-07-10 17:02:42 +02:00
Harald Hoyer
792b189317
systemd service cleanup
2012-07-10 12:22:51 +02:00
Harald Hoyer
b4e20a898e
systemd-udev-trigger.service and systemd-udev-settle.service have no "d"
2012-07-09 10:12:04 +02:00
Harald Hoyer
6795dcc4fc
require systemd >= 186
2012-07-09 10:04:35 +02:00
Harald Hoyer
9954876417
systemd/module-setup.sh: also include systemd-udevd* units
...
systemd-udev* was renamed to systemd-udevd*
2012-07-06 14:33:53 +02:00
Harald Hoyer
e09048aaf5
systemd: check, that --prefix= does not contain /run
...
systemd will mount /run before dracut has a chance to copy over the
original content.
2012-07-06 13:49:03 +02:00
Harald Hoyer
d04f16f600
install user/group adm for journal
2012-07-05 14:33:00 +02:00
Harald Hoyer
53fe81e752
modules.d/*/module-setup.sh: combine and specify type for installs
...
To speedup image creation, combine dracut_install calls and specify the exact type.
E.g. inst_script instead of the generic inst.
2012-06-29 12:41:27 +02:00
Harald Hoyer
d531a0a307
systemd/module-setup.sh: ln with --force
2012-06-29 12:41:26 +02:00
Harald Hoyer
3639d2431f
systemd/module-setup.sh: only create empty machine-id if non existing
2012-06-29 12:41:25 +02:00
Harald Hoyer
55cb17c677
systemd: remove old udev services
2012-06-21 10:52:29 +02:00