-
-
Notifications
You must be signed in to change notification settings - Fork 4k
systemd-tmpfiles don't work on kernel without support AT_EMPTY_PATH #689
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
Comments
Sorry, but 2.6.32 is well over 5.5 years old, we shouldn't work around such ancient versions. AT_EMPTY_PATH was introduced in v2.6.39, and systemd, including all its components, currently depends on >= v3.7. |
sorry, this dublicate #421 |
Hmm, what's the relation to #421 here? |
old kernel without AT_EMPTY_PATH ? |
I cannot see how #421 is about Anyway, if you want to solve this issue for you, you need to carry a patch downstream. Otherwise, I'd strongly suggest to base your system on a much newer kernel version. Relying on such an old kernel is a dead end. |
@zonque see the comment #421 (comment) regarding AT_EMPTY_PATH. I think @shaba is right, it's the same issue with too old kernels that we don't support in systemd anymore. |
Ah, sorry, in the comments. Ok then. |
Hi.
We(ALTLinux) are use systemd utils for SysV init too. For example, rc.sysinit use systemd-modules-load,systemd-sysctl, rc.d/udev use systemd-tmpfiles.
Also, we are use old kernel ( kernel-2.6.32-ovz-042stab108.6) for openvz (with SysV + systemd-utils)
Sinse systemd-v220, after 48b8aaa commit, systemd-tmpfiles check AT_EMPTY_PATH and show error "Failed to fstat() file /foo: Invalid argument"
strace -P/home -P/srv systemd-tmpfiles --create /lib/tmpfiles.d/home.conf
mkdir("/home", 0755) = -1 EEXIST (File exists)
lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/home", O_RDONLY|O_NOFOLLOW|O_NOATIME|O_CLOEXEC|O_PATH) = 3
newfstatat(3, "", 0x7fff188ae9a0, AT_EMPTY_PATH) = -1 EINVAL (Invalid argument)
Failed to fstat() file /home: Invalid argument
close(3) = 0
mkdir("/srv", 0755) = -1 EEXIST (File exists)
lstat("/srv", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/srv", O_RDONLY|O_NOFOLLOW|O_NOATIME|O_CLOEXEC|O_PATH) = 3
newfstatat(3, "", 0x7fff188ae9a0, AT_EMPTY_PATH) = -1 EINVAL (Invalid argument)
Failed to fstat() file /srv: Invalid argument
close(3) = 0
The text was updated successfully, but these errors were encountered: