[Libguestfs] [PATCH 2/2] customize: firstboot: Install firstboot scripts in multi-user.target (RHBZ#1469655).

Richard W.M. Jones rjones at redhat.com
Sun Jul 16 21:02:24 UTC 2017


When the guest uses systemd, install firstboot scripts under
‘multi-user.target’.

See this link for details:
https://lists.freedesktop.org/archives/systemd-devel/2017-July/039325.html

This fixes firstboot on Fedora 26 (and in general with systemd >= 233).

Thanks: Lennart Poettering
---
 customize/firstboot.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/customize/firstboot.ml b/customize/firstboot.ml
index 35cb87c2b..bd4f7850f 100644
--- a/customize/firstboot.ml
+++ b/customize/firstboot.ml
@@ -80,7 +80,7 @@ then
 fi
 " firstboot_dir firstboot_dir
 
-  let systemd_target = "default.target"
+  let systemd_target = "multi-user.target"
 
   let firstboot_service = sprintf "\
 [Unit]
-- 
2.13.2




More information about the Libguestfs mailing list