diff --git a/src/vmm_mad/remotes/lib/lxd/mapper/mapper.rb b/src/vmm_mad/remotes/lib/lxd/mapper/mapper.rb index c39925d2861..e9d036a6822 100644 --- a/src/vmm_mad/remotes/lib/lxd/mapper/mapper.rb +++ b/src/vmm_mad/remotes/lib/lxd/mapper/mapper.rb @@ -481,7 +481,6 @@ def mount_resize_fs(device, directory, fs_type, disk) if o.empty? OpenNebula.log_error("#{err}#{e}") - return false else cmd = "#{COMMANDS[:resize2fs]} #{device}" rc, _o, e = Command.execute(cmd, false) @@ -511,7 +510,11 @@ def reset_fs_uuid(fs_type, device) when /xfs/ cmd = "#{COMMANDS[:xfs_admin]} -U generate #{device}" when /ext/ - Command.execute("#{COMMANDS[:e2fsck]} -f -y #{device}", false) + cmd = "#{COMMANDS[:e2fsck]} -f -y #{device}" + _rc, o, e = Command.execute(cmd, false) + + OpenNebula.log e if o.empty? + cmd = "#{COMMANDS[:tune2fs]} -U random #{device}" else return true