summaryrefslogtreecommitdiffstats
path: root/dev-tools
diff options
context:
space:
mode:
authortorben2016-03-24 19:07:09 +0100
committertorben2016-03-24 19:07:09 +0100
commit49a7371215d4e209018b944b1209ec782d8b2c29 (patch)
tree289c81502b2fa79e82c712c87c623d6635a358fc /dev-tools
parentMerge branch 'master' of git.openslx.org:openslx-ng/systemd-init (diff)
downloadsystemd-init-49a7371215d4e209018b944b1209ec782d8b2c29.tar.gz
systemd-init-49a7371215d4e209018b944b1209ec782d8b2c29.tar.xz
systemd-init-49a7371215d4e209018b944b1209ec782d8b2c29.zip
Improve tar gz module.
Diffstat (limited to 'dev-tools')
-rwxr-xr-xdev-tools/exampleDracutModule/apply-package.sh4
-rwxr-xr-xdev-tools/exampleDracutModule/module-setup.sh1
2 files changed, 4 insertions, 1 deletions
diff --git a/dev-tools/exampleDracutModule/apply-package.sh b/dev-tools/exampleDracutModule/apply-package.sh
index 10964a5e..67bcf665 100755
--- a/dev-tools/exampleDracutModule/apply-package.sh
+++ b/dev-tools/exampleDracutModule/apply-package.sh
@@ -17,13 +17,15 @@ exceptions.try
exceptions.activate
logging.info 'Getting package.'
+ mkdir --parents /tmp/slx_config
IFS_backup="$IFS"
IFS=','
for host in ${slx_server}; do
logging.info "Trying host \"$host\"."
if wget --timeout 5 \
"http://${host}/${slx_server_base}config.tar.gz" \
- --output-document '/tmp/config.tar.gz'
+ --output-document - | tar --extract --verbose --gzip --directory \
+ /tmp/slx_config
then
break
fi
diff --git a/dev-tools/exampleDracutModule/module-setup.sh b/dev-tools/exampleDracutModule/module-setup.sh
index bfe216e7..1604fd3f 100755
--- a/dev-tools/exampleDracutModule/module-setup.sh
+++ b/dev-tools/exampleDracutModule/module-setup.sh
@@ -38,4 +38,5 @@ install() {
`install`
'
inst_hook pre-pivot 00 "$moddir/apply-package.sh"
+ inst_multiple tar
}