d2c0ca313f
- Ensure that targets such as halt can be reached (bsc#1048698) * adds 0529-systemd-add-missing-.slice-unit.patch * adds 0530-dracut-systemd-dracut-cmdline-ask-fix-dracut-kernel-.patch * adds 0531-dracut-systemd-.service-conflict-with-shutdown-targe.patch - Do not add too many drivers all at once (bsc#1037344) * adds 0532-List-drivers-rather-than-looking-for-reverse-depende.patch - instmods: check modules.builtin in $srcmods (bsc#1048606) * adds 0533-instmods-check-modules.builtin-in-srcmods.patch - ssh-client: ensure is usable in all cases (bsc#1021846) * adds 0535-ssh-client-Include-nss_-libraries.patch - Sync initramfs after creation to ensure entigrity (bsc#1049113) * adds 0536-Sync-initramfs-after-creation.patch OBS-URL: https://build.opensuse.org/request/show/517604 OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=316
58 lines
2.2 KiB
Diff
58 lines
2.2 KiB
Diff
From e053630ec37e31f1d7a9bcc22a4c67b2aae7c8e4 Mon Sep 17 00:00:00 2001
|
|
From: Evgeny Vereshchagin <evvers@ya.ru>
|
|
Date: Mon, 15 Feb 2016 08:29:40 +0000
|
|
Subject: [PATCH 2/3] 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>
|
|
---
|
|
modules.d/98dracut-systemd/dracut-cmdline-ask.service | 3 ++-
|
|
modules.d/98dracut-systemd/dracut-cmdline-ask.sh | 4 ++++
|
|
2 files changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/modules.d/98dracut-systemd/dracut-cmdline-ask.service b/modules.d/98dracut-systemd/dracut-cmdline-ask.service
|
|
index 9a34b355..8bc7d809 100644
|
|
--- a/modules.d/98dracut-systemd/dracut-cmdline-ask.service
|
|
+++ b/modules.d/98dracut-systemd/dracut-cmdline-ask.service
|
|
@@ -14,7 +14,8 @@ Before=dracut-cmdline.service
|
|
After=systemd-journald.socket
|
|
Wants=systemd-journald.socket
|
|
ConditionPathExists=/usr/lib/initrd-release
|
|
-ConditionKernelCommandLine=rd.cmdline=ask
|
|
+ConditionKernelCommandLine=|rd.cmdline=ask
|
|
+ConditionPathExistsGlob=|/etc/cmdline.d/*.conf
|
|
|
|
[Service]
|
|
Environment=DRACUT_SYSTEMD=1
|
|
diff --git a/modules.d/98dracut-systemd/dracut-cmdline-ask.sh b/modules.d/98dracut-systemd/dracut-cmdline-ask.sh
|
|
index ab8933ad..f410f464 100755
|
|
--- a/modules.d/98dracut-systemd/dracut-cmdline-ask.sh
|
|
+++ b/modules.d/98dracut-systemd/dracut-cmdline-ask.sh
|
|
@@ -1,5 +1,9 @@
|
|
#!/bin/bash
|
|
|
|
+type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
|
|
+
|
|
+getarg "rd.cmdline=ask" || exit 0
|
|
+
|
|
sleep 0.5
|
|
echo
|
|
sleep 0.5
|
|
--
|
|
2.12.3
|
|
|