mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-10 01:17:40 +03:00
bug #290: Fixed dd option, and more generic binaries search.
This commit is contained in:
parent
3c12f15607
commit
62bf916c7b
@ -180,8 +180,8 @@ module OpenNebula
|
||||
# Constants and Class Methods
|
||||
# ---------------------------------------------------------------------
|
||||
FS_UTILS = {
|
||||
:dd => "/bin/dd",
|
||||
:mkfs => "/bin/mkfs"
|
||||
:dd => "env dd",
|
||||
:mkfs => "env mkfs"
|
||||
}
|
||||
|
||||
def copy(path, source)
|
||||
@ -221,7 +221,7 @@ module OpenNebula
|
||||
command = ""
|
||||
command << FS_UTILS[:dd]
|
||||
command << " if=/dev/zero of=#{source} ibs=1 count=1"
|
||||
command << " obs=1048576 oseek=#{size}"
|
||||
command << " obs=1048576 seek=#{size}"
|
||||
|
||||
local_command=LocalCommand.run(command)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user