2022-11-21 14:02:48 +01:00
|
|
|
if test "$(id -u)" -gt "0" && test -d "$HOME"; then
|
2022-11-28 13:26:36 +01:00
|
|
|
if test ! -e "$HOME"/.config/containers/storage.conf && \
|
|
|
|
test ! -e "$HOME"/.local/share/containers/storage/libpod && \
|
|
|
|
grep -qx "driver = .*btrfs.*" /etc/containers/storage.conf ; then
|
|
|
|
if test "$(findmnt -o FSTYPE -l --target "$HOME" | grep -v FSTYPE)" != "btrfs"; then
|
2022-11-21 14:02:48 +01:00
|
|
|
# Home partition is not btrfs, but system wide setting is to use btrfs, this won't work
|
|
|
|
# default to 'overlay' then
|
|
|
|
export STORAGE_DRIVER=overlay
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|