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

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




Package: cloud-initramfs-growroot
Version: 0.18.debian8
Severity: important
Tags: upstream
X-Debbugs-Cc: debian@undef.tools

Dear Maintainer,

As part of the standard Mobian install proceedure, we use
cloud-initramfs-growroot to expand the root partition on the device.
Recent installs have been failing to resize with the following (debug)
output:
```
+ growpart /dev/mmcblk0 2
+ out='failed [flock:127] flock -x 9
/sbin/growpart: line 714: flock: not found
FAILED: Error while obtaining exclusive lock on /dev/mmcblk0'
+ echo 'GROWROOT: WARNING: resize failed: failed [flock:127] flock -x 9
/sbin/growpart: line 714: flock: not found
FAILED: Error while obtaining exclusive lock on /dev/mmcblk0'
GROWROOT: WARNING: resize failed: failed [flock:127] flock -x 9
/sbin/growpart: line 714: flock: not found
FAILED: Error while obtaining exclusive lock on /dev/mmcblk0
+ udevadm settle --timeout 30
```

I believe this issue is solved upstream where the hook has been
re-written
(https://git.launchpad.net/cloud-initramfs-tools/tree/growroot/hooks/growroot#n12).

Without updating to the latest upstream version, simply adding
`copy_exec /bin/flock /bin` to the growroot hook also solves the issue.

Thank you for your consideration.


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: arm64 (aarch64)

Kernel: Linux 5.18.7-rockchip (SMP w/6 CPU threads)
Kernel taint flags: TAINT_CRAP, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cloud-initramfs-growroot depends on:
pn  cloud-utils      <none>
ii  fdisk            2.38-4
ii  initramfs-tools  0.141
ii  util-linux       2.38-4

cloud-initramfs-growroot recommends no packages.

cloud-initramfs-growroot suggests no packages.


Reply to: