Revision 62bf916c src/oca/ruby/OpenNebula/Image.rb

View differences:

src/oca/ruby/OpenNebula/Image.rb
180 180
        # Constants and Class Methods
181 181
        # ---------------------------------------------------------------------
182 182
        FS_UTILS = {
183
            :dd     => "/bin/dd",
184
            :mkfs   => "/bin/mkfs"
183
            :dd     => "env dd",
184
            :mkfs   => "env mkfs"
185 185
        }
186 186

  
187 187
        def copy(path, source)
......
221 221
            command = ""
222 222
            command << FS_UTILS[:dd]
223 223
            command << " if=/dev/zero of=#{source} ibs=1 count=1"
224
            command << " obs=1048576 oseek=#{size}"
224
            command << " obs=1048576 seek=#{size}"
225 225

  
226 226
            local_command=LocalCommand.run(command)
227 227

  

Also available in: Unified diff