mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-22 19:01:30 +00:00
Create wsl-distribution.conf for WSL images
This file is required in the new Microsoft WSL package format. Co-authored-by: Carlos Nihelton <carlos.santanadeoliveira@canonical.com>
This commit is contained in:
parent
42f3b442e9
commit
8a0f0357b5
20
live-build/ubuntu-wsl/hooks/01-distribution-conf.chroot
Executable file
20
live-build/ubuntu-wsl/hooks/01-distribution-conf.chroot
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash -eu
|
||||
# vi: ts=4 expandtab
|
||||
#
|
||||
# Create wsl-distribution.conf for WSL setup
|
||||
#
|
||||
|
||||
source /etc/os-release
|
||||
|
||||
cat <<EOF >/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
|
Loading…
x
Reference in New Issue
Block a user