summaryrefslogtreecommitdiffstats
path: root/modules.d/conf-tgz/hooks/fetch-config-tgz.sh
diff options
context:
space:
mode:
authorSimon Rettberg2024-01-25 15:47:09 +0100
committerSimon Rettberg2024-01-29 09:53:08 +0100
commitabb148916593de63554ef58c53cb1dd8fbbb0ab1 (patch)
treed8c640c33f699f3abc567d9bbf111190c779b7d2 /modules.d/conf-tgz/hooks/fetch-config-tgz.sh
parent[dnbd3-rootfs] Try optimized ext4 mount options if none are given (diff)
downloadsystemd-init-abb148916593de63554ef58c53cb1dd8fbbb0ab1.tar.gz
systemd-init-abb148916593de63554ef58c53cb1dd8fbbb0ab1.tar.xz
systemd-init-abb148916593de63554ef58c53cb1dd8fbbb0ab1.zip
Try to use more systemd services
Diffstat (limited to 'modules.d/conf-tgz/hooks/fetch-config-tgz.sh')
-rwxr-xr-xmodules.d/conf-tgz/hooks/fetch-config-tgz.sh27
1 files changed, 0 insertions, 27 deletions
diff --git a/modules.d/conf-tgz/hooks/fetch-config-tgz.sh b/modules.d/conf-tgz/hooks/fetch-config-tgz.sh
deleted file mode 100755
index 5fa96de7..00000000
--- a/modules.d/conf-tgz/hooks/fetch-config-tgz.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/env bash
-# -*- coding: utf-8 -*-
-
-type emergency_shell >/dev/null 2>&1 || source /lib/dracut-lib.sh
-
-. /etc/openslx
-
-if [ -z "$SLX_NO_CONFIG_TGZ" ]; then
- # build config.tgz url from SLX_KCL_SERVERS and SLX_BASE_PATH
- # both are written to /etc/openslx by dnbd3-rootfs's fetch-config.sh script
- conftgz_url="http://${SLX_KCL_SERVERS}/${SLX_BASE_PATH}/config.tgz"
-
- # check if system's uuid was set
- if [ -s "/run/system-uuid" ]; then
- uuid="$(cat /run/system-uuid)"
- if [ -n "$uuid" ]; then
- conftgz_url="${conftgz_url}?uuid=${uuid}"
- fi
- fi
- info "Download config.tgz from '$conftgz_url'..."
- slx-tools download_retry --slx-time 20 -sS "${conftgz_url}" > "/etc/config.tgz"
-
- if [[ ! -s "/etc/config.tgz" ]]; then
- warn "Failed to download '${conftgz_url}'!"
- fi
-fi
-: