Tested by doing ‘make -C p2v run-virt-p2v-in-a-vm’.
---
 p2v/virt-p2v-make-disk.in | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/p2v/virt-p2v-make-disk.in b/p2v/virt-p2v-make-disk.in
index 61d3a85cd..7b35d357d 100644
--- a/p2v/virt-p2v-make-disk.in
+++ b/p2v/virt-p2v-make-disk.in
@@ -254,9 +254,8 @@ virt-builder "$osversion"                                   
    \
     --upload "$datadir"/launch-virt-p2v:/usr/bin/               \
     --chmod 0755:/usr/bin/launch-virt-p2v                       \
     --upload "$datadir"/p2v.service:/etc/systemd/system/        \
-    --mkdir /etc/systemd/system/default.target.wants            \
-    --link 
/lib/systemd/system/multi-user.target:/etc/systemd/system/default.target \
-    --link 
/etc/systemd/system/p2v.service:/etc/systemd/system/default.target.wants/p2v.service
 \
+    --mkdir /etc/systemd/system/multi-user.target.wants         \
+    --link 
/etc/systemd/system/p2v.service:/etc/systemd/system/multi-user.target.wants/p2v.service
 \
     --edit '/lib/systemd/system/[email protected]:
         s/^ExecStart=(.*)/ExecStart=$1 -a root/
     '                                                           \
-- 
2.13.2

_______________________________________________
Libguestfs mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to