diff options
author | Marcus Folkesson <marcus.folkesson@gmail.com> | 2022-05-27 09:14:36 +0200 |
---|---|---|
committer | Marcus Folkesson <marcus.folkesson@gmail.com> | 2022-05-27 09:14:36 +0200 |
commit | b44889b7bbaf9f2b88322b6989833712a17dcc6a (patch) | |
tree | dd8e4a228bb740dbdbed4285aee32d1411a235b5 /recipes-core/initrdscripts/files/init-readonly-rootfs-overlay-boot.sh | |
parent | 735aba8682471193d631eb08602b772b6c41cbb7 (diff) | |
download | meta-readonly-rootfs-overlay-b44889b7bbaf9f2b88322b6989833712a17dcc6a.tar.gz |
Adapt to Honister
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
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.sh | 10 |
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. |