test: fix setup_suse() to make it work with an already populated root
authorFranck Bui <fbui@suse.com>
Mon, 5 Mar 2018 18:02:25 +0000 (19:02 +0100)
committerFranck Bui <fbui@suse.com>
Mon, 5 Mar 2018 18:24:23 +0000 (19:24 +0100)
test/test-functions

index 2ece554..17e83cc 100644 (file)
@@ -1383,8 +1383,8 @@ inst_libdir_file() {
 }
 
 setup_suse() {
-    ln -s ../usr/bin/systemctl $initdir/bin/systemctl
-    ln -s ../usr/lib/systemd $initdir/lib/systemd
+    ln -fs ../usr/bin/systemctl $initdir/bin/
+    ln -fs ../usr/lib/systemd $initdir/lib/
     inst_simple "/usr/lib/systemd/system/haveged.service"
 }