[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#602331: plymouth does not allow to enter maintenance shell



tag 602331 + patch
thanks

On Sat, 30 Aug 2014 23:27:47 +0200 Michael Prokop <mika@debian.org> wrote:
> Hi,

Hi,

> * Laurent Bigonville [Fri Aug 01, 2014 at 03:55:17PM +0200]:
>
> > An idea on how this could be fixed? In Ubuntu they have added a "panic"
> > hook to initramfs-tools that is being called in the "panic()" function.
> > Do you think it's the way to go here?
>
> > Otherwise I can also provide a patch for the same function to directly
> > call the needed plymouth command ("plymouth quit")
>
> I just took a look at Ubuntu's i-t and their try_failure_hooks
> function with features related to plymouth etc totally makes sense
> for me, I'd love to see that in Debian's i-t as well, so if anyone
> is willing to work on it you'd have my full support for that.

I think we could split that in two different issues, I've cloned this bug, see: #805155

The attached patch is calling the new "panic" scripts just before dropping to a shell, this can be then used by plymouth package to ensure the plymouth daemon is killed/the splash hidden

Cheers,

Laurent Bigonville


>From e666c9f267d73f5b3d434369d9efc5b7f9210e66 Mon Sep 17 00:00:00 2001
From: Laurent Bigonville <bigon@bigon.be>
Date: Sun, 15 Nov 2015 12:58:27 +0100
Subject: [PATCH] Run new panic scripts just before dropping to a shell

These panic scripts are run just before dropping to a shell, these can
be use for example to disable a splash screen.

Taken from Ubuntu

Closes: #602331
---
 debian/initramfs-tools.dirs | 1 +
 scripts/functions           | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/debian/initramfs-tools.dirs b/debian/initramfs-tools.dirs
index 0f63f2f..bcb978b 100644
--- a/debian/initramfs-tools.dirs
+++ b/debian/initramfs-tools.dirs
@@ -7,6 +7,7 @@ etc/initramfs-tools/scripts/local-top
 etc/initramfs-tools/scripts/nfs-bottom
 etc/initramfs-tools/scripts/nfs-premount
 etc/initramfs-tools/scripts/nfs-top
+etc/initramfs-tools/scripts/panic
 etc/initramfs-tools/hooks
 etc/initramfs-tools/conf.d
 usr/share/initramfs-tools/conf.d
diff --git a/scripts/functions b/scripts/functions
index a347264..33fddcf 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -53,6 +53,9 @@ panic()
 	modprobe -v uhci-hcd || true
 	modprobe -v ohci-hcd || true
 	modprobe -v usbhid || true
+
+	run_scripts /scripts/panic
+
 	REASON="$@" PS1='(initramfs) ' /bin/sh -i </dev/console >/dev/console 2>&1
 }
 
-- 
2.6.2


Reply to: