]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Replace dd call by an normal write call 802/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 6 Oct 2021 12:53:57 +0000 (14:53 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 10 Oct 2021 17:04:44 +0000 (19:04 +0200)
commitcd991be9bbd2cc8fe90b2f2e18a52a438761245c
treebdfb0c4abee913c08965a0a0123c4d02b48c9666
parentb92bc64a90afd958414d01e9a4a09e7f1df87dd6
Replace dd call by an normal write call

We would create a file with 0 padding to force it to a certain size.
This seems fairly ugly, in particular when we later want to use the
blob in other contexts. Also, since 9e0b115e0c, this shouldn't be necessary.
And if we're just copying bytes from a file we already have open, with no
padding, we might just as well do this without forking.
mkosi/__init__.py