creating raw images for QEMU

This commit is contained in:
Artur Gurgul 2025-08-11 14:18:59 +02:00
parent 3b9e0a1f33
commit 49cc960703
13 changed files with 164 additions and 17 deletions

View file

@ -1,10 +1,15 @@
require 'open3'
require_relative "utils"
module MacOSSystem
def os_name
"macOS"
end
def arch
sh("sysctl -n hw.machine")
end
def cpus
stdout, stderr, status = Open3.capture3("sysctl -n hw.ncpu")
stdout.strip.to_i