diff options
-rwxr-xr-x | modules.d/conf-tgz/hooks/unpack-config-tgz.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules.d/conf-tgz/hooks/unpack-config-tgz.sh b/modules.d/conf-tgz/hooks/unpack-config-tgz.sh index ec31b8f5..2132423c 100755 --- a/modules.d/conf-tgz/hooks/unpack-config-tgz.sh +++ b/modules.d/conf-tgz/hooks/unpack-config-tgz.sh @@ -17,8 +17,17 @@ tarcopy() { unpack_config_tgz() { local config_tgz="/etc/config.tgz" [ -e "$config_tgz" ] || return 1 + # create list of overwritten files for debugging purposes + mkdir -p "${NEWROOT}/opt/openslx" + tar \ + --list \ + --verbose \ + --file="$config_tgz" \ + > "${NEWROOT}/opt/openslx/config.tgz.list" 2>&1 local extract_dir="$(mktemp -d)" - tar --extract --preserve-permissions \ + tar \ + --extract \ + --preserve-permissions \ --file="$config_tgz" \ --directory="$extract_dir" if [ "$?" -ne 0 ]; then |