creating raw images for QEMU
This commit is contained in:
parent
3b9e0a1f33
commit
49cc960703
13 changed files with 164 additions and 17 deletions
|
|
@ -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) }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue