Package: initramfs-tools Version: 0.87b.1 Severity: normal Tags: patch
I created a patch to ask a debconf question (medium priority) if update-initramfs should update all initramfs or not. The idea is that other packages (like my uswsusp package) should check this question too. This way we can make both the people that want to keep old initramfses around and the people that want an up-to-date initramfs for several versions happy at the same time. grts Tim
diff -Nur initramfs-tools-0.87b/debian/control initramfs-tools-0.87b.1/debian/control --- initramfs-tools-0.87b/debian/control 2007-04-13 22:39:36.000000000 +0200 +++ initramfs-tools-0.87b.1/debian/control 2007-05-18 17:23:15.000000000 +0200 @@ -3,12 +3,12 @@ Priority: optional Uploaders: Jeff Bailey <[EMAIL PROTECTED]>, maximilian attems <[EMAIL PROTECTED]>, David Härdeman <[EMAIL PROTECTED]> Maintainer: Debian kernel team <debian-kernel@lists.debian.org> -Build-Depends: debhelper (>= 4.1.0), cdbs +Build-Depends: debhelper (>= 4.1.0), cdbs, po-debconf Standards-Version: 3.7.2.2 Package: initramfs-tools Architecture: all -Depends: klibc-utils (>= 1.4.19-2), busybox (>= 1:1.01-3) | busybox-initramfs, cpio, module-init-tools, udev (>= 0.086-1) +Depends: klibc-utils (>= 1.4.19-2), busybox (>= 1:1.01-3) | busybox-initramfs, cpio, module-init-tools, udev (>= 0.086-1), ${misc:Depends} Provides: linux-initramfs-tool Description: tools for generating an initramfs This package contains tools to create and boot an initramfs for packaged 2.6 diff -Nur initramfs-tools-0.87b/debian/initramfs-tools.config initramfs-tools-0.87b.1/debian/initramfs-tools.config --- initramfs-tools-0.87b/debian/initramfs-tools.config 1970-01-01 01:00:00.000000000 +0100 +++ initramfs-tools-0.87b.1/debian/initramfs-tools.config 2007-05-18 19:22:21.000000000 +0200 @@ -0,0 +1,13 @@ +#!/bin/sh -e +# +# initramfs-tools.config -- configure script for the initramfs-tools package +# +# Copyright 2007 Tim Dijkstra <[EMAIL PROTECTED]> +# +# Released to the public domain + +. /usr/share/debconf/confmodule + +db_input medium initramfs-tools/update_all_kernels || true + +db_go || true diff -Nur initramfs-tools-0.87b/debian/initramfs-tools.postinst initramfs-tools-0.87b.1/debian/initramfs-tools.postinst --- initramfs-tools-0.87b/debian/initramfs-tools.postinst 2007-04-06 23:32:57.000000000 +0200 +++ initramfs-tools-0.87b.1/debian/initramfs-tools.postinst 2007-05-18 19:09:34.000000000 +0200 @@ -2,13 +2,23 @@ set -e +. /usr/share/debconf/confmodule + if [ ! -e /etc/initramfs-tools/modules ]; then cp /usr/share/initramfs-tools/modules /etc/initramfs-tools/ fi + # Regenerate initramfs on upgrade if [ "$1" = "configure" ] && [ -n "$2" ]; then - update-initramfs -u + db_get initramfs-tools/update_all_kernels + if [ "$RET" = "true" ]; then + ALL_KERNELS=" -k all" + else + ALL_KERNELS= + fi + + update-initramfs -u $ALL_KERNELS fi #DEBHELPER# diff -Nur initramfs-tools-0.87b/debian/initramfs-tools.templates initramfs-tools-0.87b.1/debian/initramfs-tools.templates --- initramfs-tools-0.87b/debian/initramfs-tools.templates 1970-01-01 01:00:00.000000000 +0100 +++ initramfs-tools-0.87b.1/debian/initramfs-tools.templates 2007-05-18 17:16:51.000000000 +0200 @@ -0,0 +1,10 @@ +Template: initramfs-tools/update_all_kernels +Type: boolean +Default: false +_Description: Update initramfs for all kernels? + If a package that uses initramfs-tools to install files on your initramfs gets + installed or updated it will need to update the existing initramfses. By + default only the initramfs of the (alphabetically sorted) most current kernel + will get updated to leave you with a backup in case anything went wrong. This + has the drawback that booting older kernels can be have reduced functionality + or unfixed bugs. diff -Nur initramfs-tools-0.87b/debian/po/POTFILES.in initramfs-tools-0.87b.1/debian/po/POTFILES.in --- initramfs-tools-0.87b/debian/po/POTFILES.in 1970-01-01 01:00:00.000000000 +0100 +++ initramfs-tools-0.87b.1/debian/po/POTFILES.in 2007-05-18 17:38:41.000000000 +0200 @@ -0,0 +1 @@ +[type: gettext/rfc822deb] initramfs-tools.templates diff -Nur initramfs-tools-0.87b/debian/po/templates.pot initramfs-tools-0.87b.1/debian/po/templates.pot --- initramfs-tools-0.87b/debian/po/templates.pot 1970-01-01 01:00:00.000000000 +0100 +++ initramfs-tools-0.87b.1/debian/po/templates.pot 2007-05-18 17:38:42.000000000 +0200 @@ -0,0 +1,35 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <[EMAIL PROTECTED]>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: [EMAIL PROTECTED]" +"POT-Creation-Date: 2007-05-18 17:38+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <[EMAIL PROTECTED]>\n" +"Language-Team: LANGUAGE <[EMAIL PROTECTED]>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../initramfs-tools.templates:1001 +msgid "Update initramfs for all kernels?" +msgstr "" + +#. Type: boolean +#. Description +#: ../initramfs-tools.templates:1001 +msgid "" +"If a package that uses initramfs-tools to install files on your initramfs " +"gets installed or updated it will need to update the existing initramfses. " +"By default only the initramfs of the (alphabetically sorted) most current " +"kernel will get updated to leave you with a backup in case anything went " +"wrong. This has the drawback that booting older kernels can be have reduced " +"functionality or unfixed bugs." +msgstr ""