From 8a0f0357b598a86fe9345eae4a2afaf4b2ef2c01 Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Thu, 5 Dec 2024 15:26:37 +0100 Subject: [PATCH] Create wsl-distribution.conf for WSL images This file is required in the new Microsoft WSL package format. Co-authored-by: Carlos Nihelton --- .../hooks/01-distribution-conf.chroot | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 live-build/ubuntu-wsl/hooks/01-distribution-conf.chroot diff --git a/live-build/ubuntu-wsl/hooks/01-distribution-conf.chroot b/live-build/ubuntu-wsl/hooks/01-distribution-conf.chroot new file mode 100755 index 00000000..f470e51e --- /dev/null +++ b/live-build/ubuntu-wsl/hooks/01-distribution-conf.chroot @@ -0,0 +1,20 @@ +#!/bin/bash -eu +# vi: ts=4 expandtab +# +# Create wsl-distribution.conf for WSL setup +# + +source /etc/os-release + +cat </etc/wsl-distribution.conf +[oobe] +command = /usr/libexec/wsl-setup +defaultUid = 1000 +defaultName = ${NAME}-${VERSION_ID} + +[shortcut] +icon = /usr/share/wsl/ubuntu.ico + +[windowsterminal] +ProfileTemplate = /usr/share/wsl/terminal-profile.json +EOF