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,4 +1,5 @@
require 'open3'
require_relative "utils"
module DebianSystem
def os_name
@ -10,6 +11,10 @@ module DebianSystem
stdout.strip.to_i
end
def arch
sh("dpkg --print-architecture")
end
def install(packages)
missing_packages = packages.reject { |pkg| package_installed?(pkg) }