Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #946899

Bug#923165: initramfs: reboot in panic function does not work

From Michael Niewöhner <linux@mniewoehner.de>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#923165: initramfs: reboot in panic function does not work
Date 2019-02-24 17:40 +0100
Message-ID <xv4YP-71a-47@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


Package: initramfs-tools
Version: 0.133
Severity: normal
Tags: patch

The panic()-function in /scripts/function tries to reboot the system.
When this fails, a kernel panic is generated by exiting PID 1.

At least for me, the reboot always fails. AFAIK "reboot" would not work at all
because there is no reboot handler at this stage...

Patch:

--- a/scripts/functions
+++ b/scripts/functions
@@ -47,3 +47,3 @@ panic()
 		sleep "${panic}"
-		reboot
+		reboot -f
 		exit  # in case reboot fails, force kernel panic

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#923165: initramfs: reboot in panic function does not work Michael Niewöhner <linux@mniewoehner.de> - 2019-02-24 17:40 +0100

csiph-web