use /usr/bin/dd instead of /bin/dd

This commit is contained in:
Bruce Leidl 2019-08-16 19:36:16 -04:00
parent 79a52b7a46
commit 330557acfc

View File

@ -112,7 +112,7 @@ impl UpdateBuilder {
fn prepend_empty_block(&mut self) -> Result<()> { fn prepend_empty_block(&mut self) -> Result<()> {
let tmpfile = self.image().with_extension("tmp"); let tmpfile = self.image().with_extension("tmp");
cmd!("/usr/bin/dd", "if={} of={} bs=4096 seek=1 conv=sparse", self.image().display(), tmpfile.display())?; cmd!("/bin/dd", "if={} of={} bs=4096 seek=1 conv=sparse", self.image().display(), tmpfile.display())?;
fs::rename(tmpfile, self.image())?; fs::rename(tmpfile, self.image())?;
Ok(()) Ok(())
} }