diff options
Diffstat (limited to 'recipes-sota/ostree-initrd/files/init.sh')
-rw-r--r-- | recipes-sota/ostree-initrd/files/init.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/recipes-sota/ostree-initrd/files/init.sh b/recipes-sota/ostree-initrd/files/init.sh index b88716c..0b0693d 100644 --- a/recipes-sota/ostree-initrd/files/init.sh +++ b/recipes-sota/ostree-initrd/files/init.sh | |||
@@ -56,7 +56,13 @@ grep -q smackfs /proc/filesystems && { | |||
56 | mkdir -p /sysroot | 56 | mkdir -p /sysroot |
57 | ostree_sysroot=$(get_ostree_sysroot) | 57 | ostree_sysroot=$(get_ostree_sysroot) |
58 | 58 | ||
59 | mount $ostree_sysroot /sysroot || bail_out "Unable to mount $ostree_sysroot as physical sysroot" | 59 | mount "$ostree_sysroot" /sysroot || { |
60 | # The SD card in the R-Car M3 takes a bit of time to come up | ||
61 | # Retry the mount if it fails the first time | ||
62 | log_info "Mounting $ostree_sysroot failed, waiting 5s for the device to be available..." | ||
63 | sleep 5 | ||
64 | mount "$ostree_sysroot" /sysroot || bail_out "Unable to mount $ostree_sysroot as physical sysroot" | ||
65 | } | ||
60 | ostree-prepare-root /sysroot | 66 | ostree-prepare-root /sysroot |
61 | 67 | ||
62 | # move mounted devices to new root | 68 | # move mounted devices to new root |