From e5d6d07bade099d417e516c6e8ae3d9970672a2c Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Wed, 7 Feb 2024 11:19:46 +0100 Subject: [PATCH] Enable systemd as part of image creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Microsoft offically support systemd now and our Pro service relies on it. This option is enabled by default via our launcher (Windows-side) on first run for quite a while. Remve this file creation from it, don’t ship it in a package as the file may be altered by the user to add additional options and ship it as part of the rootfs. Co-authored-by: Jean-Baptiste Lallement --- live-build/ubuntu-wsl/hooks/00-enable-systemd.chroot | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 live-build/ubuntu-wsl/hooks/00-enable-systemd.chroot diff --git a/live-build/ubuntu-wsl/hooks/00-enable-systemd.chroot b/live-build/ubuntu-wsl/hooks/00-enable-systemd.chroot new file mode 100755 index 00000000..67f9d852 --- /dev/null +++ b/live-build/ubuntu-wsl/hooks/00-enable-systemd.chroot @@ -0,0 +1,10 @@ +#!/bin/bash -eu +# vi: ts=4 expandtab +# +# Enable systemd by default on our WSL image +# + +cat </etc/wsl.conf +[boot] +systemd=true +EOF