- Load the tun kernel module before running dockerd-rootless-setuptool.sh,
as both slirp4netns and pasta drivers require /dev/net/tun inside a user
namespace. On Arch Linux CONFIG_TUN=m so the module must be loaded
explicitly. If modprobe fails (kernel mismatch after pacman -Syu without
reboot), warn but don't fail — a reboot will fix it.
- Create the systemd override directory and override.conf BEFORE running
the setuptool, so when the setuptool starts docker.service it picks up
the pasta network driver instead of defaulting to slirp4netns.
- Pass DOCKERD_ROOTLESS_ROOTLESSKIT_NET env var to the setuptool command
as well, for belt-and-suspenders coverage.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>