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

Bug#504551: marked as done (initramfs-tools: please add support for upstream kernel's "make deb-pkg")



Your message dated Wed, 18 Feb 2009 18:47:02 +0000
with message-id <E1LZrRm-0007uK-L4@ries.debian.org>
and subject line Bug#504551: fixed in initramfs-tools 0.93
has caused the Debian Bug report #504551,
regarding initramfs-tools: please add support for upstream kernel's "make deb-pkg"
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
504551: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504551
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: initramfs-tools
Version: 0.92l
Severity: wishlist

Hi,

This was already included in an initramfs-tools release, but was the reverted
(due to #499270).  This patch should enable it with a workaround that allows
the two postinst schemes to coexist without conflict.  Please consider
including it.



>From d86b9926cba57a91abb7096c5f467d41cbfb4ebc Mon Sep 17 00:00:00 2001
From: Andres Salomon <dilinger@debian.org>
Date: Tue, 14 Oct 2008 15:02:17 -0400
Subject: [PATCH] add support for linux-2.6's deb-pkg

..via /etc/kernel

Signed-off-by: Andres Salomon <dilinger@debian.org>
---
 debian/changelog                  |    1 +
 debian/initramfs-tools.install    |    1 +
 debian/rules                      |    2 +-
 kernel/postinst.d/initramfs-tools |   10 ++++++++++
 kernel/postrm.d/initramfs-tools   |   10 ++++++++++
 5 files changed, 23 insertions(+), 1 deletions(-)
 create mode 100755 kernel/postinst.d/initramfs-tools
 create mode 100755 kernel/postrm.d/initramfs-tools

diff --git a/debian/changelog b/debian/changelog
index de7f8f5..babb190 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ initramfs-tools (0.92l.1) unstable; urgency=high
 
   * NMU
   * include mtd/jffs2/ubifs modules when 'most' is selected.
+  * add support for linux-2.6's deb-pkg (via /etc/kernel).
 
  -- Andres Salomon <dilinger@debian.org>  Tue, 14 Oct 2008 14:16:50 -0400
 
diff --git a/debian/initramfs-tools.install b/debian/initramfs-tools.install
index fb1c088..71670ef 100644
--- a/debian/initramfs-tools.install
+++ b/debian/initramfs-tools.install
@@ -10,3 +10,4 @@ conf/modules		usr/share/initramfs-tools
 update-initramfs	usr/sbin
 debian/script		usr/share/bug/initramfs-tools
 debian/lintian/initramfs-tools	usr/share/lintian/overrides
+kernel			etc
diff --git a/debian/rules b/debian/rules
index 2a5ae55..1376aa9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,6 @@ include /usr/share/cdbs/1/rules/debhelper.mk
 pre-build::
 	chmod +x init mkinitramfs
 	chmod +x hooks/*
-	for x in `find scripts/ -maxdepth 1 -type d | tail -n+2`; do \
+	for x in `find scripts/ kernel/ -maxdepth 1 -type d | tail -n+2`; do \
 	  chmod -R +x $$x; \
 	done
diff --git a/kernel/postinst.d/initramfs-tools b/kernel/postinst.d/initramfs-tools
new file mode 100755
index 0000000..423373c
--- /dev/null
+++ b/kernel/postinst.d/initramfs-tools
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# passing the kernel version is required
+[ -z "$1" ] && exit 0
+
+# kernel-package passes an extra arg; hack to not run under kernel-package
+[ -z "$2" ] || exit 0
+
+# we're good - create initramfs.  update runs do_bootloader
+update-initramfs -t -u -k "$1"
diff --git a/kernel/postrm.d/initramfs-tools b/kernel/postrm.d/initramfs-tools
new file mode 100755
index 0000000..278a6fc
--- /dev/null
+++ b/kernel/postrm.d/initramfs-tools
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# passing the kernel version is required
+[ -z "$1" ] && exit 0
+
+# kernel-package passes an extra arg; hack to not run under kernel-package
+[ -z "$2" ] || exit 0
+
+# delete initramfs
+update-initramfs -d -k "$1"
-- 
1.5.6.5


--- End Message ---
--- Begin Message ---
Source: initramfs-tools
Source-Version: 0.93

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.93.dsc
  to pool/main/i/initramfs-tools/initramfs-tools_0.93.dsc
initramfs-tools_0.93.tar.gz
  to pool/main/i/initramfs-tools/initramfs-tools_0.93.tar.gz
initramfs-tools_0.93_all.deb
  to pool/main/i/initramfs-tools/initramfs-tools_0.93_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 504551@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.8
Date: Wed, 18 Feb 2009 19:10:23 +0100
Source: initramfs-tools
Binary: initramfs-tools
Architecture: source all
Version: 0.93
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: 472409 488804 489008 497133 504551 509637 511514 512453 513958 514938 514997 515866
Changes: 
 initramfs-tools (0.93) unstable; urgency=low
 .
   Release "Fischia il vento e infuria la bufera"
 .
   [ maximilian attems ]
   * manpages: Set Linux as necessary OS.
   * initramfs-tools.8: Fix path of debug log - now kept after boot.
     (closes: #488804)
   * mkinitramfs: Use cp with correct DESTDIR instead of copy_exec for configs.
     Fixes relative pathes for -d option. (closes: #472409)
   * initramfs-tools.8: Document default 180s rootdelay.
   * update-initramfs: Fix run_bootloader() to check for grub2.
     (closes: #511514)
   * control: Add ${misc:Depends} depends.
   * nuke old lvm hook scripts.
   * mkinitramfs-kpkg: deprecate it's usage.
   * hook-functions: just ship old iee1394 if around.
   * mkinitramfs: Post-Lenny cleanup.
   * udevhelper: nuke as need for partial upgrades between etch/lenny.
   * mkinitramfs: Fix new pipe construct to really work inside
     "${DESTDIR}".
   * thermal boot script: Don't load thermal+fan on acpi=off. (closes: #514997)
   * MODULES=dep fix for minor partitions > 9. (closes: #513958)
   * initramfs-tools.8: Document mkinitramfs and init env variables.
     (closes: #512453)
   * init: Fix boot with LABEL containting one or several '/'. Thanks to
     Andres Salomon <dilinger@debian.org> for testing. (closes: #489008)
   * scripts/local-premount/resume: Fix resume with LABEL containing '/'.
 .
   [ e2xbegqsdyt21hfc ]
   * update-initramfs.8: mentions the specific conf file.
 .
   [ Kel Modderman ]
   * init: variable `break' unset before `maybe_break init' is evaluated.
     (closes: #509637)
 .
   [ Kees Cook ]
   * minitramfs: find/cpio exit codes ignored while building initramfs.
     (closes: #514938)
   * mkinitramfs: Do not pass exit code through on pipe failure.
 .
   [ Luke Yelavich ]
   * hook-functions: Add hid_* modules, since some keyboards will not be
     usable at the initramfs/busybox prompt without them. (closes: #515866)
 .
   [ Andres Salomon ]
   * allow root=mtd0 to be used; skip root checks if ROOT doesn't start
     with /dev. (closes: #497133)
   * initramfs-tools: Readd support for linux-2.6 make deb-pkg target.
     (closes: #504551)
 .
   [ Ian Campbell ]
   * MODULES=dep fix for Xen virtual block devices.
Checksums-Sha1: 
 925f6476bf08b48217cc3c324afe85954faae3a4 1000 initramfs-tools_0.93.dsc
 0de5f75283c42dd78dd172c93ce59b23e70b2f4f 78812 initramfs-tools_0.93.tar.gz
 755265561a524e699af71b3036c5b7071deed7b8 74342 initramfs-tools_0.93_all.deb
Checksums-Sha256: 
 5fad42a4d13f9eaaddd7e4b2d799245719daa4d13b749c2fc10ff63b666c6ffa 1000 initramfs-tools_0.93.dsc
 1d56acc8dd64504d1e383a9e671179979369624323814ea691bceaa3560e0ec7 78812 initramfs-tools_0.93.tar.gz
 333353a71b38314ddc65f79f700f0e354cc6cc61fba847a10b6691d1557dc6da 74342 initramfs-tools_0.93_all.deb
Files: 
 d9d12917112fe7cd57bc25f8ab028ba2 1000 utils optional initramfs-tools_0.93.dsc
 97b6188728c9ecacd21e9b4f06a3e86a 78812 utils optional initramfs-tools_0.93.tar.gz
 a7c421c1377d361e50abd8e6a011eff3 74342 utils optional initramfs-tools_0.93_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkmcVW4ACgkQeW7Lc5tEHqhKGgCaArxtMs4E4Wh6BK1sISETj3m9
o4gAnRvc0POhky/NA3vMaEBD9V6pq0G9
=IGxF
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: