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

Bug#335801: marked as done (initramfs-tools: uses non-existant stat (patch attached))

Your message dated Wed, 26 Oct 2005 01:17:05 -0700
with message-id <E1EUgT3-0002IY-00@spohr.debian.org>
and subject line Bug#335801: fixed in initramfs-tools 0.37
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at submit) by bugs.debian.org; 25 Oct 2005 22:02:57 +0000
>From adrian@smop.co.uk Tue Oct 25 15:02:57 2005
Return-path: <adrian@smop.co.uk>
Received: from 81-5-177-201.dsl.eclipse.net.uk (hades.smop.co.uk) [] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EUWsj-0003fi-00; Tue, 25 Oct 2005 15:02:57 -0700
Received: from wyvern.smop.co.uk ([])
	by hades.smop.co.uk with esmtp (Exim 4.52)
	id 1EUWsh-0002as-Rl
	for submit@bugs.debian.org; Tue, 25 Oct 2005 23:02:55 +0100
Received: from adrian by wyvern.smop.co.uk with local (Exim 3.36 #1 (Debian))
	id 1EUWs4-0006RZ-00
	for <submit@bugs.debian.org>; Tue, 25 Oct 2005 23:02:16 +0100
Date: Tue, 25 Oct 2005 23:02:16 +0100
To: submit@bugs.debian.org
Subject: initramfs-tools: uses non-existant stat (patch attached)
Message-ID: <[🔎] 20051025220216.GA22980@wyvern.smop.co.uk>
Reply-To: adrian@smop.co.uk
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="3MwIy2ne0vdjdPXF"
Content-Disposition: inline
User-Agent: Mutt/1.5.11
From: Adrian Bridgett <adrian@smop.co.uk>
X-smop.co.uk-MailScanner: Found to be clean
X-smop.co.uk-MailScanner-SpamCheck: not spam, SpamAssassin (score=-2.599,
	required 5, autolearn=not spam, BAYES_00 -2.60)
X-smop.co.uk-MailScanner-From: adrian@smop.co.uk
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: initramfs-tools
Version: 0.32

scripts/functions (load_modules) scripts/local-premount/suspend both
use "stat" which isn't provided by busybox (1.01-3) or klibc (1.1.1-2).

Alternatively the use of stat could be replaced by awk (patches

Unfortunately if you have /sys/power/resume then this buglet means
that the initramfs writes "0x:0x" to /sys/power/resume which hangs the
boot :-(


Email: adrian@smop.co.uk  -*-  GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution   -*-  www.debian.org
Avoid working with children, animals and Microsoft "operating" systems

Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="suspend.patch"

--- suspend.orig	2005-10-25 22:25:30.000000000 +0100
+++ suspend	2005-10-25 22:24:03.000000000 +0100
@@ -24,7 +24,7 @@
 if [ -e /sys/power/resume ]; then
-	major=$((0x$(stat -c%t ${resume})))
-	minor=$((0x$(stat -c%T ${resume})))
-	echo ${major}:${minor} >/sys/power/resume
+	major_minor=$(ls -l ${resume} | \
+	  awk '{printf "0x%x:0x%x", $5, $6}')
+	echo $major_minor >/sys/power/resume

Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="functions.patch"

--- functions.orig	2005-10-25 21:11:18.000000000 +0100
+++ functions	2005-10-25 22:22:36.000000000 +0100
@@ -227,9 +227,9 @@
 	if [ -e /sys/power/resume ]; then
 		if [ -e "${resume}" ]; then
-			major=$((0x$(stat -c%t ${resume})))
-			minor=$((0x$(stat -c%T ${resume})))
-			echo ${major}:${minor} >/sys/power/resume
+			major_minor=$(ls -l ${resume} | \
+			  awk '{printf "0x%x:0x%x", $5, $6}')
+			echo $major_minor >/sys/power/resume


Received: (at 335801-close) by bugs.debian.org; 26 Oct 2005 08:17:40 +0000
>From katie@spohr.debian.org Wed Oct 26 01:17:40 2005
Return-path: <katie@spohr.debian.org>
Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian))
	id 1EUgT3-0002IY-00; Wed, 26 Oct 2005 01:17:05 -0700
From: maximilian attems <maks@sternwelten.at>
To: 335801-close@bugs.debian.org
X-Katie: $Revision: 1.56 $
Subject: Bug#335801: fixed in initramfs-tools 0.37
Message-Id: <E1EUgT3-0002IY-00@spohr.debian.org>
Sender: Archive Administrator <katie@spohr.debian.org>
Date: Wed, 26 Oct 2005 01:17:05 -0700
Delivered-To: 335801-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: initramfs-tools
Source-Version: 0.37

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:

  to pool/main/i/initramfs-tools/initramfs-tools_0.37.dsc
  to pool/main/i/initramfs-tools/initramfs-tools_0.37.tar.gz
  to pool/main/i/initramfs-tools/initramfs-tools_0.37_all.deb

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 335801@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
maximilian attems <maks@sternwelten.at> (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)

Hash: SHA1

Format: 1.7
Date: Wed, 26 Oct 2005 09:22:58 +0200
Source: initramfs-tools
Binary: initramfs-tools
Architecture: source all
Version: 0.37
Distribution: unstable
Urgency: low
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Changed-By: maximilian attems <maks@sternwelten.at>
 initramfs-tools - tools for generating an initramfs
Closes: 335505 335801
 initramfs-tools (0.37) unstable; urgency=low
   * scripts/functions, scripts/local-premount/suspend: Use of "stat"
     which isn' any more provided by busybox (1.01-3).
     Thanks to Adrian Bridgett <adrian@smop.co.uk> for the patch using awk.
     (Closes: #335801)
   * hooks/kernelextras: Check for existence of ${MODULESDIR}/initrd/:
     Exit if it doesn't exist before including current dir.
     Thanks to Jean Charles Delepine <delepine@nnx.com> (Closes: #335505)
   * hooks/lvm, hooks/md: Remove FIXME's at second thought.  You better want
     to check against the binaries for your not yet created raid/lvm.
 46b7ba3b3ed766dea1624050280902cc 629 utils optional initramfs-tools_0.37.dsc
 79e5f2a658c6399c3c5c338283d9d019 24642 utils optional initramfs-tools_0.37.tar.gz
 5a08fd3c9cb754de5e9bf298eac50e89 28904 utils optional initramfs-tools_0.37_all.deb

Version: GnuPG v1.4.2 (GNU/Linux)


Reply to: