From b0c54844fd4efb9df12715459608aae5fa6bdeca Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 03:53:57 +0000 Subject: xchg: don't complain about ownership debugfs' rdump tries to restore the owner of every file it extracts, which fails when not running as root: dump_file: Operation not permitted while changing ownership of xchg.new//boot.txt The files end up owned by the user running the VM, which is what we want, so drop these messages. --- default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 7ef0426..842cc94 100644 --- a/default.nix +++ b/default.nix @@ -159,7 +159,7 @@ pkgs.writeShellScriptBin "run-firecracker-vm" '' rm -rf xchg.new mkdir xchg.new - debugfs -R 'rdump / xchg.new' "$tmp"/xchg.img 2>&1 | { grep -v '^debugfs [0-9]' >&2 || :; } + debugfs -R 'rdump / xchg.new' "$tmp"/xchg.img 2>&1 | { grep -v -e '^debugfs [0-9]' -e 'Operation not permitted while changing ownership' >&2 || :; } rm -rf xchg xchg.new/lost+found mv xchg.new xchg -- cgit v1.3.1