diff options
author | Niklas Hambüchen <mail@nh2.me> | 2020-07-03 01:43:31 +0200 |
---|---|---|
committer | Niklas Hambüchen <mail@nh2.me> | 2020-07-04 14:44:33 +0200 |
commit | 2fa351b6a51449942bcf1f95c575d2d5e50090c2 (patch) | |
tree | 7c120668da9c6f2fb19646b409b7ff63060dbf98 | |
parent | e74755c422180bfa0ca2f74eb11f32e20d4030ee (diff) | |
download | nixpkgs-2fa351b6a51449942bcf1f95c575d2d5e50090c2.tar nixpkgs-2fa351b6a51449942bcf1f95c575d2d5e50090c2.tar.gz nixpkgs-2fa351b6a51449942bcf1f95c575d2d5e50090c2.tar.bz2 nixpkgs-2fa351b6a51449942bcf1f95c575d2d5e50090c2.tar.lz nixpkgs-2fa351b6a51449942bcf1f95c575d2d5e50090c2.tar.xz nixpkgs-2fa351b6a51449942bcf1f95c575d2d5e50090c2.tar.zst nixpkgs-2fa351b6a51449942bcf1f95c575d2d5e50090c2.zip |
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.
-rw-r--r-- | nixos/doc/manual/man-nixos-rebuild.xml | 2 | ||||
-rw-r--r-- | nixos/modules/virtualisation/qemu-vm.nix | 1 |
2 files changed, 1 insertions, 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</command>), 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 <filename>/boot</filename> - partition, which is mounted read-only in the VM. + partition. </para> </listitem> </varlistentry> 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 }; }); |