Talk:Incus: Difference between revisions

From NixOS Wiki
Latest comment: 8 December by Adamcstephens in topic Issues with squashfs
Sephi (talk | contribs)
 
Tags: Reply Mobile edit Mobile web edit
Line 4: Line 4:


Using `nix build .#nixosConfigurations.container.config.system.build.tarball --print-out-paths` instead of `nix build .#nixosConfigurations.container.config.system.build.squashfs --print-out-paths` fixes the issue for me. Maybe this should be updated? [[User:Sephi|Sephi]] ([[User talk:Sephi|talk]]) 12:38, 8 December 2024 (UTC)
Using `nix build .#nixosConfigurations.container.config.system.build.tarball --print-out-paths` instead of `nix build .#nixosConfigurations.container.config.system.build.squashfs --print-out-paths` fixes the issue for me. Maybe this should be updated? [[User:Sephi|Sephi]] ([[User talk:Sephi|talk]]) 12:38, 8 December 2024 (UTC)
:No, this needs to be properly fixed in the squashfs image.  [[User:Adamcstephens|Adamcstephens]] ([[User talk:Adamcstephens|talk]]) 15:02, 8 December 2024 (UTC)

Revision as of 15:02, 8 December 2024

Issues with squashfs

The instructions to create an LXC container result in a / partition that has 0777 permissions. This is probably not a good idea from a security perspective, and it also prevents SSH from working correctly (it will refuse to read keys from /etc/ssh/authorized_keys.d).

Using `nix build .#nixosConfigurations.container.config.system.build.tarball --print-out-paths` instead of `nix build .#nixosConfigurations.container.config.system.build.squashfs --print-out-paths` fixes the issue for me. Maybe this should be updated? Sephi (talk) 12:38, 8 December 2024 (UTC)Reply

No, this needs to be properly fixed in the squashfs image. Adamcstephens (talk) 15:02, 8 December 2024 (UTC)Reply