Hello community,
here is the log from the commit of package yast2-firstboot-wsl for
openSUSE:Leap:15.2 checked in at 2020-02-21 10:49:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/yast2-firstboot-wsl (Old)
and /work/SRC/openSUSE:Leap:15.2/.yast2-firstboot-wsl.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-firstboot-wsl"
Fri Feb 21 10:49:35 2020 rev:1 rq:775915 version:1
Changes:
--------
New Changes file:
--- /dev/null 2019-12-19 10:12:34.003146842 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.yast2-firstboot-wsl.new.26092/yast2-firstboot-wsl.changes
2020-02-21 10:49:36.390952923 +0100
@@ -0,0 +1,14 @@
+-------------------------------------------------------------------
+Thu Jan 30 10:43:33 UTC 2020 - Ludwig Nussel <[email protected]>
+
+- refresh patch after yast2-firstboot changes
+
+-------------------------------------------------------------------
+Tue Oct 15 15:15:16 UTC 2019 - Ludwig Nussel <[email protected]>
+
+- enable registration on SLE
+
+-------------------------------------------------------------------
+Mon Oct 14 12:05:39 UTC 2019 - Ludwig Nussel <[email protected]>
+
+- initial package
New:
----
firstboot-transform.xsl
firstboot_write_wsl.rb
welcome.txt
yast2-firstboot-wsl.changes
yast2-firstboot-wsl.diff
yast2-firstboot-wsl.spec
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-firstboot-wsl.spec ++++++
#
# spec file for package yast2-firstboot-wsl
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: yast2-firstboot-wsl
Summary: YaST2 firstboot settings for WSL images
License: GPL-2.0-only
Group: System/YaST
Version: 1
Release: 0
BuildArch: noarch
Source0: firstboot_write_wsl.rb
Source1: firstboot-transform.xsl
Source10: welcome.txt
Patch0: yast2-firstboot-wsl.diff
Url: https://build.opensuse.org/project/show/Virtualization:WSL
BuildRequires: xsltproc
BuildRequires: yast2-firstboot
%description
YaST2 firstboot settings for WSL images
%prep
%setup -Tc
cp /etc/YaST2/firstboot.xml firstboot-wsl.xml
%patch0 -p1
%if !0%{?is_opensuse}
xsltproc "%{SOURCE1}" firstboot-wsl.xml > firstboot-wsl.xml.new
mv firstboot-wsl.xml.new firstboot-wsl.xml
%endif
%build
%install
mkdir -p %{buildroot}/etc/YaST2
mkdir -p %{buildroot}/usr/share/YaST2/{clients,data}
#
install -m 644 firstboot-wsl.xml %{buildroot}/etc/YaST2/firstboot-wsl.xml
#
install -m 644 %{SOURCE0} %{buildroot}/usr/share/YaST2/clients
#
install -m 644 %{SOURCE10} %{buildroot}/usr/share/YaST2/data
%files
/etc/YaST2/firstboot-wsl.xml
/usr/share/YaST2
%changelog
++++++ firstboot-transform.xsl ++++++
<!-- awesome xslt by Fabian -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:y="http://www.suse.com/1.0/yast2ns"
xmlns="http://www.suse.com/1.0/yast2ns"
xmlns:config="http://www.suse.com/1.0/configns">
<xsl:output indent="yes"/>
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="y:module[y:name = 'registration']/y:enabled/text()">
<xsl:text>true</xsl:text>
</xsl:template>
</xsl:stylesheet>
++++++ firstboot_write_wsl.rb ++++++
# encoding: utf-8
# ------------------------------------------------------------------------------
# Copyright (c) 2019 SUSE Inc., Inc. All Rights Reserved.
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of version 2 of the GNU General Public License as published by the
# Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, contact Novell, Inc.
#
# To contact Novell about this file by physical or electronic mail, you may find
# current contact information at www.novell.com.
# ------------------------------------------------------------------------------
require "yast2/target_file"
require "etc"
module Yast
class FirstbootWriteWSLClient < Client
def main
return :back if GetInstArgs.going_back
@users = UsersSimple.GetUsers()
unless @users.empty?
@uid = Etc.getpwnam(@users[0]['uid']).uid
Yast::TargetFile.write("/run/wsl_firstboot_uid", @uid)
end
# systemd-machine-id-setup is smart enough to only populate
# /etc/machine-id when empty or missing
SCR.Execute(path('.target.bash'), '/usr/bin/systemd-machine-id-setup')
:next
#EOF
end
end
end
Yast::FirstbootWriteWSLClient.new.main
++++++ welcome.txt ++++++
<p><b>Welcome to &product; on WSL!</b></p>
<p>There are a few more steps to take before &product; is ready to
use.</p>
<p>It is recommended to create a Linux user account and set a
password for the root account. The user name does not need to
match the Windows user name. Please visit https://aka.ms/wslusers
for more information.</p>
<p>Hit <b>Next</b> to continue</p>
++++++ yast2-firstboot-wsl.diff ++++++
Index: yast2-firstboot-wsl/firstboot-wsl.xml
===================================================================
--- yast2-firstboot-wsl.orig/firstboot-wsl.xml
+++ yast2-firstboot-wsl/firstboot-wsl.xml
@@ -20,8 +20,8 @@
If the variable is missing (commented), the check box won't appear.
The value of the variable (true/false) will set the default value for
the check box.
- <root_password_as_first_user
config:type="boolean">true</root_password_as_first_user>
-->
+ <root_password_as_first_user
config:type="boolean">true</root_password_as_first_user>
<!-- The default value of "Automatic Login" checkbox -->
<enable_autologin config:type="boolean">false</enable_autologin>
@@ -55,11 +55,12 @@
<modules config:type="list">
<module>
<label>Network Autosetup</label>
+ <enabled config:type="boolean">false</enabled>
<name>firstboot_setup_dhcp</name>
</module>
<module>
<label>Language and Keyboard</label>
- <enabled config:type="boolean">true</enabled>
+ <enabled config:type="boolean">false</enabled>
<!-- step for configuration of both language and keyboard
layout (fate#306296) -->
<name>firstboot_language_keyboard</name>
</module>
@@ -94,7 +95,7 @@
<enabled config:type="boolean">false</enabled>
</module>
<module>
- <enabled config:type="boolean">true</enabled>
+ <enabled config:type="boolean">false</enabled>
<name>firstboot_ssh</name>
</module>
<module>
@@ -109,7 +110,7 @@
</module>
<module>
<label>Time and Date</label>
- <enabled config:type="boolean">true</enabled>
+ <enabled config:type="boolean">false</enabled>
<name>firstboot_timezone</name>
</module>
<module>
@@ -155,6 +156,13 @@
<enable_next>no</enable_next>
</module>
<module>
+ <label>Finish WSL Setup</label>
+ <name>firstboot_write_wsl</name>
+ <enable_back>no</enable_back>
+ <enable_next>no</enable_next>
+ </module>
+
+ <module>
<label>Finish Setup</label>
<name>inst_congratulate</name>
<enable_back>no</enable_back>
@@ -165,10 +173,10 @@
</workflow>
</workflows>
<texts>
- <!--
- Labels used during Automatic Configuration: use "text_id" from "ac_step"
- -->
- <ac_label_1><label>Configuring network...</label></ac_label_1>
- <ac_label_2><label>Configuring hardware...</label></ac_label_2>
+ <congratulate><label>
+ <p>Configuration of &product; for WSL is
complete!</p>
+ <p>Call yast2 any time to tweak it.</p>
+ <p>Have a lot of fun...</p>
+ </label></congratulate>
</texts>
</productDefines>