[Libguestfs] [PATCH v2 4/4] p2v: make-disk: Install p2v service in multi-user.target instead of default.target.

Richard W.M. Jones rjones at redhat.com
Mon Jul 17 15:06:08 UTC 2017


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/getty at .service:
         s/^ExecStart=(.*)/ExecStart=$1 -a root/
     '                                                           \
-- 
2.13.2




More information about the Libguestfs mailing list