diff options
| author | tv <tv@krebsco.de> | 2026-11-16 03:53:57 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-16 03:53:57 +0000 |
| commit | b0c54844fd4efb9df12715459608aae5fa6bdeca (patch) | |
| tree | 50744c36b123db4b2bdf3768d7b4d9dac48fa70b | |
| parent | 0f6e55150719956307f36f8b11ffd39978288376 (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.nix | 2 |
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 |
