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

Bug#298120: marked as done (allow per-version scripts)



Your message dated Mon, 05 May 2008 10:23:24 +0200
with message-id <1209975804.551774.28669.nullmailer@xanadu.blop.info>
and subject line initrd-tools has been removed from Debian, closing #298120
has caused the Debian Bug report #298120,
regarding allow per-version scripts
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.)


-- 
298120: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=298120
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: initrd-tools
Version: 0.1.77
Severity: wishlist
Tags: patch

I just packaged kernel-patch-suspend2, which uses
/etc/mkinitrd/scripts. The problem is that any script in that
directory are run for all kernel versions, even if not applicable.

My suggestion is to use the same approach as kernel-package and to
allow scripts to be installed into /etc/mkinitrd/scripts/$VERSION,
which is processed after /etc/mkinitrd/scripts. The following patch
enables this:

Thanks,

--- /usr/sbin/mkinitrd.orig 2005-03-04 22:08:34.481568162 +0100
+++ /usr/sbin/mkinitrd  2005-03-04 22:10:35.417079261 +0100
@@ -1244,8 +1244,15 @@
    INITRDDIR=$dir/initrd MODULEDIR=$MODULEDIR VERSION=$VERSION \
      run-parts $SHARE/scripts
  fi
+
  INITRDDIR=$dir/initrd MODULEDIR=$MODULEDIR VERSION=$VERSION \
    run-parts "$CONFDIR"/scripts
+
+ if [ -d $CONFDIR/scripts/$VERSION ]; then
+   INITRDDIR=$dir/initrd MODULEDIR=$MODULEDIR VERSION=$VERSION \
+     run-parts "$CONFDIR"/scripts/$VERSION
+ fi
+
 }
 
 ORIGDIR=`pwd`


-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.10-9-amd64-k8
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages initrd-tools depends on:
ii  coreutils [fileutils]         5.2.1-2    The GNU core utilities
ii  cpio                          2.5-1.2    GNU cpio -- a program to manage ar
ii  cramfsprogs                   1.1-6      Tools for CramFs (Compressed ROM F
ii  dash                          0.5.2-2    The Debian Almquist Shell
ii  util-linux                    2.12p-3    Miscellaneous system utilities

-- no debconf information

-- 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Version: 0.1.84.2+rm

The initrd-tools package has been removed from Debian testing, unstable and
experimental, so I am now closing the bugs that were still opened
against it.

For more information about this package's removal, read
http://bugs.debian.org/393092 . That bug might give the reasons why
this package was removed, and suggestions of possible replacements.

Don't hesitate to reply to this mail if you have any question.

Thank you for your contribution to Debian.
-- 
Lucas


--- End Message ---

Reply to: