Public bug reported:

Despite being out of standard support, Ubuntu 20.04 LTS Focal Fossa
remains an important release under WSL. Data insights show that around
10% of the Monthly Active User base of Ubuntu releases on WSL remain on
20.04. The `wsl-setup` package is critical for building usable WSL
images in the new tar-based format that no longer requires or depends on
MS Store. Building images of Focal in this new format allows for more
adoption of Ubuntu on WSL on corporate environments, where MS Store is
usually restricted or inaccessible, and that feeds into the adoption of
Ubuntu Pro, given that only Pro subscribers will be running Focal due
EOL. Thus enabling Focal in the new image format is strategical for
Ubuntu on WSL.

[Impact]

* `wsl-setup` is exclusive to Ubuntu WSL, so no other Ubuntu product or 
experience is affected.
* The mere acceptance of wsl-setup into Focal is harmless because it will be a 
new package, only installable explicitly, not via upgrades.
* Current Ubuntu 20.04 on WSL instances that could get `wsl-setup` installed by 
`apt install wsl-setup` won't be functionally affected, as no code will be 
executed as part of the upgrade or later. systemd overrides shipped within this 
package are already injected into the rootfs via the Windows binary that 
launches the distro instance during the first run, so they will be just 
redundant.
* Once we start building new images (in the new format) with the planned 
version of wsl-setup already seeded, then we'll have measurable impacts of the 
changes herein proposed, but those would only affect new installations. The 
script and systemd hooks herein proposed are the same present in Jammy and 
later, thus those releases will be in feature parity in terms of first boot 
experience.

[Test Plan]

- Requires Windows 10 or 11 and WSL.

Test 1. Check systemd overrides

* Install a fresh instance of Ubuntu 20.04 on WSL: `wsl.exe --install -d 
Ubuntu-20.04`
* Once the setup finishes, verify the system status with `systemctl --failed` 
It should print 0 failed units:
u@DESKTOP-551PQ9O:~$ systemctl --failed
  UNIT LOAD ACTIVE SUB DESCRIPTION
0 loaded units listed.
* Exit (Ctrl+D), shutdown WSL and restart the instance: `wsl.exe --shutdown; 
wsl.exe -d Ubuntu-20.04`
* Once the shell is up and running, verify the system status again with 
`systemctl --failed` It should print 0 failed units.
* Enable '-proposed' and apply selective upgrading from it, as described in 
https://wiki.ubuntu.com/Testing/EnableProposed.
* Install wsl-setup: `apt install -y wsl-setup/focal-proposed`.
0 loaded units listed.
* Exit (Ctrl+D), shutdown WSL and restart the instance: `wsl.exe --shutdown; 
wsl.exe -d Ubuntu-20.04`
* Once the shell is up and running, verify the system status once more with 
`systemctl --failed` It should print 0 failed units.

[Where problems could occur]

Existing users manually installing `wsl-setup` could find insufficient
systemd unit overrides leading to a degraded output from `systemctl
--status`. Even under that condition, most users wouldn't notice any
issue in practice. Yet, there is no practical reason for users to
install this package today. Subsequent work is needed to patch livecd-
rootfs and the ubuntu seed for focal to build focal in the new image
format and thus leverage those changes in wsl-setup.

[Other Info]

 * `wsl-setup` is already in main for Jammy and later, but never
released into Focal.

** Affects: wsl-setup (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to wsl-setup in Ubuntu.
https://bugs.launchpad.net/bugs/2115426

Title:
  [SRU] Backport wsl-setup as new packge for Focal

Status in wsl-setup package in Ubuntu:
  New

Bug description:
  Despite being out of standard support, Ubuntu 20.04 LTS Focal Fossa
  remains an important release under WSL. Data insights show that around
  10% of the Monthly Active User base of Ubuntu releases on WSL remain
  on 20.04. The `wsl-setup` package is critical for building usable WSL
  images in the new tar-based format that no longer requires or depends
  on MS Store. Building images of Focal in this new format allows for
  more adoption of Ubuntu on WSL on corporate environments, where MS
  Store is usually restricted or inaccessible, and that feeds into the
  adoption of Ubuntu Pro, given that only Pro subscribers will be
  running Focal due EOL. Thus enabling Focal in the new image format is
  strategical for Ubuntu on WSL.

  [Impact]

  * `wsl-setup` is exclusive to Ubuntu WSL, so no other Ubuntu product or 
experience is affected.
  * The mere acceptance of wsl-setup into Focal is harmless because it will be 
a new package, only installable explicitly, not via upgrades.
  * Current Ubuntu 20.04 on WSL instances that could get `wsl-setup` installed 
by `apt install wsl-setup` won't be functionally affected, as no code will be 
executed as part of the upgrade or later. systemd overrides shipped within this 
package are already injected into the rootfs via the Windows binary that 
launches the distro instance during the first run, so they will be just 
redundant.
  * Once we start building new images (in the new format) with the planned 
version of wsl-setup already seeded, then we'll have measurable impacts of the 
changes herein proposed, but those would only affect new installations. The 
script and systemd hooks herein proposed are the same present in Jammy and 
later, thus those releases will be in feature parity in terms of first boot 
experience.

  [Test Plan]

  - Requires Windows 10 or 11 and WSL.

  Test 1. Check systemd overrides

  * Install a fresh instance of Ubuntu 20.04 on WSL: `wsl.exe --install -d 
Ubuntu-20.04`
  * Once the setup finishes, verify the system status with `systemctl --failed` 
It should print 0 failed units:
  u@DESKTOP-551PQ9O:~$ systemctl --failed
    UNIT LOAD ACTIVE SUB DESCRIPTION
  0 loaded units listed.
  * Exit (Ctrl+D), shutdown WSL and restart the instance: `wsl.exe --shutdown; 
wsl.exe -d Ubuntu-20.04`
  * Once the shell is up and running, verify the system status again with 
`systemctl --failed` It should print 0 failed units.
  * Enable '-proposed' and apply selective upgrading from it, as described in 
https://wiki.ubuntu.com/Testing/EnableProposed.
  * Install wsl-setup: `apt install -y wsl-setup/focal-proposed`.
  0 loaded units listed.
  * Exit (Ctrl+D), shutdown WSL and restart the instance: `wsl.exe --shutdown; 
wsl.exe -d Ubuntu-20.04`
  * Once the shell is up and running, verify the system status once more with 
`systemctl --failed` It should print 0 failed units.

  [Where problems could occur]

  Existing users manually installing `wsl-setup` could find insufficient
  systemd unit overrides leading to a degraded output from `systemctl
  --status`. Even under that condition, most users wouldn't notice any
  issue in practice. Yet, there is no practical reason for users to
  install this package today. Subsequent work is needed to patch livecd-
  rootfs and the ubuntu seed for focal to build focal in the new image
  format and thus leverage those changes in wsl-setup.

  [Other Info]

   * `wsl-setup` is already in main for Jammy and later, but never
  released into Focal.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wsl-setup/+bug/2115426/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to