]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add empty /etc/resolv.conf in test image
authorLuca Boccassi <luca.boccassi@microsoft.com>
Tue, 2 Feb 2021 17:16:41 +0000 (17:16 +0000)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Wed, 10 Feb 2021 18:54:12 +0000 (18:54 +0000)
Portable services have a BindPath pointing to it, so it needs to
be available in the image

test/test-functions

index 612a693e8a7faa1ae8b3fdd7cc74d28c44b0216f..e3831f28f1049bdcb4bd9df748b16a8bc66586b8 100644 (file)
@@ -1106,6 +1106,7 @@ install_config_files() {
     # we want an empty environment
     > $initdir/etc/environment
     > $initdir/etc/machine-id
+    > $initdir/etc/resolv.conf
 
     # set the hostname
     echo systemd-testsuite > $initdir/etc/hostname