]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: backup /etc/udev/udev.conf only if it exists 30387/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 8 Dec 2023 17:38:41 +0000 (18:38 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 8 Dec 2023 17:38:41 +0000 (18:38 +0100)
commite23fc070e287397d2f047028f953986356badf2f
treed5f55c039901e8e008fc73490bfba0a9f53f8e03
parentad23ff13deb4e057d435adb941e58cd552beac02
test: backup /etc/udev/udev.conf only if it exists

On Fedora systemd recently moved all of its configuration files to
/usr/lib/ [0], so make sure we account for this case as well.

[   42.450325] testsuite-17.sh[800]: + mkdir -p /run/udev/rules.d
[   42.466504] testsuite-17.sh[800]: + cp -f /etc/udev/udev.conf /etc/udev/udev.conf.bckp
[   42.503348] testsuite-17.sh[802]: cp: cannot stat '/etc/udev/udev.conf': No such file or directory

[0] https://src.fedoraproject.org/rpms/systemd/c/29eb35530b29232eed65718d0cd96d67cd7ffd6b?branch=rawhide
test/units/testsuite-17.03.sh