summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-02-16 16:29:44 +0100
committerSimon Rettberg2024-02-16 16:29:44 +0100
commitbe276a892145b6a4e1dad6e61085a07ca6a0bb69 (patch)
tree77d4137507d911ee08a80e21dc00a9f055c11fa0
parent[slx-runmode] *initrd-root-fs.target (diff)
downloadsystemd-init-be276a892145b6a4e1dad6e61085a07ca6a0bb69.tar.gz
systemd-init-be276a892145b6a4e1dad6e61085a07ca6a0bb69.tar.xz
systemd-init-be276a892145b6a4e1dad6e61085a07ca6a0bb69.zip
[slx-addons] Tweak log output a bit
-rwxr-xr-xmodules.d/slx-addons/hooks/s3-setup-addons.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules.d/slx-addons/hooks/s3-setup-addons.sh b/modules.d/slx-addons/hooks/s3-setup-addons.sh
index 5068d2c2..2dcb364c 100755
--- a/modules.d/slx-addons/hooks/s3-setup-addons.sh
+++ b/modules.d/slx-addons/hooks/s3-setup-addons.sh
@@ -51,7 +51,7 @@ setup_addon() {
local addon_dir="$1"
cd "$addon_dir" || return 1
if ! bash addon-required 2>&1 ; then
- echo "'$addon_dir/addon-required' missing or returned non-zero, skipping..."
+ echo "'./addon-required' missing or returned non-zero, skipping..."
return 1
fi
# purge addon-* files
@@ -87,9 +87,10 @@ setup_addon() {
active=()
for addon in "${NEWROOT}/opt/openslx/addons/"*; do
+ echo "Checking addon ${addon##*/}..."
if setup_addon "$addon"; then
- active+=("${addon#"${NEWROOT}/opt/openslx/addons/"}")
- echo "Activated '$addon' (@ $(date +%s))"
+ active+=( "${addon##*/}" )
+ echo "Activated '${addon##*/}'"
fi
done