Skip to content

Commit c183e02

Browse files
committed
recipes-support/os-extra-firmware: Extract extra-firmware volume data path
The volume data path is currently /var/lib/docker/volumes/extra-firmware/_data, and might change in the future, so let's use the engine to extract the actual value. Change-type: patch Signed-off-by: Alexandru Costache <[email protected]>
1 parent 0f9c042 commit c183e02

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

meta-balena-common/recipes-support/os-extra-firmware/os-extra-firmware/os-extra-firmware

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ if [[ -z "$OS_EXTRA_FIRMWARE_VOLUME" ]]; then
1515
# it will be removed.
1616
bootloader_config_modify "extra_os_firmware_class_path"
1717
else
18-
extra_firmware_volume_path="/var/lib/docker/volumes/${OS_EXTRA_FIRMWARE_VOLUME}"
19-
if [ ! -d "${extra_firmware_volume_path}" ]; then
18+
extra_firmware_volume_path=$(/usr/bin/balena volume inspect ${OS_EXTRA_FIRMWARE_VOLUME} | /usr/bin/jq -r ".[].Mountpoint")
19+
if [ -z "${extra_firmware_volume_path}" ] || [ ! -d "${extra_firmware_volume_path}" ]; then
2020
# Volume should exist at this point
21-
fail "${extra_firmware_volume_path} - path does not exist"
21+
fail "${extra_firmware_volume_path} - path is not set or is not a directory"
2222
fi
2323

2424
kernel_cmdline=$(cat "/proc/cmdline")

meta-balena-common/recipes-support/os-extra-firmware/os-extra-firmware/os-extra-firmware.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Description=OS extra firmware management service
33
DefaultDependencies=no
44
Requires=var-volatile.mount
5-
After=var-volatile.mount resin-boot.service var-lib-docker.mount
5+
After=var-volatile.mount resin-boot.service var-lib-docker.mount balena.service
66
Before=umount.target
77
Conflicts=umount.target
88

0 commit comments

Comments
 (0)