diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2024-08-14 11:30:47 +0200 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2024-08-14 11:35:10 +0200 |
commit | aa5fe8a0042024687fd179fb160b87f409cd0c28 (patch) | |
tree | 846c0d39851b503d6ab10379a214e843fb58cb36 | |
parent | 8d9d69a53d4b1cccade1410d0d71bd1a99dafecd (diff) | |
download | u-boot-aa5fe8a0042024687fd179fb160b87f409cd0c28.tar.gz u-boot-aa5fe8a0042024687fd179fb160b87f409cd0c28.tar.bz2 u-boot-aa5fe8a0042024687fd179fb160b87f409cd0c28.zip |
scripts: sd_fusing: Add force option to mkfs.ext4
Add force ('-F') option to mkfs.ext4 to avoid unexpectted filesystem
creation failure caused by some garbage being misdetected as DOS
partition signature:
2024-08-14T08:59:40.904 [sd_fusing.py:956] Formatting /dev/sda9 as ext4
2024-08-14T08:59:40.905 [sd_fusing.py:968] mkfs.ext4 -q -L inform /dev/sda9
Found a dos partition table in /dev/sda9
Proceed anyway? (y,N)
2024-08-14T08:59:40.924 Failed to create ext4 filesystem on /dev/sda9
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I6e960e2f48285fe2f2a139b4342621c82172350b
-rwxr-xr-x | scripts/tizen/sd_fusing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tizen/sd_fusing.py b/scripts/tizen/sd_fusing.py index c3ea6b1e6a..22e4816e6d 100755 --- a/scripts/tizen/sd_fusing.py +++ b/scripts/tizen/sd_fusing.py @@ -929,7 +929,7 @@ def mkpart(args, target): logging.error(f"Failed to create FAT filesystem on {d}") sys.exit(1) elif part['fstype'] == 'ext4': - argv = ['mkfs.ext4', '-q', '-L', part['name'], d] + argv = ['mkfs.ext4', '-F', '-q', '-L', part['name'], d] logging.debug(" ".join(argv)) proc = subprocess.run(argv, stdin=subprocess.DEVNULL, |