]> git.ipfire.org Git - thirdparty/systemd.git/commit
kernel-install: do not silently ignore files we can't read
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 1 Jul 2022 08:58:01 +0000 (10:58 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 6 Jul 2022 14:33:11 +0000 (16:33 +0200)
commit035f8acdf737ee5e0c49feaa14dd8cfcea0ffa5f
tree742db52f0ff90321ae6e8f0c4162392bd885cc45
parentf5f5047ff1d4008687186a45066f94f5b3a830fa
kernel-install: do not silently ignore files we can't read

'test -r' is changed to 'test -f' everywhere. If the file exists but we
cannot read it, it would be better if we fail with a permission error. E.g. if
/etc/kernel/cmdline is unreadable, and we're running something as non-root, we
shouldn't fall back to /usr/lib/kernel/cmdline. This commit doesn't resolve
this fully, because we're not running with 'set -e', but this is a preparator
step.
src/kernel-install/90-loaderentry.install
src/kernel-install/kernel-install.in