Write-protect user data

* Write-protect user data
  * The script does not need write access to the data.
  Adds "ro" flags to provide protection against accidental writing.
This commit is contained in:
Antynea
2021-09-24 12:24:15 +02:00
committed by GitHub
parent 544d2e84ac
commit bab78d4ed8

View File

@@ -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