Commit 713f178c authored by segfault's avatar segfault
Browse files

Only hide unlocked TailsData partitions from the boot device (refs: #16789)

parent 60d0c9aa
# We set UDISKS_IGNORE on the TailsData partition of the live boot
# device to hide it in GNOME apps. This prevents spurious notifications
# being shown when setting up persistence.
ENV{ID_FS_LABEL}=="TailsData", PROGRAM="/usr/local/lib/is-unlocked-tails-data-from-boot-device %k %p", ENV{UDISKS_IGNORE}="1"
set -e
set -u
[ -b "/dev/$device" ] || exit 3
backing_device=$(ls "$sysfs_path/slaves/" | head -n1)
lsblk -n -o kname /dev/bilibop | grep -q "^$backing_device$"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment