Bug#804247: Please update initramfs in postinst

2015-11-06 Thread Felix Zielcke
Please make a NMU. 
I won't be able to do an upload soon

Am 6. November 2015 15:07:06 MEZ, schrieb Steve McIntyre :
>Package: reiserfsprogs
>Version: 1:3.6.24-1
>Severity: important
>Tags: d-i
>
>Hi!
>
>Since the move to systemd as the default init system, the initramfs
>will attempt to fsck and mount both / and /usr (where applicable). To
>aid this, initramfs-tools will copy necessary filesystem tools into
>the initramfs when it is generated.
>
>To make this work well, all filesystem tools packages for filesystems
>that are likely to be used for / and/or /usr should call
>"update-initramfs -u" in their postinst. This will
>
> (a) ensure that necesssary fsck tools are included in the initramfs
> generated by debian-installer (see #801961 for an example failure
> here); and
> (b) ensure that bug fixes to fsck tools get included immediately in
> the initramfs
>
>I've checked your package and I don't see any update-initramfs
>calls. Please add one, if you consider reiserfs to be a
>likely/sensible option as a base (/ or /usr) filesystem. If you'd like
>help doing that postinst work, I can supply a patch - just ask!
>
>And yes - I've seen that you've recently added an initramfs hook for
>reiserfsprogs but AFAICS that won't necessarily get called unless you
>excplicitly run the update-initramfs command yourself.
>
>-- System Information:
>Debian Release: 8.2
>  APT prefers stable
>  APT policy: (500, 'stable')
>Architecture: amd64 (x86_64)
>Foreign Architectures: i386
>
>Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
>Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
>Shell: /bin/sh linked to /bin/dash
>Init: systemd (via /run/systemd/system)
>
>Versions of packages reiserfsprogs depends on:
>ii  libc6 2.19-18+deb8u1
>ii  libuuid1  2.25.2-6
>
>reiserfsprogs recommends no packages.
>
>reiserfsprogs suggests no packages.
>
>-- no debconf information



Bug#804247: Please update initramfs in postinst

2015-11-06 Thread Steve McIntyre
On Fri, Nov 06, 2015 at 03:23:48PM +0100, Felix Zielcke wrote:
>Please make a NMU. 
>I won't be able to do an upload soon

ACK, in Incoming now. Here's the debdiff

-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
  Mature Sporty Personal
  More Innovation More Adult
  A Man in Dandism
  Powered Midship Specialty
diff -Nru reiserfsprogs-3.6.24/debian/changelog 
reiserfsprogs-3.6.24/debian/changelog
--- reiserfsprogs-3.6.24/debian/changelog   2015-08-16 14:50:46.0 
+
+++ reiserfsprogs-3.6.24/debian/changelog   2015-11-06 16:25:12.0 
+
@@ -1,3 +1,11 @@
+reiserfsprogs (1:3.6.24-3.1) unstable; urgency=medium
+
+  * NMU
+  * Add a postinst to update the initramfs on install/upgrade.
+(Closes: #804247)
+
+ -- Steve McIntyre <93...@debian.org>  Fri, 06 Nov 2015 16:25:42 +
+
 reiserfsprogs (1:3.6.24-3) unstable; urgency=medium
 
   * Add hook script to copy /sbin/reiserfsck into initramfs.
diff -Nru reiserfsprogs-3.6.24/debian/reiserfsprogs.postinst 
reiserfsprogs-3.6.24/debian/reiserfsprogs.postinst
--- reiserfsprogs-3.6.24/debian/reiserfsprogs.postinst  1970-01-01 
00:00:00.0 +
+++ reiserfsprogs-3.6.24/debian/reiserfsprogs.postinst  2015-11-06 
16:26:18.0 +
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+   configure)
+   if [ -x /usr/sbin/update-initramfs ] && [ -e 
/etc/initramfs-tools/initramfs.conf ]
+   then
+   update-initramfs -u
+   fi
+   ;;
+
+   abort-upgrade|abort-remove|abort-deconfigure)
+
+   ;;
+
+   *)
+   echo "postinst called with unknown argument \`${1}'" >&2
+   exit 1
+   ;;
+esac
+
+#DEBHELPER#
+
+exit 0


Bug#804247: Please update initramfs in postinst

2015-11-06 Thread Steve McIntyre
Package: reiserfsprogs
Version: 1:3.6.24-1
Severity: important
Tags: d-i

Hi!

Since the move to systemd as the default init system, the initramfs
will attempt to fsck and mount both / and /usr (where applicable). To
aid this, initramfs-tools will copy necessary filesystem tools into
the initramfs when it is generated.

To make this work well, all filesystem tools packages for filesystems
that are likely to be used for / and/or /usr should call
"update-initramfs -u" in their postinst. This will

 (a) ensure that necesssary fsck tools are included in the initramfs
 generated by debian-installer (see #801961 for an example failure
 here); and
 (b) ensure that bug fixes to fsck tools get included immediately in
 the initramfs

I've checked your package and I don't see any update-initramfs
calls. Please add one, if you consider reiserfs to be a
likely/sensible option as a base (/ or /usr) filesystem. If you'd like
help doing that postinst work, I can supply a patch - just ask!

And yes - I've seen that you've recently added an initramfs hook for
reiserfsprogs but AFAICS that won't necessarily get called unless you
excplicitly run the update-initramfs command yourself.

-- System Information:
Debian Release: 8.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages reiserfsprogs depends on:
ii  libc6 2.19-18+deb8u1
ii  libuuid1  2.25.2-6

reiserfsprogs recommends no packages.

reiserfsprogs suggests no packages.

-- no debconf information