diff options
Diffstat (limited to 'tests/bin')
-rwxr-xr-x | tests/bin/apk | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/bin/apk b/tests/bin/apk index 8f2a945..df1711c 100755 --- a/tests/bin/apk +++ b/tests/bin/apk @@ -9,6 +9,7 @@ fi rootfs=. kver=5.15.78-0 +audit_prefix="U " while [ $# -gt 0 ]; do case "$1" in add|del) @@ -16,13 +17,15 @@ while [ $# -gt 0 ]; do cmd="$1" ;; audit) - echo "U etc/hostname" - exit 0 + cmd="$1" ;; -p|--root) shift rootfs="$1" ;; + --quiet) + audit_prefix="" + shift ;; --arch) shift ;; --repositories-file) shift ;; --keys-dir) shift ;; @@ -33,6 +36,14 @@ while [ $# -gt 0 ]; do shift done +if [ "$cmd" = audit ]; then + mkdir -p etc + touch etc/hosts etc/localtime + echo "${audit_prefix}etc/hosts" + echo "${audit_prefix}etc/localtime" + exit 0 +fi + for pkg in $pkgs; do case "$pkg" in linux-firmware*) |