Skip to content

Commit

Permalink
Write-protect user data
Browse files Browse the repository at this point in the history
* Write-protect user data
  * The script does not need write access to the data.
  Adds "ro" flags to provide protection against accidental writing.
  • Loading branch information
Antynea authored Sep 24, 2021
1 parent 544d2e8 commit bab78d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 41_snapshots-btrfs
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ rm -f "$grub_directory/grub-btrfs.new"
> "$grub_directory/grub-btrfs.new"
# Create mount point then mounting
[[ ! -d $gbgmp ]] && mkdir -p "$gbgmp"
mount -o subvolid=5 /dev/disk/by-uuid/"$root_uuid" "$gbgmp/"
mount -o ro,subvolid=5 /dev/disk/by-uuid/"$root_uuid" "$gbgmp/"
trap "unmount_gbgmp" EXIT # unmounting mount point on EXIT signal
# Count menuentries
count_warning_menuentries=0
Expand Down

0 comments on commit bab78d4

Please sign in to comment.