Skip to content

Instantly share code, notes, and snippets.

@logarytm
Created January 1, 2018 23:47
Show Gist options
  • Save logarytm/c94d38eb91563c33a7cae7ac83ca3793 to your computer and use it in GitHub Desktop.
Save logarytm/c94d38eb91563c33a7cae7ac83ca3793 to your computer and use it in GitHub Desktop.
systemd-nspawn containers with working FUSE
sudo machinectl status «machine» >> /dev/null 2>&1 \
  && sudo machinectl shell «user»@«machine» /bin/bash \
  || sudo systemd-nspawn \
    --bind=«source»:«target» \
    --property DeviceAllow='/dev/fuse rwm' \
    --machine=«machine»
    -bD «root» "$@"

and then

sudo mknod -m 666 /dev/fuse c 10 229
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment