--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: initramfs-tools: Ask if we should update all initramfses
- From: "Tim Dijkstra \(tdykstra\)" <tim@famdijkstra.org>
- Date: Fri, 18 May 2007 19:32:45 +0200
- Message-id: <20070518173245.7461.61911.reportbug@commensaal.drs.p>
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 <jbailey@ubuntu.com>, maximilian attems <maks@debian.org>, David Härdeman <david@hardeman.nu>
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 <tim@famdijkstra.org>
+#
+# 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@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: debian-kernel@lists.debian.org\n"
+"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@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\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 ""
--- End Message ---
--- Begin Message ---
Source: initramfs-tools
Source-Version: 0.90
We believe that the bug you reported is fixed in the latest version of
initramfs-tools, which is due to be installed in the Debian FTP archive:
initramfs-tools_0.90.dsc
to pool/main/i/initramfs-tools/initramfs-tools_0.90.dsc
initramfs-tools_0.90.tar.gz
to pool/main/i/initramfs-tools/initramfs-tools_0.90.tar.gz
initramfs-tools_0.90_all.deb
to pool/main/i/initramfs-tools/initramfs-tools_0.90_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 425050@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
maximilian attems <maks@debian.org> (supplier of updated initramfs-tools package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Thu, 09 Aug 2007 21:30:29 +0200
Source: initramfs-tools
Binary: initramfs-tools
Architecture: source all
Version: 0.90
Distribution: unstable
Urgency: low
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Changed-By: maximilian attems <maks@debian.org>
Description:
initramfs-tools - tools for generating an initramfs
Closes: 420754 425050 426446 426917 428729 429237 433190 433459 435031 436752
Changes:
initramfs-tools (0.90) unstable; urgency=low
.
Release "J'aim' pas le fataliste Je n'ai ni foi ni loi"
.
[ maximilian attems ]
* hook-functions: Fix xen i386 boots with optimized 2.5. (closes: 420754)
Thanks Marco Nenciarini <mnencia@debian.org> for patch.
* debian/control: Bump dep on klibc-utils from etch. (closes: 435031)
* scripts/functions: Implement non-zero panic bootarg. Style fix for
maybe_break().
* hook-functions: dep_add_modules() fix for md, lv, luks root.
(closes: #426917, #429237, #426446)
* debian/scripts: Add /etc/crypttab to reportbug script. Add /sys/block
list for MODULES=dep to reportbug script.
* scripts/functions: Add error message on verbose mode about ignored files
in boot/hooks dir. Thanks Kornilios Kourtis <kkourt@cslab.ece.ntua.gr>
for the initial patch. Fixes a double set_initlist call too. Ignore empty
dirs earlier too. (closes: #428729, #433459)
* mkinitramfs.8: Document verbose mode.
* debian/initramfs-tools.preinst: Inhibit /etc/initramfs-tools/conf.d/resume
creation in chroot for debian-live and other. (closes: #433190)
Thanks Kel Modderman <kel@otaku42.de> for the patch.
* update-initramfs: Improve "altered" error message. (closes: #436752)
* update-initramfs, update-initramfs.conf: update_initramfs config variable
is tristate. Set to 'all' to update any initramfs: $(update-initramfs -u).
Allows specific admin setting. (closes: #425050)
.
[ David Härdeman ]
* hook-functions: Protect all variable with local, plus coding style fixes.
Files:
fcea65851e626dc6c1c3a3da43172bf1 656 utils optional initramfs-tools_0.90.dsc
9e6e6d34c5fd676a8ee3fe3fdb975744 60995 utils optional initramfs-tools_0.90.tar.gz
f93b1c026cfeefe9d48e866eb89bc444 68036 utils optional initramfs-tools_0.90_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGu2uVeW7Lc5tEHqgRAs1JAJ9ca9d+JDQMnbRbUKpv4MwrmjGjYwCghDUI
FhqmhhKdKsIkxIQApJYjPno=
=Mq50
-----END PGP SIGNATURE-----
--- End Message ---