Skip to content
Snippets Groups Projects
Commit c45b5abf authored by Rafał Miłecki's avatar Rafał Miłecki
Browse files

bcm4908: fix init on CFE devices


exit in preinit script was stopping whole process

Fixes: 93259e8c ("bcm4908: support "rootfs_data" on U-Boot devices")
Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
parent 1b463338
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ rootfs_create() { ...@@ -20,7 +20,7 @@ rootfs_create() {
rootfs_prepare() { rootfs_prepare() {
# Do nothing on CFE devices # Do nothing on CFE devices
ubinfo /dev/ubi0 -N metadata1 > /dev/null 2>&1 || exit 0 ubinfo /dev/ubi0 -N metadata1 > /dev/null 2>&1 || return
# Find UBI volume device (e.g. ubi0_123) # Find UBI volume device (e.g. ubi0_123)
local ubivol="$(grep rootfs_data /sys/devices/virtual/ubi/ubi*/ubi*/name | sed -n 's/.*\(ubi\d*_\d*\).*/\1/p')" local ubivol="$(grep rootfs_data /sys/devices/virtual/ubi/ubi*/ubi*/name | sed -n 's/.*\(ubi\d*_\d*\).*/\1/p')"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment