Skip to content

Commit

Permalink
correct fs option management
Browse files Browse the repository at this point in the history
  • Loading branch information
dianlight committed Jan 10, 2024
1 parent 69930a2 commit ea1ded1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sambanas/rootfs/etc/s6-overlay/s6-rc.d/init-automount/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit ea1ded1

Please sign in to comment.