Harald Hoyer
86eb0b1b83
dracut-systemd/dracut-mount.service: add DefaultDependencies=no
9 years ago
Harald Hoyer
e168eeef67
systemd/dracut-cmdline.sh: unset "UNSET" $root
...
https://bugzilla.redhat.com/show_bug.cgi?id=1365667
caused by commit 9aa224cc
(cherry picked from commit fc77aca7dd
)
9 years ago
Harald Hoyer
c45e856a65
add rd.emergency=[reboot|poweroff|halt]
...
specifies what action to execute in case of a critical failure
9 years ago
Harald Hoyer
c000a21c25
dracut-systemd/*.service: conflict with shutdown target
...
make reboot/poweroff/halt work
also conflict with emergency.target
9 years ago
Harald Hoyer
8fce2c4d5e
dracut-systemd/dracut-emergency.sh: call shutdown-emergency hooks
...
if no rd.shell is given
9 years ago
Alexander Kurtz
016613c774
dracut-systemd/dracut-cmdline.sh: Don't error out if there is no root= argument.
...
Thanks to systemd's gpt-auto-generator [0] (which implements the Discoverable
Partitions Specification [1]), it is no longer necessary to always specify the
root= argument.
However, dracut would still refuse to boot if there was no root= argument (or
if it was set to the special value "gpt-auto" [2]). This commit stops dracut
from aborting the boot process in these cases and simply lets systemd do its
magic.
[0] https://github.com/systemd/systemd/blob/v229/src/gpt-auto-generator
[1] https://www.freedesktop.org/wiki/Specifications/DiscoverablePartitionsSpec/
[2] https://github.com/systemd/systemd/blob/v229/src/gpt-auto-generator/gpt-auto-generator.c#L928
9 years ago
Harald Hoyer
556ff7c76a
dracut-systemd/dracut-pre-pivot.sh: Break at switch_root only for bare rd.break
...
similar to commit ddfea6b54c
Previously, any rd.break=breakpoint would cause a break at the
given breakpoint and also at switch_root.
9 years ago
Evgeny Vereshchagin
eddca3c9c2
dracut-systemd/dracut-cmdline-ask: fix dracut --kernel-cmdline=rd.cmdline=ask
...
How to reproduce:
host# dracut --kernel-cmdline='rd.cmdline=ask' initramfs.img
host# qemu-system-x86_64 -initrd initramfs.img ... -append root=/dev/sda1 ...
...
qemu-host# journalctl -b | grep dracut-cmdline-ask
...
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: Installed new job dracut-cmdline-ask.service/start as 42
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: ConditionKernelCommandLine=rd.cmdline=ask failed.
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: Starting requested but condition failed. Not starting unit.
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: Job dracut-cmdline-ask.service/start finished, result=done
...
Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
9 years ago
dyoung@redhat.com
6870007674
Revert "Let user specify the action after fail"
...
This reverts commit 9d787df196
action_on_fail is useless thus remove the commits for it one by one.
Signed-off-by: Dave Young <dyoung@redhat.com>
9 years ago
dyoung@redhat.com
946722e465
Revert "dracut-emergency.service: do not start for "action_on_fail=continue""
...
This reverts commit b78e6ac2c3
.
action_on_fail is useless thus remove the commits for it one by one.
Signed-off-by: Dave Young <dyoung@redhat.com>
9 years ago
dyoung@redhat.com
a95a727fdc
Revert "systemd/emergency.service: do not run for action_on_fail=continue"
...
This reverts commit dcae873414
.
action_on_fail is useless thus remove the commits for it one by one.
Signed-off-by: Dave Young <dyoung@redhat.com>
9 years ago
dyoung@redhat.com
74c9fb947b
Revert "Change the implementation of action_on_fail"
...
This reverts commit d2765b5175
.
action_on_fail is useless thus remove the commits for it one by one.
Signed-off-by: Dave Young <dyoung@redhat.com>
9 years ago
Harald Hoyer
35a666d02a
dracut-systemd/rootfs-generator.sh: s/RequiresOverridable/Requires
...
RequiresOverridable will be deprecated
9 years ago
Harald Hoyer
db7d739818
systemd/dracut-cmdline.sh: print out cmdline in one line
...
(cherry picked from commit 93a5a3d3ca
)
9 years ago
Harald Hoyer
64c34f3459
dracut-systemd/module-setup.sh: remove duplicate vconsole wants
...
Adding the dependency on vconsole is already done in the 00systemd
module and the rescue.service has this already in the unit file.
9 years ago
Harald Hoyer
8ba684be1c
dracut-systemd/dracut-initqueue.sh: be verbose about timeout
...
Issue a warning, if timeout scripts are executed
10 years ago
Harald Hoyer
e47907cc6b
dracut-systemd/dracut-initqueue: only start service if really needed
...
Only start the dracut-initqueue.service, if the dracut_need_initqueue
command was issued on creation or later on set.
10 years ago
Harald Hoyer
e860ef0e30
dracut-pre-mount.service should run before systemd-fsck-root.service
10 years ago
Andrei Borzenkov
6c9484f614
ensure pre-mount (and resume) run before root fsck
...
References:
https://bugzilla.suse.com/show_bug.cgi?id=906592
Signed-off-by: Thomas Renninger <trenn@suse.de>
10 years ago
Harald Hoyer
231b3dd432
rootfs-generator: check for rootok, before doing any action
10 years ago
Harald Hoyer
8ff624df9f
dmsquash-live: install a sysroot.mount generator for systemd
...
otherwise systemd uses its own sysroot.mount line
10 years ago
Harald Hoyer
6d58fa27a4
change "while read x" to cope with EOF without newline
...
while read x || [ -n "$x" ]
should do the trick
10 years ago
Harald Hoyer
d3d52b20e9
dracut-systemd/rootfs-generator.sh: use strstr rather than grep
...
grep on /proc/cmdline is overkill and would add a requirement for grep
10 years ago
NeilBrown
f53ede36fb
dracut-systemd/rootfs-generator.sh: always create generated files.
...
When 'systemctl daemon-reload' is run, systemd will clean out
/run/systemd/generator and re-run all the generators.
So it is important that the generators always create the required
files.
rootfs-generator.sh currently does *not* create the desired files
if $hookdir/initqueue/finished/devexists-${_name}.sh
exists.
This is not removed by "systectl daemon-reload" so the first time this
generator is run it will do the right thing. Subsequent times it
won't.
This results in incorrect timeouts after "daemon-reload" is run.
So let the existence of each file only guard the creation that file.
Signed-off-by: NeilBrown <neilb@suse.de>
10 years ago
NeilBrown
97cb17c792
systemd/dracut-iniqueue - continue waiting if any timeout script makes progress
...
A number of timeout scripts can be registered. If any one of them
makes progress - e.g. assembles a degraded md array - then
the main loop should wait a bit longer rather than pressing forward.
This is particularly important is resume-from-hibernate requires a
degraded md array. Both the script to forcibly assemble the md array
and the script to abort hibernation if the device doesn't appear
are 'timeout' scripts. There needs to be a reasonable delay between
these running.
So: if any script has indicated that progress was made, break of out
the loop and go back to normal waiting.
Signed-off-by: NeilBrown <neilb@suse.de>
10 years ago
Harald Hoyer
a18d5494eb
dracut-systemd/module-setup.sh: make module-setup.sh executable
10 years ago
Harald Hoyer
28eae10b70
Split the systemd dracut module up
...
Basic systemd functionality is in 00systemd now.
Switching root and the initrd.target is in 00systemd-initrd.
Dracut additions to the systemd initrd are in 98dracut-systemd.
10 years ago