Skip to content

Commit

Permalink
Merge pull request #8758 from sky42src/le12_fix_toram
Browse files Browse the repository at this point in the history
busybox: init: fix toram when SYSTEM_IMAGE is with path
  • Loading branch information
chewitt committed Mar 26, 2024
2 parents 515ada5 + a43c069 commit 9f94364
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sysutils/busybox/scripts/init
Expand Up @@ -248,8 +248,8 @@ mount_part() {

mount_sysroot() {
if [ "$SYSTEM_TORAM" = "yes" ]; then
cp /flash/$IMAGE_SYSTEM /dev/$IMAGE_SYSTEM
mount_part "/dev/$IMAGE_SYSTEM" "/sysroot" "ro,loop"
cp "/flash/$IMAGE_SYSTEM" /dev/SYSTEM
mount_part "/dev/SYSTEM" "/sysroot" "ro,loop"
else
mount_part "/flash/$IMAGE_SYSTEM" "/sysroot" "ro,loop"
fi
Expand Down

0 comments on commit 9f94364

Please sign in to comment.