summaryrefslogtreecommitdiffstats
path: root/builder/modules.d/conf-tgz/module-setup.sh
diff options
context:
space:
mode:
authorJonathan Bauer2019-09-06 17:34:24 +0200
committerJonathan Bauer2019-09-06 17:34:24 +0200
commit5265faaac56fce5a395288210a8bec21598f10de (patch)
tree21943ad967161be7b2bd8c92882e95e2efe857c9 /builder/modules.d/conf-tgz/module-setup.sh
parentformatting (diff)
downloadsystemd-init-5265faaac56fce5a395288210a8bec21598f10de.tar.gz
systemd-init-5265faaac56fce5a395288210a8bec21598f10de.tar.xz
systemd-init-5265faaac56fce5a395288210a8bec21598f10de.zip
nobash!
Diffstat (limited to 'builder/modules.d/conf-tgz/module-setup.sh')
-rwxr-xr-xbuilder/modules.d/conf-tgz/module-setup.sh35
1 files changed, 1 insertions, 34 deletions
diff --git a/builder/modules.d/conf-tgz/module-setup.sh b/builder/modules.d/conf-tgz/module-setup.sh
index 353dc3a3..a07539cb 100755
--- a/builder/modules.d/conf-tgz/module-setup.sh
+++ b/builder/modules.d/conf-tgz/module-setup.sh
@@ -1,46 +1,13 @@
#!/usr/bin/env bash
-# -*- coding: utf-8 -*-
-
-source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd '../' && \
- cd *'dnbd3-rootfs/scripts/rebash' && pwd)/core.sh"
-core.import exceptions
-core.import logging
-
check() {
- local __doc__='
- Checks whether needed assumptions are satisfied.
-
- Example:
-
- `check`
- '
-
- # Here we could build our package file.
-
- # Tell dracut that this module should only be included if it is required
- # explicitly.
return 255
}
depends() {
- local __doc__='
- Outputs all dependent dracut modules to make this module work.
-
- >>> depends
- +doc_test_contains
- base
- '
echo dnbd3-rootfs slx-tools
}
install() {
- local __doc__='
- Copies all needed files into the initramfs image and registers all needed
- dracut hooks.
-
- Example:
-
- `install`
- '
inst_hook pre-mount 20 "$moddir/hooks/fetch-config-tgz.sh"
inst_hook pre-pivot 20 "$moddir/hooks/unpack-config-tgz.sh"
+ # TODO check if busybox is enough
inst_multiple tar mktemp gzip
}