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

Bug#838110: marked as done (live-tools: exclude initrd backup files)



Your message dated Thu, 07 Dec 2017 19:58:50 +0000
with message-id <E1eN2Jm-000ABy-HY@fasolo.debian.org>
and subject line Bug#838110: fixed in live-tools 1:20171207
has caused the Debian Bug report #838110,
regarding live-tools: exclude initrd backup files
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.)


-- 
838110: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838110
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: live-tools
Version: 1:20151214+nmu1
Severity: important
Tags: patch

On my Debian Live system update-initramfs fails with the following error message:

cp: cannot stat '/boot/vmlinuz-<my kernel version>.old-dkms': No such file or directory

Please find attached a patch that fixes this issue.

Cheers

Ronny

>From 1431278240b84651947cf56cc27c95177883c2bf Mon Sep 17 00:00:00 2001
From: Ronny Standtke <ronny.standtke@gmx.net>
Date: Sat, 17 Sep 2016 13:56:54 +0200
Subject: [PATCH] exclude initrd backup files

---
 bin/live-update-initramfs | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/bin/live-update-initramfs b/bin/live-update-initramfs
index 3cdbed3..9ae4b80 100755
--- a/bin/live-update-initramfs
+++ b/bin/live-update-initramfs
@@ -55,12 +55,11 @@ case "${_READ_WRITE}" in
 		# Updating initramfs
 		/usr/sbin/update-initramfs.orig.initramfs-tools "${@}"
 
-		# FIXME: needs to exclude initrd backup files
-		if [ "$(ls /boot/initrd.img-* | wc -l)" -gt 1 ]
+		if [ "$(ls /boot/initrd.img-* | grep -v old-dkms | wc -l)" -gt 1 ]
 		then
 			_NUMBER="1"
 
-			for _INITRD in /boot/initrd.img-*
+			for _INITRD in $(ls /boot/initrd.img-* | grep -v old-dkms)
 			do
 				_VERSION="$(basename ${_INITRD} | sed -e 's|initrd.img-||')"
 
-- 
2.1.4


--- End Message ---
--- Begin Message ---
Source: live-tools
Source-Version: 1:20171207

We believe that the bug you reported is fixed in the latest version of
live-tools, which is due to be installed in the Debian FTP archive.

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 838110@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Raphaël Hertzog <hertzog@debian.org> (supplier of updated live-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@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 07 Dec 2017 20:27:08 +0100
Source: live-tools
Binary: live-tools
Architecture: source
Version: 1:20171207
Distribution: unstable
Urgency: medium
Maintainer: Live Systems Maintainers <debian-live@lists.debian.org>
Changed-By: Raphaël Hertzog <hertzog@debian.org>
Description:
 live-tools - Live System Extra Components
Closes: 831830 838110 882769
Changes:
 live-tools (1:20171207) unstable; urgency=medium
 .
   * Improve update-initramfs wrapper to better handle unmatched
     kernels and initrd images. Closes: #882769
     The new logic also avoids copying initrd backup files. Closes: #838110
   * Fix live-medium-eject logic to identify the device to eject.
     Closes: #831830 Thanks to Steven Shiau <steven@nchc.org.tw> for the patch.
   * Add myself to Uploaders.
   * Switch to debhelper 10 and bump Standards-Version.
Checksums-Sha1:
 b18cbf87e3824dc673cf2d1c382d3e79500e650d 1415 live-tools_20171207.dsc
 d7508e9276361bfc9e247325f30b3c7848567649 35520 live-tools_20171207.tar.xz
 96a8800dd51cbde4fb393359ec747c0451f67621 5138 live-tools_20171207_source.buildinfo
Checksums-Sha256:
 fb90c2ace8d1681d105f6588359aa6bc49dc7ad0000474c1e052244881064ab6 1415 live-tools_20171207.dsc
 6c8e83c014061bcd42f19bd471c9e1c43d141313a8c3cfddecc762011ea2f17e 35520 live-tools_20171207.tar.xz
 d314704b8fbf3a4708097424764f8b3ab2e450ab2b98c6d5c0b16c6a3e97b6ef 5138 live-tools_20171207_source.buildinfo
Files:
 77305f0acd92b9f38e3d19683b8fe50b 1415 misc optional live-tools_20171207.dsc
 6ff9f16364e71788b9042bc18da5dc48 35520 misc optional live-tools_20171207.tar.xz
 a5cc43ca1deced2e13a3abfdc96bfaff 5138 misc optional live-tools_20171207_source.buildinfo

-----BEGIN PGP SIGNATURE-----
Comment: Signed by Raphael Hertzog

iQEzBAEBCgAdFiEE1823g1EQnhJ1LsbSA4gdq+vCmrkFAloplikACgkQA4gdq+vC
mrlHpgf/VW/N6S/nugm9wKPFDBYP/8CLAu3/BAsiR8fANskz9XNV6mOYkh/BbhFP
ergA/Gcsw8CU6+sfSmhvlWJ+flbaCO0LCSkFo7lsDqShkH1Wj2D8t2wUaZlXn/P5
PxtzIYxMft58ajhUH1rep5XEsYX1UuAlVzPyrbylNAWH8ZXVzMSH5zipX2uFQw5f
4xjLRTwqda6WchnajeSlggSLSRxptFSNjwManrx8i6ZOP/ARyw6gT72K07yyjeci
5ZjxzVRB+1pjPV8QXHYfSztG0srMrQ0ioUKUXsOV8kNN5WcJj2GnAw9zl8C1DMqK
M9b/XJ/l702v6Ak4NxT/ttyfaT7rTw==
=kdUp
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: