It already has code to skip the format registration for containers which WSL is to some extend.
# check if we're running inside an (lxc) container
# (we may copy or move this to the postinst script too, to skip installing it)
grep -zqs ^container= /proc/1/environ && exit 0
It already has code to skip the format registration for containers which WSL is to some extend.
# check if we're running inside an (lxc) container
# (we may copy or move this to the postinst script too, to skip installing it)
grep -zqs ^container= /proc/1/environ && exit 0
Maybe this just needs an extension to cover WSL?