diff options
author | Jonathan Bauer | 2021-02-16 15:53:59 +0100 |
---|---|---|
committer | Jonathan Bauer | 2021-02-16 15:53:59 +0100 |
commit | d0968f5e23666108923891c3b5d33a12ae30e5ac (patch) | |
tree | 8226dd4232ef648ca009d5b16003e11e9f309b6e | |
parent | [conf-tgz] use $config_tgz everywhere (diff) | |
download | systemd-init-d0968f5e23666108923891c3b5d33a12ae30e5ac.tar.gz systemd-init-d0968f5e23666108923891c3b5d33a12ae30e5ac.tar.xz systemd-init-d0968f5e23666108923891c3b5d33a12ae30e5ac.zip |
[conf-tgz] dump list of config.tgz files to stage4
-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 |