Your message dated Sun, 20 Dec 2015 16:26:55 +0000
with message-id <[email protected]>
and subject line Bug#801214: fixed in vmdebootstrap 1.3-1
has caused the Debian Bug report #801214,
regarding vmdebootstrap: support alternative initramfs implementations
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 [email protected]
immediately.)


-- 
801214: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=801214
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: vmdebootstrap
Version: 1.0-1
Severity: wishlist
Tags: patch upstream

Dear Maintainer,

Currently, vmdebootstrap calls update-initramfs -u to update the
initramfs at the end. This will only support initramfs-tools, but not
alternative initramfs implementations such as dracut.

Instead of directly calling update-initramfs -u, a better way to update
the initramfs would be to tell dpkg to execute the proper triggers:

dpkg-trigger --by-package vmdebootstrap update-initramfs
dpkg --triggers-only -a

This will work with any initramfs implementation, regardless of which
initramfs is installed. It is also completely harmless if no package
that implements this is installed, so it may be run unconditionally.

I've attached a patch (against the codehelp/modules branch) that
implements this.

Would be great if that could be included in vmdebootstrap.

Regards,
Christian
From 4400c1a83b7178b6c7646c763393576750b5c0be Mon Sep 17 00:00:00 2001
From: Christian Seiler <[email protected]>
Date: Wed, 7 Oct 2015 15:35:21 +0200
Subject: [PATCH 1/2] update_initramfs: support alternative initramfs
 implementations

Invoke dpkg triggers to update the initramfs. This way, alternative
initramfs implementations such as dracut will automatically be
supported.
---
 vmdebootstrap/filesystem.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/vmdebootstrap/filesystem.py b/vmdebootstrap/filesystem.py
index 796f7d8..b9d784a 100644
--- a/vmdebootstrap/filesystem.py
+++ b/vmdebootstrap/filesystem.py
@@ -67,10 +67,12 @@ class Filesystem(Base):
         rootdir = self.devices['rootdir']
         if not rootdir:
             raise cliapp.AppException("rootdir not set")
-        cmd = os.path.join('usr', 'sbin', 'update-initramfs')
-        if os.path.exists(os.path.join(str(rootdir), cmd)):
-            self.message("Updating the initramfs")
-            runcmd(['chroot', rootdir, cmd, '-u'])
+        self.message("Updating the initramfs")
+        # we don't know if initramfs-tools or dracut is
+        # installed, so just tell dpkg to run the right
+        # trigger
+        runcmd(['chroot', rootdir, 'dpkg-trigger', '--by-package', 'vmdebootstrap', 'update-initramfs'])
+        runcmd(['chroot', rootdir, 'dpkg', '--triggers-only', '-a'])
 
     def setup_kpartx(self):
         bootindex = None
-- 
2.1.4

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: vmdebootstrap
Source-Version: 1.3-1

We believe that the bug you reported is fixed in the latest version of
vmdebootstrap, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Neil Williams <[email protected]> (supplier of updated vmdebootstrap 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 20 Dec 2015 15:15:47 +0000
Source: vmdebootstrap
Binary: vmdebootstrap
Architecture: source amd64
Version: 1.3-1
Distribution: unstable
Urgency: medium
Maintainer: VMDebootstrap List <[email protected]>
Changed-By: Neil Williams <[email protected]>
Description:
 vmdebootstrap - Bootstrap Debian into a (virtual machine) disk image
Closes: 801214 806820 808358
Changes:
 vmdebootstrap (1.3-1) unstable; urgency=medium
 .
   * Add autopkgtest support for simple internal tests.
   * Add tests on the package include functions and ensure that
     no-kernel option works. (Closes: #808358)
   * Disallow --apt-mirror without using --configure-apt as
     well. (Closes: #806820)
   * Adds support for converting final raw image to qcow2 format.
   * Make update-initramfs call optional. (Closes: #801214)
Checksums-Sha1:
 3fc5da16ebb5bbe7fa32bda7e9658ce3a201122a 2203 vmdebootstrap_1.3-1.dsc
 c60b27d7bfab8f7571496708f27bf0c49a610637 49670 vmdebootstrap_1.3.orig.tar.gz
 c23a9b5c51134922b90eb24622ee02b94d2f8e67 5140 vmdebootstrap_1.3-1.debian.tar.xz
 4f05d58ac5277d793667273481ccc91629b6f484 68478 vmdebootstrap_1.3-1_amd64.deb
Checksums-Sha256:
 56f11b607f0b06109bbf56cae1fcd9a374ffef2065ef8f5772137dbe99626168 2203 
vmdebootstrap_1.3-1.dsc
 8ae597cbdde0e38eeb5e43a1ba14f7ec7c003eeafe9453bb5310622110477ee9 49670 
vmdebootstrap_1.3.orig.tar.gz
 ef4dc31486a05371a9f0c1942b9c425585ed53f188d830d79e1776484a4a9633 5140 
vmdebootstrap_1.3-1.debian.tar.xz
 5947c890a97c67d306dc3f7cea474ebbbb145a45facbe2689f27fa159edd5ba1 68478 
vmdebootstrap_1.3-1_amd64.deb
Files:
 1ab84b925df4ba25b525a7225b50bc2e 2203 admin extra vmdebootstrap_1.3-1.dsc
 0ee0eaac8b4e04216f971774331bd799 49670 admin extra 
vmdebootstrap_1.3.orig.tar.gz
 c004706f5e0b885c87575ea9cc4fa120 5140 admin extra 
vmdebootstrap_1.3-1.debian.tar.xz
 2634dd02773a04f331a57e26716fbc35 68478 admin extra 
vmdebootstrap_1.3-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJWdsbcAAoJEPFn5DyBQ7aCWPQP/1fcGu8QijJJFZATtsfZ1qzk
bwp3PE4kZtaT0cp40x10RmkvAUbOwjPr+SVa4qsZxiwWmoEP/lnQJ4l5PTckrBzW
2suz6WxRMJlkrdgAAXYjpO46cYBsBdjrsO37wvRwF3iYIe3oF0o+OLSg4m+iAExG
ZgQzZ4ssM25X64Fl9gvsHQe7kGkoCD87FgZI7g1luaEUBy0953STxNsE8rp2QHHn
5z0Qu6NsR29lqmOhEax43WK4jnJmBskcwIFOb+k7eoqexZIOx8lBwWh9oousQsfb
WIpO7aT0IXnYLaRENNZq25F+6I6XP+oZO8Jo25MlAwU8Zb9F0Nezy8vvn82udT0A
jhEx7NAYXL2ik2lcJtysO6dB/bNWj1z3rSvQBd1j++oexwjAJ/xUSQMrWwa1cP6Z
7wWfEO3jvhv5YcPPxPc+99wAzleGSAHRsKRYpPGMfNvMQ6qsOUYEiCJUOUvjo8+8
v6bXmQfebTfOdd1+1hXNV/1VXqoyXj5+w6gKB9MB4gIpy1JMcrrhMjePEAjG4K9/
vC2v1RX5QmhaoCOYClthTRSdKO6pzu+8/ExV0BpG52NdI2TW8CP71oulZWxXn/5s
kDh9NLXEBfSSD0dqQj3TZiZja07d89r2asdQGXejd9OullSADfKkyY+mp7myk2KN
/BCEOVDKetmW/39MY/5y
=6htN
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to