aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2022-03-07 11:12:36 +0100
committerRafał Miłecki <rafal@milecki.pl>2022-03-07 11:14:29 +0100
commitc45b5abf6fce79ff3aab6d98cde3e8ff0ae1b1d6 (patch)
tree10fc0f907ea6497fadda2bc8988a8af78e4787d6
parent1b463338954e8cacd1193e097957302b389fb45e (diff)
downloadupstream-c45b5abf6fce79ff3aab6d98cde3e8ff0ae1b1d6.tar.gz
upstream-c45b5abf6fce79ff3aab6d98cde3e8ff0ae1b1d6.tar.bz2
upstream-c45b5abf6fce79ff3aab6d98cde3e8ff0ae1b1d6.zip
bcm4908: fix init on CFE devices
exit in preinit script was stopping whole process Fixes: 93259e8ca261 ("bcm4908: support "rootfs_data" on U-Boot devices") Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
-rw-r--r--target/linux/bcm4908/base-files/lib/preinit/75_rootfs_prepare2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/bcm4908/base-files/lib/preinit/75_rootfs_prepare b/target/linux/bcm4908/base-files/lib/preinit/75_rootfs_prepare
index 07fa21814e..09c12cd31d 100644
--- a/target/linux/bcm4908/base-files/lib/preinit/75_rootfs_prepare
+++ b/target/linux/bcm4908/base-files/lib/preinit/75_rootfs_prepare
@@ -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')"