From 2fa351b6a51449942bcf1f95c575d2d5e50090c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= Date: Fri, 3 Jul 2020 01:43:31 +0200 Subject: [PATCH] qemu-vm.nix: Do not mount `/boot` read-only. There does not seem to be a good reason to do this, and it breaks running `nixos-rebuild boot --install-bootloader` inside the VM. --- nixos/doc/manual/man-nixos-rebuild.xml | 2 +- nixos/modules/virtualisation/qemu-vm.nix | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/doc/manual/man-nixos-rebuild.xml b/nixos/doc/manual/man-nixos-rebuild.xml index f4f663b84f0..f70f08a0f8a 100644 --- a/nixos/doc/manual/man-nixos-rebuild.xml +++ b/nixos/doc/manual/man-nixos-rebuild.xml @@ -315,7 +315,7 @@ switch), because the hardware and boot loader configuration in the VM are different. The boot loader is installed on an automatically generated virtual disk containing a /boot - partition, which is mounted read-only in the VM. + partition. diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix index 5a502c36180..975b131d265 100644 --- a/nixos/modules/virtualisation/qemu-vm.nix +++ b/nixos/modules/virtualisation/qemu-vm.nix @@ -630,7 +630,6 @@ in { "/boot" = { device = "${lookupDriveDeviceName "boot" cfg.qemu.drives}2"; fsType = "vfat"; - options = [ "ro" ]; noCheck = true; # fsck fails on a r/o filesystem }; });