livecd-rootfs/live-build/ubuntu-wsl/hooks/00-enable-systemd.chroot
Didier Roche e5d6d07bad
Enable systemd as part of image creation
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 <jean-baptiste@ubuntu.com>
2024-02-07 16:58:45 +01:00

11 lines
136 B
Bash
Executable File

#!/bin/bash -eu
# vi: ts=4 expandtab
#
# Enable systemd by default on our WSL image
#
cat <<EOF >/etc/wsl.conf
[boot]
systemd=true
EOF