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

Bug#753059: flash-kernel: Change introduced in #721485 breaks automated package installation



Package: flash-kernel
Version: 3.19
Severity: important

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

Bootstrapping embedded system with multistrap.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true are set so that packages are installed automatically (without user input).

   * What was the outcome of this action?

flash-kernel stops the installation becuase it is waiting for user input.

   * What outcome did you expect instead?

flash-kernel package should install without user input

   * Additional info:

breaking change is git commit a0a4261de83c90c9b7ffeb27d390e90019620a6a

   * Patch:

>From 5c7fbb6b9e616c8aca47bcf7554cb91407e11e30 Mon Sep 17 00:00:00 2001
From: David Lechner <david@lechnology.com>
Date: Sat, 28 Jun 2014 15:06:20 -0500
Subject: [PATCH] Fix breakage caused by a0a4261

---
 initramfs-tools/hooks/flash_kernel_set_root | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/initramfs-tools/hooks/flash_kernel_set_root b/initramfs-tools/hooks/flash_kernel_set_root
index f157731..799112c 100755
--- a/initramfs-tools/hooks/flash_kernel_set_root
+++ b/initramfs-tools/hooks/flash_kernel_set_root
@@ -34,7 +34,7 @@ pause_error() {
        # If debconf appears to be running then it is important that
        # we do not block on stdin since this would hang the
        # installer.
-       if [ "$DEBIAN_HAS_FRONTEND" ]; then
+       if [ "$DEBIAN_HAS_FRONTEND" ] || [ "$DEBIAN_FRONTEND" = "noninteractive" ]; then
                echo "Unable to abort; system will probably be broken!" >&2
        else
                echo "Press Ctrl-C to abort build, or Enter to continue" >&2
-- 
1.8.3.2



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: armel (armv7l)

Kernel: Linux 2.6.32 (SMP w/6 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages flash-kernel depends on:
ii  devio            1.2-1+b1
ii  initramfs-tools  0.115
ii  linux-base       3.5

flash-kernel recommends no packages.

Versions of packages flash-kernel suggests:
ii  u-boot-tools  2014.04+dfsg1-1

-- no debconf information


Reply to: