summaryrefslogtreecommitdiffstats
path: root/builder/modules.d/slx-clock/module-setup.sh
diff options
context:
space:
mode:
authorJonathan Bauer2019-01-09 13:06:52 +0100
committerJonathan Bauer2019-01-09 13:06:52 +0100
commit442f1bdfd0cbfdc10f484584c26940384e8352fe (patch)
tree747f50ec881d461fe2879ca14ce4a0081ae87582 /builder/modules.d/slx-clock/module-setup.sh
parent[dnbd3-rfs] remove deprecated script (diff)
downloadsystemd-init-442f1bdfd0cbfdc10f484584c26940384e8352fe.tar.gz
systemd-init-442f1bdfd0cbfdc10f484584c26940384e8352fe.tar.xz
systemd-init-442f1bdfd0cbfdc10f484584c26940384e8352fe.zip
[slx-clock] new module for time-related stuff
evaluates SLX_BIOS_CLOCK and SLX_NTP_SERVER from the openslx config.
Diffstat (limited to 'builder/modules.d/slx-clock/module-setup.sh')
-rwxr-xr-xbuilder/modules.d/slx-clock/module-setup.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/builder/modules.d/slx-clock/module-setup.sh b/builder/modules.d/slx-clock/module-setup.sh
new file mode 100755
index 00000000..50c36fe6
--- /dev/null
+++ b/builder/modules.d/slx-clock/module-setup.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+check() {
+ # Tell dracut that this module should only be included if it is required
+ # explicitly.
+ return 255
+}
+depends() {
+ echo dnbd3-rootfs
+}
+install() {
+ # unpacking config.tgz should be pre-pivot 10, let's do this afterwards
+ inst_hook pre-pivot 50 "$moddir/scripts/configure-timesyncd.sh"
+}