Bug 1928235 - rpm post script wants to set stuff, thats not there.
Summary: rpm post script wants to set stuff, thats not there.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 34
Hardware: aarch64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-12 17:14 UTC by customercare
Modified: 2021-02-23 08:14 UTC (History)
18 users (show)

Fixed In Version: systemd-248~rc1-1.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-23 08:14:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description customercare 2021-02-12 17:14:37 UTC
Ausgeführtes Scriptlet: elfutils-libelf-0.182-3.fc34.aarch64                                                                                                                                                                                                              7/7 
Couldn't write '0' to 'kernel/yama/ptrace_scope', ignoring: No such file or directory
Not setting net/ipv4/conf/all/rp_filter (explicit setting exists).
Not setting net/ipv4/conf/default/rp_filter (explicit setting exists).
Not setting net/ipv4/conf/all/accept_source_route (explicit setting exists).
Not setting net/ipv4/conf/default/accept_source_route (explicit setting exists).
Not setting net/ipv4/conf/all/promote_secondaries (explicit setting exists).
Not setting net/ipv4/conf/default/promote_secondaries (explicit setting exists).
Couldn't write 'fq_codel' to 'net/core/default_qdisc', ignoring: No such file or directory


Device: Pinephone
Kernel: 5.11.0rc7 (megi Build)

Comment 1 Mark Wielaard 2021-02-12 17:28:38 UTC
(In reply to customercare from comment #0)
> Ausgeführtes Scriptlet: elfutils-libelf-0.182-3.fc34.aarch64                
> 7/7 
> Couldn't write '0' to 'kernel/yama/ptrace_scope', ignoring: No such file or
> directory
> Not setting net/ipv4/conf/all/rp_filter (explicit setting exists).
> Not setting net/ipv4/conf/default/rp_filter (explicit setting exists).
> Not setting net/ipv4/conf/all/accept_source_route (explicit setting exists).
> Not setting net/ipv4/conf/default/accept_source_route (explicit setting
> exists).
> Not setting net/ipv4/conf/all/promote_secondaries (explicit setting exists).
> Not setting net/ipv4/conf/default/promote_secondaries (explicit setting
> exists).
> Couldn't write 'fq_codel' to 'net/core/default_qdisc', ignoring: No such
> file or directory
> 
> 
> Device: Pinephone
> Kernel: 5.11.0rc7 (megi Build)

I am slightly confused. Is this an error on Fedora, or are you reusing the Fedora package on a pinephone device that doesn't have those settings?
If your setup doesn't support those settings then you shouldn't use the Fedora specific scripts.

Comment 2 customercare 2021-02-12 18:08:12 UTC
It's the Fedora SIG Mobilities Build for Pinephone ( more or the official fedora version ) . The base image uses Fedora Minimal afaik.
Currently it's F34. 

If those missing kernel settings are a problem of any kind, give me a hint and i will forward it to the megi kernel builder.

Comment 3 Mark Wielaard 2021-02-12 18:19:54 UTC
(In reply to customercare from comment #2)
> If those missing kernel settings are a problem of any kind, give me a hint
> and i will forward it to the megi kernel builder.

There are various settings mentioned in those warnings that have nothing to do with elfutils.
All elfutils does is:

%sysctl_apply 10-default-yama-scope.conf

sysctl_apply is a macro from the systemd package that simply reloads various sysctl settings.
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_binfmt_d_sysctl_d_and_tmpfiles_d

You probably need to coordinate with the systemd packagers what that macro should do for non-existing settings.

Comment 4 Mark Wielaard 2021-02-15 22:48:53 UTC
This seems a generic issue with the sysctl_apply macro when used for sysctl values the kernel doesn't support.
This should either be fixed in systemd to handle such issues. Or the kernel simply needs to support such sysctls to be able to handle Fedora packages.

Comment 5 Zbigniew Jędrzejewski-Szmek 2021-02-19 18:03:37 UTC
> Not setting net/ipv4/conf/all/rp_filter (explicit setting exists).
> Not setting net/ipv4/conf/default/rp_filter (explicit setting exists).
> Not setting net/ipv4/conf/all/accept_source_route (explicit setting exists).
> Not setting net/ipv4/conf/default/accept_source_route (explicit setting exists).
> Not setting net/ipv4/conf/all/promote_secondaries (explicit setting exists).
> Not setting net/ipv4/conf/default/promote_secondaries (explicit setting exists).
→ Those will be gone with https://github.com/systemd/systemd/pull/18663.

> Couldn't write '0' to 'kernel/yama/ptrace_scope', ignoring: No such file or directory
I think this should be added to the kernel.

> Couldn't write 'fq_codel' to 'net/core/default_qdisc', ignoring: No such
https://github.com/systemd/systemd/pull/18705


Note You need to log in before you can comment on or make changes to this bug.