Skip to content

Commit

Permalink
btrfs mounts should not fail the initial startup (#2611)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <[email protected]>
Co-authored-by: Daniel Hansson <[email protected]>
  • Loading branch information
szaimen and enoch85 authored Jan 14, 2024
1 parent 82c4794 commit 36be446
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions not-supported/btrfs-mount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ If you want to cancel, type 'exit' and press [ENTER].")
then
msg_box "The directory isn't allowed to start with '/mnt/smbshares'"
else
echo "UUID=$UUID $MOUNT_PATH btrfs defaults 0 0" >> /etc/fstab
echo "UUID=$UUID $MOUNT_PATH btrfs defaults,nofail 0 0" >> /etc/fstab
mkdir -p "$MOUNT_PATH"
if ! mount "$MOUNT_PATH"
then
Expand Down Expand Up @@ -313,7 +313,7 @@ fi

# Execute the change to a backup drive
print_text_in_color "$ICyan" "Adjusting permissions..."
sed -i "/$UUID/s/defaults/defaults,noauto/" /etc/fstab
sed -i "/$UUID/s/defaults,nofail/defaults,noauto/" /etc/fstab
chown -R root:root "$MOUNT_PATH"
chmod -R 600 "$MOUNT_PATH"
umount "$MOUNT_PATH"
Expand Down

0 comments on commit 36be446

Please sign in to comment.