You are not logged in.
During my last update the pacman hook /usr/share/libalpm/hooks/30-systemd-tmpfiles.hook failed.
Something along the line of:
(3/5) Creating temporary files...
Error: Command failed to execute correctly
The hook with that description /usr/share/libalpm/hooks/30-systemd-tmpfiles.hook contains
"Exec = /usr/share/libalpm/scripts/systemd-hook tmpfiles"
And that leads to:
tmpfiles) /usr/bin/systemd-tmpfiles --create ;;
So I executed /usr/bin/systemd-tmpfiles --create myself and I got this:
Failed to write file "/sys/devices/system/cpu/cpufreq/policy6/energy_performance_preference": Invalid argument
Failed to write file "/sys/devices/system/cpu/cpufreq/policy4/energy_performance_preference": Invalid argument
Failed to write file "/sys/devices/system/cpu/cpufreq/policy7/energy_performance_preference": Invalid argument
Failed to write file "/sys/devices/system/cpu/cpufreq/policy5/energy_performance_preference": Invalid argument
I have an 8-core machine but I boot with nosmt. After turning smt back on with `sudo tee /sys/devices/system/cpu/smt/control <<< on` the command executed properly.
Edit:
This appears to be pebkac.
I had a file /etc/tmpfiles.d/energy_performance_preference.conf with
w /sys/devices/system/cpu/cpufreq/policy?/energy_performance_preference - - - - power
How do you make it so this only matches the files it can access?
Accesing policy[5-7] only fails with smt disabled, ala:
cat: /sys/devices/system/cpu/cpufreq/policy7/energy_performance_preference: No such device or address
Last edited by DeadLink404 (2021-12-04 20:40:40)
Offline