From: Laurent Bigonville <bi...@bigon.be> 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 Signed-off-by: Laurent Bigonville <bi...@bigon.be> --- debian/initramfs-tools-core.dirs | 1 + scripts/functions | 3 +++ 2 files changed, 4 insertions(+) diff --git a/debian/initramfs-tools-core.dirs b/debian/initramfs-tools-core.dirs index 0f63f2f..bcb978b 100644 --- a/debian/initramfs-tools-core.dirs +++ b/debian/initramfs-tools-core.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 8c1bb1f..b15b63d 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