sciurus/vagrant-mutate

Support GNU version of dd

Closed this issue · 2 comments

Hi, I'm trying to use Erik Smit's script to convert a VMDK file on CentOS 6.5, however I'm running into issues (I'm guessing it's a different version of dd being used?). Has anyone run into this before?

[me@home]$ dd --version
dd (coreutils) 8.4
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Rubin, David MacKenzie, and Stuart Kemp.

[me@home]$ ./qemu-img.vmdk3.hack.sh /home/me/.vagrant.d/boxes/testvm/virtualbox/box-disk1.vmdk 
/home/me/.vagrant.d/boxes/testvm/virtualbox/box-disk1.vmdk is VMDK3.
 Patching to VMDK2.
 Run this script again when you're done to patch it back.
dd: invalid status flag: `none'
Try `dd --help' for more information.

Hi @b-long, this issue would have been better reported on @erik-smit's repo instead of here.

It looks like GNU coreutils added the none flag to status in version 8.20; see their NEWS file. Since you have an older version, you can't use it. Glancing at the script, I think there should be no harm in you simply removing the status argument altogether.

Ah, my mistake. I didn't even realize @erik-smit's script was in a repository (rather than a gist). I do appreciate the advice though, and I'll be sure to open a ticket (and see if I can patch) the script from @erik-smit.