Reduce size to zero-out
Most tools will use a 1MiB offset for the first partition
This commit is contained in:
parent
a256e6e764
commit
3aff533c4d
1 changed files with 4 additions and 4 deletions
|
|
@ -123,7 +123,7 @@ def build_ufd() -> None:
|
||||||
if not args['--update']:
|
if not args['--update']:
|
||||||
ui.print_info('Prep UFD')
|
ui.print_info('Prep UFD')
|
||||||
try_print.run(
|
try_print.run(
|
||||||
message='Zeroing first 64MiB...',
|
message='Zeroing first 1MiB...',
|
||||||
function=zero_device,
|
function=zero_device,
|
||||||
dev_path=ufd_dev,
|
dev_path=ufd_dev,
|
||||||
)
|
)
|
||||||
|
|
@ -671,12 +671,12 @@ def verify_ufd(dev_path) -> pathlib.Path:
|
||||||
|
|
||||||
|
|
||||||
def zero_device(dev_path) -> None:
|
def zero_device(dev_path) -> None:
|
||||||
"""Zero-out first 64MB of device."""
|
"""Zero-out first 1MB of device."""
|
||||||
cmd = [
|
cmd = [
|
||||||
'sudo',
|
'sudo',
|
||||||
'dd',
|
'dd',
|
||||||
'bs=4M',
|
'bs=1M',
|
||||||
'count=16',
|
'count=1',
|
||||||
'if=/dev/zero',
|
'if=/dev/zero',
|
||||||
f'of={dev_path}',
|
f'of={dev_path}',
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue