1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-11-13 00:27:00 +03:00

bin/boot-qemu: WIP fixes for stage-2 changes

This commit is contained in:
Samuel Dionne-Riel 2019-09-21 13:56:26 -04:00
parent c1acf97334
commit 72b4f97956

View File

@ -17,7 +17,7 @@ STORE_PATH = File.readlink("result")
$copy_readwrite = true;
begin
disk_image = Dir.glob(File.join(File.readlink("result"), "system", "sd-image", "*.img")).first
disk_image = Dir.glob(File.join(File.readlink("result"), "system", "*.img")).first
if $copy_readwrite then
DISK_IMAGE = "fs.img"
cp(disk_image, DISK_IMAGE)
@ -36,6 +36,7 @@ KERNEL_INITRD = "result/kernel-initrd"
args = []
args.push("qemu-system-x86_64")
args.push("-enable-kvm")
args.push("-kernel", "#{KERNEL_INITRD}/kernel")
args.push("-initrd", "#{KERNEL_INITRD}/initrd")
args.push("-append", File.read("#{KERNEL_INITRD}/cmdline.txt"))