-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFE: nspawn: allow to disable os-release safety check via env var or so #29185
Comments
I am not sure I follow? Why not just populate /usr/lib/os-release with a valid file? |
There is a valid file there after the container is started, but while it is being started |
This setup is kinda weird, but I guess we should support it, at least via some env var you can set that relaxes the os-release check. Happy to take a patch for that! |
Introduce a new env variable $SYSTEMD_NSPAWN_CHECK_OS_RELEASE, that can be used to disable the os-release check for bootable OS trees. Useful when trying to boot a container with empty /etc and bind-mounted /usr. Resolves: systemd#29185
Introduce a new env variable $SYSTEMD_NSPAWN_CHECK_OS_RELEASE, that can be used to disable the os-release check for bootable OS trees. Useful when trying to boot a container with empty /etc and bind-mounted /usr. Resolves: systemd#29185
Introduce a new env variable $SYSTEMD_NSPAWN_CHECK_OS_RELEASE, that can be used to disable the os-release check for bootable OS trees. Useful when trying to boot a container with empty /etc/ and bind-mounted /usr/. Resolves: systemd#29185
Introduce a new env variable $SYSTEMD_NSPAWN_CHECK_OS_RELEASE, that can be used to disable the os-release check for bootable OS trees. Useful when trying to boot a container with empty /etc/ and bind-mounted /usr/. Resolves: systemd#29185
Introduce a new env variable $SYSTEMD_NSPAWN_CHECK_OS_RELEASE, that can be used to disable the os-release check for bootable OS trees. Useful when trying to boot a container with empty /etc/ and bind-mounted /usr/. Resolves: systemd#29185
Introduce a new env variable $SYSTEMD_NSPAWN_CHECK_OS_RELEASE, that can be used to disable the os-release check for bootable OS trees. Useful when trying to boot a container with empty /etc/ and bind-mounted /usr/. Resolves: #29185
Introduce a new env variable $SYSTEMD_NSPAWN_CHECK_OS_RELEASE, that can be used to disable the os-release check for bootable OS trees. Useful when trying to boot a container with empty /etc/ and bind-mounted /usr/. Resolves: systemd#29185
systemd version the issue has been seen with
254.1-3
Used distribution
Debian
Linux kernel version used
6.4.0-2-amd64
CPU architectures issue was seen on
x86_64
Component
systemd-nspawn
Expected behaviour you didn't see
I think that
systemd-nspawn
should be able to start containers which have an empty and bind-mounted/usr
directory.Unexpected behaviour you saw
systemd-nspawn
fails to start containers with a bind-mounted/usr
if/etc
is empty or if/etc/os-release
is the usual symlink to the file in/usr
.Steps to reproduce the problem
Initialization:
The container fails to start:
Unless I create a bogus os-release file:
Additional program output to the terminal or log subsystem illustrating the issue
The text was updated successfully, but these errors were encountered: