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:
committed by
Luca Boccassi
parent
fad1ce5c58
commit
0cf1692493
@@ -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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user