From 67bc6f6e0071454e0759dc610d6883cb1a6705cf Mon Sep 17 00:00:00 2001
From: Antonio Alvarez Feijoo <antonio.feijoo@suse.com>
Date: Fri, 19 Jan 2024 15:50:15 +0100
Subject: [PATCH 0266/1160] bash-completion: add missing options to
 systemd-dissect

(cherry picked from commit 43aaa1b3d36c8ce38441bd24306f2a5cedd8b367)
---
 shell-completion/bash/systemd-dissect | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/shell-completion/bash/systemd-dissect b/shell-completion/bash/systemd-dissect
index 4bb203a2f8..17fb6420de 100644
--- a/shell-completion/bash/systemd-dissect
+++ b/shell-completion/bash/systemd-dissect
@@ -37,6 +37,8 @@ _systemd_dissect() {
                      --in-memory'
         [ARG]='-m --mount -M
                -u --umount -U
+               --attach
+               --detach
                -l --list
                --mtree
                --with
@@ -72,7 +74,7 @@ _systemd_dissect() {
 
     if __contains_word "$prev_1" ${OPTS[ARG]}; then
         case $prev_1 in
-            -l|--list|--mtree|-m|--mount|-M|-x|--copy-from|-a|--copy-to|--verity-data|--validate|--with)
+            -l|--list|--mtree|-m|--mount|-M|--attach|--detach|-x|--copy-from|-a|--copy-to|--verity-data|--validate|--with)
                 comps=$(compgen -A file -- "$cur")
                 compopt -o filenames
                 ;;
-- 
2.33.0