File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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"
1717else
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" )
Original file line number Diff line number Diff line change 22Description =OS extra firmware management service
33DefaultDependencies =no
44Requires =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
66Before =umount.target
77Conflicts =umount.target
88
You can’t perform that action at this time.
0 commit comments