X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=mount-latest-subvol;h=7f54a4c2cfd9c958647dbc68039469df2e59c1ef;hb=606cd070ab0d88f45dae54ae960fef7245894373;hp=bbcf69bd124ab967a45c589413d4e9c24f601811;hpb=fa5deaee2e0182ddfc7b39eea7ee2acedb259ddf;p=distro-setup diff --git a/mount-latest-subvol b/mount-latest-subvol index bbcf69b..7f54a4c 100644 --- a/mount-latest-subvol +++ b/mount-latest-subvol @@ -308,10 +308,11 @@ for vol in q a o i; do continue fi - if [[ $vol == q ]]; then - # allow to fail, user might not be logged in - x sudo -u $(id -nu 1000) XDG_RUNTIME_DIR=/run/user/1000 systemctl --user stop arbtt ||: - fi + ## not using arbtt at the moment + # if [[ $vol == q ]]; then + # ## allow to fail, user might not be logged in + # x sudo -u $(id -nu 1000) XDG_RUNTIME_DIR=/run/user/1000 systemctl --user stop arbtt ||: + # fi umount_ret=true unmounted=() for dir in $(echo $d ${binds[*]}\ |tac -s\ ); do @@ -430,10 +431,13 @@ for vol in q a o i; do for dir in $d ${binds[@]}; do m mnt $dir done - if [[ $vol == q ]]; then - # maybe this will fail if X is not running - x sudo -u $(id -nu 1000) XDG_RUNTIME_DIR=/run/user/1000 systemctl --user start arbtt ||: - fi + + ## arbtt disabled for now + # if [[ $vol == q ]]; then + # # maybe this will fail if X is not running + # x sudo -u $(id -nu 1000) XDG_RUNTIME_DIR=/run/user/1000 systemctl --user start arbtt ||: + # fi + stale_dir=/nocow/btrfs-stale rm -f $stale_dir/$d done