From cb0b55a6bbeb3614c7071a89f5c2a40a0da2d5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hrotk=C3=B3=20G=C3=A1bor?= Date: Sat, 7 Dec 2019 12:50:57 +0100 Subject: [PATCH] add --no-dbus option to snapper list (#75) In a chroot-ed environment, it is necessary to run snapper without dbus. --- 41_snapshots-btrfs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/41_snapshots-btrfs b/41_snapshots-btrfs index 204ce2d..2a58e82 100755 --- a/41_snapshots-btrfs +++ b/41_snapshots-btrfs @@ -239,11 +239,11 @@ snapshot_list() # Query info from snapper if it is installed type snapper >/dev/null 2>&1 if [[ $? -eq 0 ]]; then - local snapper_ids=($(snapper -t 0 -c "$snapper_config" list | tail -n +3 | cut -d'|' -f 1)) - local snapper_types=($(snapper -t 0 -c "$snapper_config" list | tail -n +3 | cut -d'|' -f 2)) + local snapper_ids=($(snapper --no-dbus -t 0 -c "$snapper_config" list | tail -n +3 | cut -d'|' -f 1)) + local snapper_types=($(snapper --no-dbus -t 0 -c "$snapper_config" list | tail -n +3 | cut -d'|' -f 2)) IFS=$'\n' - local snapper_descriptions=($(snapper -t 0 -c "$snapper_config" list | tail -n +3 | rev | cut -d'|' -f 2 | rev)) + local snapper_descriptions=($(snapper --no-dbus -t 0 -c "$snapper_config" list | tail -n +3 | rev | cut -d'|' -f 2 | rev)) fi IFS=$'\n'