From 56d4aa9ae5df41528a006500ab6a2ba5c61752b7 Mon Sep 17 00:00:00 2001 From: Momi-V <83947761+Momi-V@users.noreply.github.com> Date: Sat, 28 Feb 2026 17:48:47 +0100 Subject: [PATCH] Mount ZFS datasets if environment variables are set Make sure Dataset is mounted inside the container, see: https://forums.urbackup.org/t/urbackup-docker-zfs-error-opening-hashfile-code-2/15997/18 --- entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 44938ec..710c1ca 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -20,9 +20,11 @@ echo "/backups" > /var/urbackup/backupfolder # Set ZFS dataset if ENV variable is not empty if [[ -v ZFS_IMAGE ]]; then echo "$ZFS_IMAGE" > /etc/urbackup/dataset + zfs mount -R "$ZFS_IMAGE" fi if [[ -v ZFS_FILES ]]; then echo "$ZFS_FILES" > /etc/urbackup/dataset_file + zfs mount -R "$ZFS_FILES" fi # Giving the user and group "urbackup" the provided UID/GID if [[ $PUID != "" ]]