Skip to content

Commit

Permalink
bcm4908: fix init on CFE devices
Browse files Browse the repository at this point in the history
exit in preinit script was stopping whole process

Fixes: 93259e8 ("bcm4908: support "rootfs_data" on U-Boot devices")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
  • Loading branch information
Rafał Miłecki committed Mar 7, 2022
1 parent 1b46333 commit c45b5ab
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -20,7 +20,7 @@ rootfs_create() {

rootfs_prepare() {
# 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)
local ubivol="$(grep rootfs_data /sys/devices/virtual/ubi/ubi*/ubi*/name | sed -n 's/.*\(ubi\d*_\d*\).*/\1/p')"
Expand Down

0 comments on commit c45b5ab

Please sign in to comment.