Bug#1035920: cloud-initramfs-growroot: /usr/share/initramfs-tools/hooks/growroot fails in non-merged-/usr environment: expects /usr/bin/udevadm
Followup-For: Bug #1035920
Control: tag -1 patch
The attached patch seems to fix this issue.
The canonical path for udevadm in the udev package has been /bin/udevadm
since jessie.
Andreas
>From b7839503f56aee1252b268401421fb90a69d5456 Mon Sep 17 00:00:00 2001
From: Andreas Beckmann <anbe@debian.org>
Date: Tue, 23 May 2023 00:56:50 +0200
Subject: [PATCH] fix copy_exec /bin/udevadm /sbin
---
debian/changelog | 6 ++++++
growroot/hooks/growroot | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index c1720fa..d4e2fd8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+cloud-initramfs-tools (0.18.debian13) UNRELEASED; urgency=medium
+
+ * Fix copy_exec /bin/udevadm /sbin (Closes: #1035920).
+
+ -- Andreas Beckmann <anbe@debian.org> Tue, 23 May 2023 00:54:39 +0200
+
cloud-initramfs-tools (0.18.debian12) unstable; urgency=medium
[ Martin Pitt ]
diff --git a/growroot/hooks/growroot b/growroot/hooks/growroot
index 5d06aa8..a8ee1ab 100644
--- a/growroot/hooks/growroot
+++ b/growroot/hooks/growroot
@@ -11,7 +11,7 @@ esac
##
copy_exec /sbin/sfdisk /sbin
copy_exec /usr/bin/growpart /sbin
-copy_exec /usr/bin/udevadm /sbin
+copy_exec /bin/udevadm /sbin
copy_exec /usr/bin/flock /bin
# vi: ts=4 noexpandtab
--
2.20.1
Reply to: