diff mbox series

[isar-cip-core,v2,2/2] fix: force mke2fs in overlay recovery action

Message ID 20240819125138.1543399-3-Quirin.Gylstorff@siemens.com (mailing list archive)
State New
Headers show
Series fixes overlay with | expand

Commit Message

Gylstorff Quirin Aug. 19, 2024, 12:51 p.m. UTC
From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

If mke2fs detects an existing file system, it enters interactive mode
avoid interactive mode by forcing the creation of a new filesystem.

The issue was introduced with:

8644fb1 initramfs-overlay-hook: Check file system of INITRAMFS_OVERLAY_STORAGE_DEVICE

Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
 .../initramfs-overlay-hook/files/overlay_recovery_action.script | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/recipes-initramfs/initramfs-overlay-hook/files/overlay_recovery_action.script b/recipes-initramfs/initramfs-overlay-hook/files/overlay_recovery_action.script
index d13111d..0cd084b 100644
--- a/recipes-initramfs/initramfs-overlay-hook/files/overlay_recovery_action.script
+++ b/recipes-initramfs/initramfs-overlay-hook/files/overlay_recovery_action.script
@@ -11,4 +11,4 @@ 
 partition_fstype="$1"
 ovl_partition_device="$2"
 
-mke2fs -t "$partition_fstype" "$ovl_partition_device"
+mke2fs -q -FF -t "$partition_fstype" "$ovl_partition_device"