1
0
Fork 0

improve podman setup post install

This commit is contained in:
Pratham Patel 2023-03-10 19:45:05 +05:30
parent 37325e8dd3
commit 8438fcbd9d
1 changed files with 2 additions and 0 deletions

View File

@ -163,6 +163,8 @@ gsettings set org.gnome.desktop.interface color-scheme prefer-dark
# podman
if ! command -v podman > /dev/null; then
grep net.ipv4.ping_group_range /etc/sysctl.conf || echo "net.ipv4.ping_group_range=0 $(grep pratham /etc/subuid | awk -F ":" '{print $2 + $3}')" | doas tee -a /etc/sysctl.conf
grep "kernel.unprivileged_userns_clone=1" /etc/sysctl.conf || echo "kernel.unprivileged_userns_clone=1" | doas tee -a /etc/sysctl.conf
podman system migrate
fi
# tldr