Debian Bug report logs - #544901
live-initramfs: noprompt boot parameter is ignored for usb flash drives

version graph

Package: live-initramfs; Maintainer for live-initramfs is Debian Live Project <debian-live@lists.debian.org>;

Reported by: intrigeri@boum.org

Date: Thu, 3 Sep 2009 16:42:02 UTC

Severity: normal

Tags: patch

Fixed in version 1.157.4-1

Done: Daniel Baumann <daniel@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Live <debian-live@lists.debian.org>:
Bug#544901; Package live-initramfs. (Thu, 03 Sep 2009 16:42:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to intrigeri@boum.org:
New Bug report received and forwarded. Copy sent to Debian Live <debian-live@lists.debian.org>. (Thu, 03 Sep 2009 16:42:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: intrigeri@boum.org
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: live-initramfs: noprompt boot parameter is ignored for usb flash drives
Date: Thu, 03 Sep 2009 18:33:28 +0200
[Message part 1 (text/plain, inline)]
Package: live-initramfs
Severity: normal

Hi,

the init script does not take noprompt into account when running from
a USB flash drive: it still asks the user to remove the flash drive
before halting/rebooting.

(OT: this is especially annoying when using splashy, as the prompt is
hidden behind the splash screen and the user waits forever; I guess
I should try usplash, but well...)

The attached patch against current Git changes this behavior to what
should, IMHO, happen. I also updated the documentation.

-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (900, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-vserver-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/dash

--
  intrigeri <intrigeri@boum.org>
  | GnuPG key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc
  | OTR fingerprint @ https://gaffer.ptitcanardnoir.org/intrigeri/otr-fingerprint.asc
  | If you must label the absolute, use it's proper name: Temporary.

[0001-take-noprompt-into-account-for-USB-flash-drives-as-w.patch (text/x-diff, inline)]
From 3c2bfbc571bb91fe8b02b6355515138fa0b755f1 Mon Sep 17 00:00:00 2001
From: intrigeri <intrigeri@boum.org>
Date: Thu, 3 Sep 2009 18:22:50 +0200
Subject: [PATCH] take noprompt into account for USB flash drives as well

Signed-off-by: intrigeri <intrigeri@boum.org>
---
 debian/live-initramfs.init       |    3 ++-
 manpages/live-initramfs.en.7.txt |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/live-initramfs.init b/debian/live-initramfs.init
index 07f707c..320e02e 100644
--- a/debian/live-initramfs.init
+++ b/debian/live-initramfs.init
@@ -156,9 +156,10 @@ do_stop ()
 				eject -p -m /live/image >/dev/null 2>&1
 			fi
 
-			[ "$prompt" ] || return 0
 		fi
 
+		[ "$prompt" ] || return 0
+
 		stty sane < /dev/console
 
 		printf "\n\n${MESSAGE} and press ENTER to continue:" > /dev/console
diff --git a/manpages/live-initramfs.en.7.txt b/manpages/live-initramfs.en.7.txt
index b7ffa11..2439a85 100644
--- a/manpages/live-initramfs.en.7.txt
+++ b/manpages/live-initramfs.en.7.txt
@@ -190,7 +190,7 @@ been installed with persistent enabled.
 
   noprompt
 
-Do not prompt to eject the CD on reboot.
+Do not prompt to eject the CD or remove the USB flash drive on reboot.
 
   nosudo::
 
-- 
1.6.3.3


Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live <debian-live@lists.debian.org>:
Bug#544901; Package live-initramfs. (Mon, 19 Oct 2009 16:03:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to intrigeri <intrigeri@boum.org>:
Extra info received and forwarded to list. Copy sent to Debian Live <debian-live@lists.debian.org>. (Mon, 19 Oct 2009 16:03:07 GMT) Full text and rfc822 format available.

Message #10 received at 544901@bugs.debian.org (full text, mbox):

From: intrigeri <intrigeri@boum.org>
To: 544901@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: Bug#544901: live-initramfs: noprompt boot parameter is ignored for usb flash drives
Date: Sat, 17 Oct 2009 10:50:02 +0200
tags 544901 + patch
thanks

Hi,

intrigeri@boum.org wrote (03 Sep 2009 16:33:28 GMT) :
> The attached patch against current Git changes this behavior to what
> should, IMHO, happen. I also updated the documentation.

FWIW, this patch lives in the bugs/noprompt branch of this Git repository:

    git://git.immerda.ch/amnesia_live-initramfs.git

The Gitweb is there:

    http://git.immerda.ch/?p=amnesia_live-initramfs.git

Bye,
-- 
  intrigeri <intrigeri@boum.org>
  | GnuPG key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc
  | OTR fingerprint @ https://gaffer.ptitcanardnoir.org/intrigeri/otr-fingerprint.asc
  | Did you exchange a walk on part in the war
  | for a lead role in the cage?




Added tag(s) patch. Request was from intrigeri <intrigeri@boum.org> to control@bugs.debian.org. (Mon, 19 Oct 2009 16:03:10 GMT) Full text and rfc822 format available.

Reply sent to daniel@debian.org:
You have taken responsibility. (Thu, 29 Oct 2009 07:37:29 GMT) Full text and rfc822 format available.

Notification sent to intrigeri@boum.org:
Bug acknowledged by developer. (Thu, 29 Oct 2009 07:37:29 GMT) Full text and rfc822 format available.

Message #17 received at 544901-done@bugs.debian.org (full text, mbox):

From: Daniel Baumann <daniel@debian.org>
To: 544901-done@bugs.debian.org
Subject: Re: live-initramfs: noprompt boot parameter is ignored for usb flash drives
Date: Wed, 28 Oct 2009 20:33:08 +0100
Version: 1.157.4-1

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann@panthera-systems.net
Internet:       http://people.panthera-systems.net/~daniel-baumann/




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 27 Nov 2009 07:26:20 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 12:14:22 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.