nixpkgs/pkgs/applications
aszlig 4c1ddb3a57
qemu: Apply interim fix for overlayfs + O_NOATIME
Our VM tests and everything related to our virtualisation infrastructure
is currently broken if used with kernel 4.19 or later.

The reason for this is that since 4.19, overlayfs uses the O_NOATIME
flag when opening files in lowerdir and this doesn't play nice with the
way we pass the Nix store to our QEMU guests.

On a NixOS system, paths in the Nix store are typically owned by root
but the QEMU process is usually run by an ordinary user. Using O_NOATIME
on a file where you're not the owner (or superuser) will return with
EPERM (Operation not permitted).

This is exactly what happens in our VM tests, because we're using
overlayfs in the guests to allow writes to the store.

Another implication of this is that the default kernel version for NixOS
19.03 has been reverted to Linux 4.14.

Work on getting this upstream is still ongoing and the patch I posted
previously was incomplete, needs rework and also some more review from
upstream maintainers - in summary: This will take a while.

So instead of rushing in a kernel patch to nixpkgs, which will affect
all users of overlayfs, not just NixOS VM tests, I opted to patch QEMU
for now to ignore the O_NOATIME flag in 9p.

I think this is also the least impacting change, because even if you
care about whether access times are written or not, you get the same
behaviour as with Linux 4.19 in conjunction with QEMU.

Signed-off-by: aszlig <aszlig@nix.build>
Fixes: https://github.com/NixOS/nixpkgs/issues/54509
2019-03-18 13:34:30 +01:00
..
altcoins altcoins.freicoin: fix build (#57647) 2019-03-14 22:11:58 +01:00
audio qtractor: 0.9.4 -> 0.9.5 (#57473) 2019-03-15 20:22:40 +01:00
backup areca: fix build 2019-03-09 12:52:34 +01:00
display-managers lightdm: disable writing dmrc files to home 2019-03-13 21:19:23 -04:00
editors vscode: 1.32.2 -> 1.32.3 (#57720) 2019-03-15 22:09:20 +01:00
gis qgis: 2.18.28 -> 3.4.5 2019-03-05 09:39:58 +01:00
graphics darktable: 2.6.0 -> 2.6.1 (#57224) 2019-03-15 23:10:28 +01:00
kde kfind: init at 18.12.1 2019-03-14 19:23:46 +01:00
misc Merge pull request #57719 from r-ryantm/auto-update/dbeaver-ce 2019-03-15 21:36:17 -04:00
networking kops: 1.11.0 -> 1.11.1 (#57079) 2019-03-15 23:56:53 +01:00
office cb2bib: 1.9.9 -> 2.0.0 (#55907) 2019-03-15 23:11:23 +01:00
radio Merge pull request #57497 from r-ryantm/auto-update/urh 2019-03-14 20:23:58 +01:00
science labelimg: fix build (#57714) 2019-03-15 20:50:03 +01:00
search recoll: 1.24.4 -> 1.24.5 2019-02-03 20:02:35 -08:00
version-management gitAndTools.gitRemoteGcrypt: Add missing dependencies (#57637) 2019-03-14 22:16:40 +01:00
video avidemux: 2.7.1 -> 2.7.2 2019-03-15 10:41:44 -07:00
virtualization qemu: Apply interim fix for overlayfs + O_NOATIME 2019-03-18 13:34:30 +01:00
window-managers nixos/sway: Improve the module and adapt it to NixOS 2019-03-13 11:37:11 +01:00