This repository has been archived on 2025-09-06. You can view files and clone it, but cannot push or open issues/pull-requests.
Go to file
Dustin 301589af22 Store SSH host keys in /var/lib/ssh
For some reason, when OverlayFS is mounted at `/etc/ssh`, SELinux
prevents access both `sshd` and `ssh-keygen` access to the files there.
The AVC denials indicate that (some part of) the process is running in
the `mount_t` domain, which is not allowed to read or write `sshd_key_t`
files.

To work around this issue, without granting `mount_t` overly-permissive
access, we now configure the SSH daemon to read host keys from the
persistent data volume directly, instead of "tricking" it with
OverlayFS.  The `ssh-keygen` tool does not read the `HostKey` options
from `sshd_config`, though, so it has to be explicitly instructed to
create keys in this alternate location.  By using a systemd template
unit with `ConditionPathExists`, we avoid regnerating the keys on every
boot, since the `ssh-keygen` command is only run if the file does not
already exist.
2023-03-12 12:47:36 -05:00
host-portage Enable SELinux 2023-03-12 12:34:12 -05:00
overlay Store SSH host keys in /var/lib/ssh 2023-03-12 12:47:36 -05:00
patches Initial commit 2023-02-13 23:24:36 -06:00
portage Enable SELinux 2023-03-12 12:34:12 -05:00
u-boot@62e2ad1cea Initial commit 2023-02-13 23:24:36 -06:00
.gitignore Improve handling of circular dependencies 2023-02-21 09:58:18 -06:00
.gitmodules Initial commit 2023-02-13 23:24:36 -06:00
Makefile Simplify specifying packages to build/install 2023-03-08 11:12:00 -06:00
README.md Initial commit 2023-02-13 23:24:36 -06:00
build-all.sh Initial commit 2023-02-13 23:24:36 -06:00
build-grub.sh Support external build directory 2023-03-03 12:36:15 -06:00
build-host-tools.sh Simplify specifying packages to build/install 2023-03-08 11:12:00 -06:00
build-kernel.sh Support external build directory 2023-03-03 12:36:15 -06:00
build-rootfs.sh Enable SELinux 2023-03-12 12:34:12 -05:00
build-squashfs.sh Support external build directory 2023-03-03 12:36:15 -06:00
build-uboot.sh Support external build directory 2023-03-03 12:36:15 -06:00
build-update.sh Support external build directory 2023-03-03 12:36:15 -06:00
build.packages Simplify specifying packages to build/install 2023-03-08 11:12:00 -06:00
build.sh Simplify specifying packages to build/install 2023-03-08 11:12:00 -06:00
busybox.symlinks Enable SELinux 2023-03-12 12:34:12 -05:00
config Enable SELinux 2023-03-12 12:34:12 -05:00
config-portage.sh Improve handling of circular dependencies 2023-02-21 09:58:18 -06:00
config.txt Initial commit 2023-02-13 23:24:36 -06:00
genimage.cfg Support external build directory 2023-03-03 12:36:15 -06:00
genimage.sh Support external build directory 2023-03-03 12:36:15 -06:00
grub.cfg Initial commit 2023-02-13 23:24:36 -06:00
host-tools.packages Enable SELinux 2023-03-12 12:34:12 -05:00
install-update.sh install-update: Fix error message in die function 2023-03-08 11:12:00 -06:00
install.packages Simplify specifying packages to build/install 2023-03-08 11:12:00 -06:00
installonly.packages Simplify specifying packages to build/install 2023-03-08 11:12:00 -06:00
linux.config Enable SELinux 2023-03-12 12:34:12 -05:00
ocivm.sh vm-build: Add script to build in a microvm 2023-03-08 11:12:00 -06:00
patch-uboot.sh uboot: Apply patches outside container 2023-02-13 23:24:36 -06:00
podman-build.sh Add start-container.sh script 2023-02-21 09:58:18 -06:00
post-build.sh Support external build directory 2023-03-03 12:36:15 -06:00
prepare.sh prepare: Fix binpkg build for libcap 2023-03-06 15:02:46 -06:00
setup-local-repo.sh Initial commit 2023-02-13 23:24:36 -06:00
squashfs.exclude Enable SELinux 2023-03-12 12:34:12 -05:00
start-container.sh Add start-container.sh script 2023-02-21 09:58:18 -06:00
u-boot.config Initial commit 2023-02-13 23:24:36 -06:00
vm-build.sh vm-build: Add script to build in a microvm 2023-03-08 11:12:00 -06:00

README.md

Errors

SWIOTLB Buffer

OF: reserved mem: failed to allocate memory for node … Can not allocate SWIOTLB buffer earlier and can't now provide you with the DMA bounce buffer

Ensure start_x=1 is in config.txt and start_file/fixup_file are not specified.

U-Boot: Overwrite Reserved Memory

** Reading file would overwrite reserved memory **

Set CONFIG_LMB_MAX_REGIONS=16 in u-boot/.config