diff options
author | Jonathan Bauer | 2018-05-23 12:12:16 +0200 |
---|---|---|
committer | Jonathan Bauer | 2018-05-23 12:12:16 +0200 |
commit | 9a645fc0e67a73be1533b6e0cfa5be2abf244719 (patch) | |
tree | 71f2aa3d5cae445a9192dd60827708213df87187 /builder/modules.d/slx-addons/module-setup.sh | |
parent | new slx-drm and slx-splash (PoC) modules (diff) | |
download | systemd-init-9a645fc0e67a73be1533b6e0cfa5be2abf244719.tar.gz systemd-init-9a645fc0e67a73be1533b6e0cfa5be2abf244719.tar.xz systemd-init-9a645fc0e67a73be1533b6e0cfa5be2abf244719.zip |
Support for stage4 addons
Stage4 can contain addons under /opt/openslx/addons/<addon_name>.
The contents will be moved to the stage4 if the 'addon-required' script
present in the addon's root directory returns 0. ld cache and whiteouts
(files removed during the overlay'ed addon build) are automatically
processed. NOTE: addon-init script of old is NOT executed atm, since for
the only addon we use, it only handled the whiteouts (which is now done
for every addon). See code for details...
Diffstat (limited to 'builder/modules.d/slx-addons/module-setup.sh')
-rwxr-xr-x | builder/modules.d/slx-addons/module-setup.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/builder/modules.d/slx-addons/module-setup.sh b/builder/modules.d/slx-addons/module-setup.sh new file mode 100755 index 00000000..296b3fe4 --- /dev/null +++ b/builder/modules.d/slx-addons/module-setup.sh @@ -0,0 +1,12 @@ +#!/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() { + inst_hook pre-pivot 30 "$moddir/scripts/setup-addons.sh" +} |