FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 05-14-2008, 01:38 PM
Luca Capello
 
Default Bug#481196: initramfs-tools: please document the behavior of 'break' when 'panic' is passed along with

Package: initramfs-tools
Version: 0.92a
Severity: wishlist
Tags: patch

Hello,

this bug originates after bug #478268 [1].

On Wed, 14 May 2008 11:23:00 +0200, David Härdeman wrote:
> initramfs will behave differently if the "panic" kernel option is set
> (initramfs will not spawn any shells in that case but reboot instead).

I couldn't understand why the "break" kernel option didn't work while I
was trying to debug a problem in cryptsetup [2] and indeed my kernel
cmdline contains a "panic=10" option as well. Removing the latter
allows "break" to work.

I've found the initramfs-tools.8 documentation a bit misleading, thus I
propose the following patch (if I understand correctly David's words):

--8<---------------cut here---------------start------------->8---
diff --git a/initramfs-tools.8 b/initramfs-tools.8
index 83884b7..fe64add 100644
--- a/initramfs-tools.8
+++ b/initramfs-tools.8
@@ -115,6 +115,8 @@ Use for example "debug=vc".
spawns a shell in the initramfs image at chosen run-time
(top, modules, premount, mount, bottom, init).
The default is premount without any arg.
+Please pay attention that when both "panic" and "break" are present,
+initramfs will not spawn any shells but reboot instead.


.SH HOOK SCRIPTS
--8<---------------cut here---------------end--------------->8---

Thx, bye,
Gismo / Luca

Footnotes:
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?archive=yes&bug=478268#27
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?archive=yes&bug=478268#15

-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initramfs-tools depends on:
ii cpio 2.9-13 GNU cpio -- a program to manage ar
ii findutils 4.4.0-2 utilities for finding files--find,
ii klibc-utils 1.5.9-2 small utilities built with klibc f
ii module-init-tools 3.4-1 tools for managing Linux kernel mo
ii udev 0.114-2 /dev/ and hotplug management daemo

Versions of packages initramfs-tools recommends:
ii busybox 1:1.9.2-3 Tiny utilities for small and embed

-- no debconf information
 

Thread Tools




All times are GMT. The time now is 08:41 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org