summaryrefslogtreecommitdiffstats
path: root/recipes-core/initrdscripts/files/init-readonly-rootfs-overlay-boot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/initrdscripts/files/init-readonly-rootfs-overlay-boot.sh')
-rw-r--r--recipes-core/initrdscripts/files/init-readonly-rootfs-overlay-boot.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes-core/initrdscripts/files/init-readonly-rootfs-overlay-boot.sh b/recipes-core/initrdscripts/files/init-readonly-rootfs-overlay-boot.sh
index be62db0..66f0cdc 100644
--- a/recipes-core/initrdscripts/files/init-readonly-rootfs-overlay-boot.sh
+++ b/recipes-core/initrdscripts/files/init-readonly-rootfs-overlay-boot.sh
@@ -101,11 +101,11 @@ mount_and_boot() {
101 101
102 # Mount root file system to new mount-point, if unsuccessful, try bind 102 # Mount root file system to new mount-point, if unsuccessful, try bind
103 # mounting current root file system. 103 # mounting current root file system.
104 if ! $MOUNT $ROOT_ROMOUNTPARAMS "$ROOT_ROMOUNT" 2>/dev/null && \ 104 if ! $MOUNT $ROOT_ROMOUNTPARAMS "$ROOT_ROMOUNT" 2>/dev/null ; then
105 [ "x$ROOT_ROMOUNTPARAMS_BIND" == "x$ROOT_ROMOUNTPARAMS" ] || \ 105 log "Could not mount $ROOT_RODEVICE, bind mounting..."
106 log "Could not mount $ROOT_RODEVICE, bind mounting..." && \ 106 if ! $MOUNT $ROOT_ROMOUNTPARAMS_BIND "$ROOT_ROMOUNT"; then
107 ! $MOUNT $ROOT_ROMOUNTPARAMS_BIND "$ROOT_ROMOUNT"; then 107 fatal "Could not mount read-only rootfs"
108 fatal "Could not mount read-only rootfs" 108 fi
109 fi 109 fi
110 110
111 # Remounting root file system as read only. 111 # Remounting root file system as read only.