Your message dated Wed, 08 Oct 2014 11:34:15 +0000
with message-id <[email protected]>
and subject line Bug#764393: fixed in dracut 038-3
has caused the Debian Bug report #764393,
regarding dracut systemd units not installed
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.)
--
764393: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764393
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dracut
Version: 038-2
Severity: important
Tags: patch
Dracut includes systemd units in /usr/lib/dracut/modules.d/98systemd/
which must be symlinked to /lib/systemd/system/. The Makefile takes
care of that if $systemdsystemunitdir is set:
http://anonscm.debian.org/cgit/collab-maint/dracut.git/tree/Makefile#n125
Problem is, that variable isn't set so the symlinks are neither created
nor included in the package. The attached patch corrects debian/rules
and debian/dracut.install to fix this.
Also, /usr/lib/dracut/dracut-initramfs-restore, which is invoked by
the systemd unit dracut-shutdown.service, tries to locate the initrd
in /boot/initramfs-${KERNEL_VERSION}.img, but on Debian it's located
in /boot/initrd.img-${KERNEL_VERSION}.
The attached patch adds a quilt patch to fix this.
I've classified the bug with severity "important" because without these
fixes, dracut's shutdown workflow is broken on Debian:
https://www.kernel.org/pub/linux/utils/boot/dracut/dracut.html#_dracut_on_shutdown
That shutdown workflow is necessary e.g. to unmount and export a ZFS
root filesystem on shutdown, or more generally to untangle any
sufficiently complex LVM arrangement on shutdown.
Thanks,
Lukas
diff --git a/debian/dracut.install b/debian/dracut.install
index 23522ec..05c2b12 100644
--- a/debian/dracut.install
+++ b/debian/dracut.install
@@ -7,6 +7,7 @@ usr/lib/dracut/dracut-initramfs-restore
usr/lib/dracut/dracut-install
usr/lib/dracut/skipcpio
usr/lib/dracut/dracut-logger.sh
+lib/systemd/system
usr/share/bash-completion/completions/dracut etc/bash_completion.d
usr/share/bash-completion/completions/lsinitrd etc/bash_completion.d
dracut-version.sh usr/lib/dracut
diff --git a/debian/patches/initramfs-restore b/debian/patches/initramfs-restore
new file mode 100644
index 0000000..9ea85cd
--- /dev/null
+++ b/debian/patches/initramfs-restore
@@ -0,0 +1,11 @@
+--- a/dracut-initramfs-restore.sh
++++ b/dracut-initramfs-restore.sh
+@@ -15,7 +15,7 @@ SKIP="$dracutbasedir/skipcpio"
+ if [[ $MACHINE_ID ]] && [[ -d /boot/${MACHINE_ID} || -L /boot/${MACHINE_ID}
]] ; then
+ IMG="/boot/${MACHINE_ID}/${KERNEL_VERSION}/initrd"
+ fi
+-[[ -f $IMG ]] || IMG="/boot/initramfs-${KERNEL_VERSION}.img"
++[[ -f $IMG ]] || IMG="/boot/initrd.img-${KERNEL_VERSION}"
+
+ cd /run/initramfs
+
diff --git a/debian/patches/series b/debian/patches/series
index 1fcd877..3956bac 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+initramfs-restore
dev-shm-mount
aufs
diff --git a/debian/rules b/debian/rules
index 932416a..0ab3449 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,5 +5,7 @@ export DH_VERBOSE=1
%:
dh $@ --with quilt
+override_dh_auto_configure:
+ dh_auto_configure -- --systemdsystemunitdir=/lib/systemd/system
override_dh_auto_test:
--- End Message ---
--- Begin Message ---
Source: dracut
Source-Version: 038-3
We believe that the bug you reported is fixed in the latest version of
dracut, 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.
Thomas Lange <[email protected]> (supplier of updated dracut 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: Wed, 08 Oct 2014 11:55:35 +0200
Source: dracut
Binary: dracut dracut-network
Architecture: source amd64 all
Version: 038-3
Distribution: unstable
Urgency: low
Maintainer: Thomas Lange <[email protected]>
Changed-By: Thomas Lange <[email protected]>
Description:
dracut - Low-level tool for generating an initramfs image
dracut-network - Low-level tool for generating an initramfs image
Closes: 764393
Changes:
dracut (038-3) unstable; urgency=low
.
* add systemd units to package Closes: #764393
* add patch for dracut-initramfs-restore, Closes: #764393
Thanks to Lukas Wunner for the patch
Checksums-Sha1:
d0cd014bc8b29711b6f6899a6eac402f21cd1f72 1913 dracut_038-3.dsc
d0bf5aefe6a049ff8cfde79719ba6128c68f2fed 8625 dracut_038-3.debian.tar.gz
802e7a7298d3a7ece20f572159cee31e3fc52ea1 242502 dracut_038-3_amd64.deb
d7f8550d5cb7fb427fe0d28b5cc26c9237b3e990 47884 dracut-network_038-3_all.deb
Checksums-Sha256:
0c4f2432146119f72615776041e57411a4569c8b58c9a3fd1ed68e9895354036 1913
dracut_038-3.dsc
ffd98e71afa091f6f5e0e204065854f286af8e0cad29941307291a7bd6b8c348 8625
dracut_038-3.debian.tar.gz
f79b348c4ef48ada718eedce3c4dec36aa54c2910d62409711fe427ccffe3885 242502
dracut_038-3_amd64.deb
509a78923457dd4395f21d339092a9d3aba48ee4fa0576adc609750516fedda1 47884
dracut-network_038-3_all.deb
Files:
75cdec14b4755b942efbbe904987bb20 1913 utils optional dracut_038-3.dsc
3b72118d01d41b74961c05e33edf9d93 8625 utils optional dracut_038-3.debian.tar.gz
e1a17aa58e37d5790a53ded44b62c8a2 242502 utils optional dracut_038-3_amd64.deb
0d081b3d2c9b058dc9dd5add3ec02ef4 47884 utils optional
dracut-network_038-3_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAEBCAAGBQJUNQqPAAoJECv42f4HS83ksHEQAKWeENqxVqwYb0lWZk+Boiup
Xrs72hh5AOUXZtSsIP3lq7bfkpoIxp7JWRtyqO0tJy9+jd7fnMm/GLv26TrjmRXo
PCgS/EIv+C0DMsgQqWWzS+AjzTEz4RTRvnSAjNhD+OWZbQEL1I1Fo6GstkHd6wgp
/pgSyN6+LeFTCB0nwY4cKNenQMKhj6EDsYbMqGmojf5NSQrHB0hF8oadg6fSZuEK
MExzG5A9fVIgj4eBVrIMTmuOmSBRiYPepSc82/zvVLLC2L6EC054O4b38tEj3Ppc
IlLIkn9k9P0Ah499+V439p/VIEdMWoupMzmbp8n9JBTot1/ub2vfCwwkEzj69MX9
QIJJo1zzPJlnhAxHH5SBqWrWIO/lRlJ1wPf7qzmEPD4IXEdrcIHleGemdZfWN7Ph
h/WhDZUGr/iDEopMdsKyPC6MLhNso15cUIC3MArhMZvSQJ6+Iu5W5YgJJR6ONwv6
4B2jwXvOh9DJGJQp1hOfS61GoT5qa3w1Li99PWvnOpeA1pOza75d5HKqjpqGG76k
KNNK3hXXncIL5s2QwlN/IZIsCQPwUQUjXtclyalvX3d9y1/VweqPF9wpDUAMKOu7
oCG9IMPOd46wjlOocu6s+A7U6PK/3KNLYwUbJj+dtVEk1TZTNw9BNYMpddefCm3J
NwYcWW/9aZLYM5U/UnA9
=+sB2
-----END PGP SIGNATURE-----
--- End Message ---