Skip to content

Commit 514223d

Browse files
committed
Merge remote-tracking branch 'origin/extract_volume_data_mp' into extra-firmware-tests
2 parents 5a3ae7b + c183e02 commit 514223d

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}/_data"
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)