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.
This commit is contained in:
Niklas Hambüchen 2020-07-03 01:43:31 +02:00
parent e74755c422
commit 2fa351b6a5
2 changed files with 1 additions and 2 deletions

View File

@ -315,7 +315,7 @@
switch</command>), because the hardware and boot loader configuration in switch</command>), because the hardware and boot loader configuration in
the VM are different. The boot loader is installed on an automatically the VM are different. The boot loader is installed on an automatically
generated virtual disk containing a <filename>/boot</filename> generated virtual disk containing a <filename>/boot</filename>
partition, which is mounted read-only in the VM. partition.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>

View File

@ -630,7 +630,6 @@ in
{ "/boot" = { "/boot" =
{ device = "${lookupDriveDeviceName "boot" cfg.qemu.drives}2"; { device = "${lookupDriveDeviceName "boot" cfg.qemu.drives}2";
fsType = "vfat"; fsType = "vfat";
options = [ "ro" ];
noCheck = true; # fsck fails on a r/o filesystem noCheck = true; # fsck fails on a r/o filesystem
}; };
}); });