Skip to content

Commit

Permalink
bootctrl.common: add -F option to mkfs.ext4
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed Apr 21, 2024
1 parent 374abe7 commit 36a6bb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion otaclient/app/boot_control/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,12 @@ def mkfs_ext4(
If fslabel and/or fsuuid provided, use them in prior, otherwise
try to preserve fsuuid and fslabel if possible.
NOTE: -F is used to bypass interactive confirmation.
Raises:
Original CalledProcessError from the failed command execution.
"""
cmd = ["mkfs.ext4"]
cmd = ["mkfs.ext4", "-F"]

if not fsuuid:
try:
Expand Down

0 comments on commit 36a6bb4

Please sign in to comment.