Skip to content

Commit 05a9dfa

Browse files
committed
test: ensure directory exists before creating symlinks
01:42:08 I: Masking supporting services 01:42:08 ln: failed to create symbolic link '/var/tmp/systemd-test-TEST-24-CRYPTSETUP_3/root/etc/systemd/system/systemd-hwdb-update.service': No such file or directory
1 parent ce32489 commit 05a9dfa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/test-functions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2024,6 +2024,7 @@ setup_basic_dirs() {
20242024

20252025
mask_supporting_services() {
20262026
# mask some services that we do not want to run in these tests
2027+
mkdir -p "$initdir/etc/systemd/system/"
20272028
ln -fsv /dev/null "${initdir:?}/etc/systemd/system/systemd-hwdb-update.service"
20282029
ln -fsv /dev/null "$initdir/etc/systemd/system/systemd-journal-catalog-update.service"
20292030
ln -fsv /dev/null "$initdir/etc/systemd/system/systemd-networkd.service"

0 commit comments

Comments
 (0)