]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Do not allow dd to create the output file 307/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 14 Dec 2018 12:54:07 +0000 (13:54 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 30 Apr 2019 15:34:57 +0000 (17:34 +0200)
commit20d5eb99c11ea166e39ac11a558afe23221d6f59
tree3485c0154ccdfeed951e6b029528d1df99d47d0e
parent1a79c63dec1e8f262e2bce0056993c856841c887
Do not allow dd to create the output file

Something went wrong on my machine and /dev/loop8p2 was not present,
even though loop8 and loop8p1 were. (I think the loopback device was
mounted somewhere and the kernel wouldn't reread the partition table.)
Since we are running as root, we can easily create a new file in /dev.
Let's avoid this.
mkosi