From ea1ded106ebb4068212b2686c929081f64ec2df1 Mon Sep 17 00:00:00 2001 From: dianlight Date: Wed, 10 Jan 2024 22:53:53 +0100 Subject: [PATCH] correct fs option management --- .../rootfs/etc/s6-overlay/s6-rc.d/init-automount/run | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sambanas/rootfs/etc/s6-overlay/s6-rc.d/init-automount/run b/sambanas/rootfs/etc/s6-overlay/s6-rc.d/init-automount/run index 0ff9d53e..c3bbefb5 100755 --- a/sambanas/rootfs/etc/s6-overlay/s6-rc.d/init-automount/run +++ b/sambanas/rootfs/etc/s6-overlay/s6-rc.d/init-automount/run @@ -105,10 +105,7 @@ function mount_disk() { # $1 disk $2 path $3 remote_mount $4 mount_options else # Check FS type and set relative options fstype=$(lsblk "$dev" -no fstype) - options="-o $( - IFS=, - echo "${mntops[*]}" - )" + options="-o ${mntops}" type="-t auto" cmd="mount" case "$fstype" in @@ -250,6 +247,11 @@ elif bashio::config.has_value 'moredisks' || bashio::config.true 'automount'; th fi mnt_ops=($(bashio::config 'mountoptions')) + mnt_ops="-o $( + IFS=, + echo "${mnt_ops[*]}" + )" + moredisks=($(bashio::config 'moredisks')) if [ ${#moredisks[@]} -eq 0 ]; then bashio::log.info "No MoreDisks to mount"