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

Bug#1014662: cloud-initramfs-growroot: Initramfs hook does not include `flock` command



severity 1014662 serious
tags 1014662 + patch
thanks

I can reproduce this as well.

I have a packer setup which takes a Hetzner cx11 instance (the smallest
available size), upgrades it to bookworm, installs some extra packages,
and then takes a snapshot.

This used to work before I added the "upgrades it to bookworm" part.

Now it does not work, and as a result, the images only work ok
if I create an instance of the same size that was used to create
the image.

undef <debian@undef.tools> wrote:
Without updating to the latest upstream version, simply adding
`copy_exec /bin/flock /bin` to the growroot hook also solves the issue.

I've converted the above hint into a patch.

(using /usr/bin/flock as the path as that's what dpkg -L util-linux
reports as the canonical location)

Please consider applying the patch before the hard freeze. The package
is not very useful in its current state.

Thanks.
--- a/growroot/hooks/growroot
+++ b/growroot/hooks/growroot
@@ -12,5 +12,6 @@ esac
 copy_exec /sbin/sfdisk /sbin
 copy_exec /usr/bin/growpart /sbin
 copy_exec /usr/bin/udevadm /sbin
+copy_exec /usr/bin/flock /bin
 
 # vi: ts=4 noexpandtab

Reply to: