dissect: add --list option

New option to print the paths of all the files and directories in the image to
stdout.
This commit is contained in:
Antonio Alvarez Feijoo
2022-10-31 21:11:09 +01:00
committed by Luca Boccassi
parent fad1ce5c58
commit 0cf1692493
3 changed files with 71 additions and 7 deletions
+2 -1
View File
@@ -35,6 +35,7 @@ _systemd_dissect() {
--rmdir'
[ARG]='-m --mount -M
-u --umount -U
-l --list
-x --copy-from
-a --copy-to
--fsck
@@ -50,7 +51,7 @@ _systemd_dissect() {
if __contains_word "$prev_1" ${OPTS[ARG]}; then
case $prev_1 in
-m|--mount|-M|-x|--copy-from|-a|--copy-to|--verity-data)
-l|--list|-m|--mount|-M|-x|--copy-from|-a|--copy-to|--verity-data)
comps=$(compgen -A file -- "$cur")
compopt -o filenames
;;