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 _______________________________________________ Libguestfs mailing list [email protected] https://www.redhat.com/mailman/listinfo/libguestfs
