Skip to content

Commit

Permalink
Update entrypoint.sh to ensure compatibility with Podman rootless
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-sung authored Sep 24, 2024
1 parent bea3142 commit f096f6e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
# exit when any command fails
set -e

# create a tun device
sudo mkdir -p /dev/net
sudo mknod /dev/net/tun c 10 200
sudo chmod 600 /dev/net/tun
# create a tun device if not exist to ensure compatibility with Podman
if [ ! -e /dev/net/tun ]; then
sudo mkdir -p /dev/net
sudo mknod /dev/net/tun c 10 200
sudo chmod 600 /dev/net/tun
fi

# start dbus
sudo mkdir -p /run/dbus
Expand Down

0 comments on commit f096f6e

Please sign in to comment.