aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-16 03:53:57 +0000
committertv <tv@krebsco.de>2026-11-16 03:53:57 +0000
commitb0c54844fd4efb9df12715459608aae5fa6bdeca (patch)
tree50744c36b123db4b2bdf3768d7b4d9dac48fa70b
parent0f6e55150719956307f36f8b11ffd39978288376 (diff)
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.
-rw-r--r--default.nix2
1 files changed, 1 insertions, 1 deletions
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