Skip to content

Instantly share code, notes, and snippets.

View laserguy2020's full-sized avatar

Anthony Leto laserguy2020

  • Undisclosed
  • Denver, Colorado, USA
View GitHub Profile
#!/usr/bin/env ruby
require 'fileutils'
source = File.expand_path ARGV[0]
tmpdir = "/tmp/#{File.basename(source, '.qcow2')}"
root_img = "#{tmpdir}/root.img"
root_dev = "/dev/nbd1p2"
root_source = ""
boot_source = ""