Commit b12372ff authored by segfault's avatar segfault
Browse files

Use /lib/bilibop/test instead of is-unlocked-tails-data-from-boot-device (refs: #16789)

parent 713f178c
# 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"
ENV{ID_FS_LABEL}=="TailsData", PROGRAM="/lib/bilibop/test $devnode", ENV{UDISKS_IGNORE}="1"
#!/bin/sh
set -e
set -u
device="$1"
sysfs_path="/sys/$2"
[ -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