Skip to content

Commit

Permalink
v6.27
Browse files Browse the repository at this point in the history
+ DietPi-Drive_Manager | Add rw flag to mount options. This should be default but seems to be not in rare cases: #3268
  • Loading branch information
MichaIng authored Dec 20, 2019
1 parent 43387b5 commit c7b82ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dietpi/dietpi-drive_manager
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,10 @@ $swap_mounts
# Add entry to fstab
if [[ ${aDRIVE_UUID[$index]} ]]; then

local options=''

# R/O?
(( ${aDRIVE_ISREADONLY_CURRENTLY[$index]} )) && options+=',ro'
# R/W or R/O?
# - Add rw flag to mount options. This should be default but seems to be not in rare cases: https://github.com/MichaIng/DietPi/issues/3268
local options=',rw'
(( ${aDRIVE_ISREADONLY_CURRENTLY[$index]} )) && options=',ro'

# Additional FS-specific options
# - NFTS: Enable POSIX permissions
Expand Down Expand Up @@ -336,7 +336,7 @@ $swap_mounts
local type=${aDRIVE_FSTYPE[$index]}
(( ${aDRIVE_ISNETWORKED[$index]} )) && type='auto'

echo "#UUID=${aDRIVE_UUID[$index]} ${aDRIVE_MOUNT_TARGET[$index]} ${type:-auto} noatime,lazytime,nofail,noauto,x-systemd.automount" >> $fp_fstab_tmp
echo "#UUID=${aDRIVE_UUID[$index]} ${aDRIVE_MOUNT_TARGET[$index]} ${type:-auto} noatime,lazytime,rw,nofail,noauto,x-systemd.automount" >> $fp_fstab_tmp

done < .blkid_out_tmp
rm .blkid_out_tmp
Expand Down

0 comments on commit c7b82ca

Please sign in to comment.