Open adryd325 opened 2 years ago
with lxd and security.nesting=true it works
[root@nixos:~]# systemctl status sys-kernel-debug.mount
● sys-kernel-debug.mount - Kernel Debug File System
Loaded: loaded (/proc/self/mountinfo; enabled; vendor preset: enabled)
Active: active (mounted) since Thu 2022-02-03 00:01:45 UTC; 6min ago
Where: /sys/kernel/debug
What: debugfs
Docs: https://www.kernel.org/doc/Documentation/filesystems/debugfs.txt
https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
Notice: journal has been rotated since unit was started, output may be incomplete.
likely needs seperate image for lxc v1 containers
Some extra info nesting is enabled for the lxc in proxmox settings
and I'm using pve 7.0-13 as the host
I added this to my configuration.nix
and it did the trick.
systemd.mounts = [{
where = "/sys/kernel/debug";
enable = false;
}];
Describe the bug
"sys-kernel-debug.mount" fails when running
nixos-rebuild switch
in a Proxmox LXCSteps To Reproduce
Steps to reproduce the behavior:
Expected behavior
No error about sys-kernel-debug.mount should be thrown it should be potentially disabled in containers since that stopped it from throwing the error
Screenshots
Additional context
I used this build from hydra https://hydra.nixos.org/build/166309459
Notify maintainers
@mkg20001
Metadata