The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd-pkg-ubuntu/pull/39
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === This solves [LP #1862550](https://bugs.launchpad.net/ubuntuwsl/+bug/1862550) by skipping directly if it detects that it is using WSL. The reason for doing this is that WSL does not support snap, and: 1. to reduce the confusion for WSL users who tries to update; and 2. to prevent the issue of broken dependencies during the upgrade to Ubuntu 20.04 LTS on WSL. The last PR does not have a sign-off so I re-opened one. Signed-off-by: Jinming Wu, Patrick <me@patrickwu.space>
From 85e77b5e9574a0a421ca2a1e2c2fec54849c40ea Mon Sep 17 00:00:00 2001 From: "Jinming Wu, Patrick" <me@patrickwu.space> Date: Fri, 17 Apr 2020 09:40:43 +0800 Subject: [PATCH] Properly handling for WSL upgrade Signed-off-by: Jinming Wu, Patrick <me@patrickwu.space> --- debian/lxd.preinst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/lxd.preinst b/debian/lxd.preinst index aede3e04..20aa071b 100644 --- a/debian/lxd.preinst +++ b/debian/lxd.preinst @@ -23,6 +23,12 @@ case "$1" in COUNT=0 SKIP=false while :; do + if [ -f /proc/sys/fs/binfmt_misc/WSLInterop ]; then + echo "===> WSL detected; Skipping migration" + SKIP=true + break + fi + snap info lxd >/dev/null 2>&1 && break db_fset lxd/snap-no-connectivity seen false
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel