diff options
author | Jonathan Bauer | 2013-08-14 17:35:31 +0200 |
---|---|---|
committer | Jonathan Bauer | 2013-08-14 17:35:31 +0200 |
commit | d78eecabe39830ff5017c993ffd818aff2033e02 (patch) | |
tree | 9f19df08ef7a469b430bb5781727f8a59507309b /remote/rootfs/rootfs-stage32/data/etc | |
parent | Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff) | |
download | tm-scripts-d78eecabe39830ff5017c993ffd818aff2033e02.tar.gz tm-scripts-d78eecabe39830ff5017c993ffd818aff2033e02.tar.xz tm-scripts-d78eecabe39830ff5017c993ffd818aff2033e02.zip |
[rootfs-stage32] setup all addons according to /opt/openslx/config. Your config now needs: SLX_ADDONS_BASE_DIR as the URL (with http prefix) where the addons are and SLX_ADDONS_LIST as the list of addons that exists. i.e. SLX_ADDONS_BASE_DIR='http://server/distro/addons' and SLX_ADDONS_LIST='vmware'. The script would then try to wget http://serveR/distro/addons/vmware.sqfs . The file must be sqfs, as produced by mltk with ./mltk server <ip> <addon_target> -e addons
Diffstat (limited to 'remote/rootfs/rootfs-stage32/data/etc')
3 files changed, 10 insertions, 8 deletions
diff --git a/remote/rootfs/rootfs-stage32/data/etc/systemd/system/setup-slx-addon@.service b/remote/rootfs/rootfs-stage32/data/etc/systemd/system/setup-slx-addon@.service deleted file mode 100644 index af639976..00000000 --- a/remote/rootfs/rootfs-stage32/data/etc/systemd/system/setup-slx-addon@.service +++ /dev/null @@ -1,8 +0,0 @@ -[Unit] -Description=Download, mount and append SLX addon %I -After=sysinit.target - -[Service] -Type=oneshot -ExecStart=/opt/openslx/scripts/systemd-setup_slx_addon %I -RemainAfterExit=yes diff --git a/remote/rootfs/rootfs-stage32/data/etc/systemd/system/setup-slx-addons.service b/remote/rootfs/rootfs-stage32/data/etc/systemd/system/setup-slx-addons.service new file mode 100644 index 00000000..acc827c9 --- /dev/null +++ b/remote/rootfs/rootfs-stage32/data/etc/systemd/system/setup-slx-addons.service @@ -0,0 +1,9 @@ +[Unit] +Description=Download, mount and append SLX addons +After=sysinit.target setup-partitions.service +Wants=setup-partitions.service + +[Service] +Type=oneshot +ExecStart=/opt/openslx/scripts/systemd-setup_slx_addons +RemainAfterExit=yes diff --git a/remote/rootfs/rootfs-stage32/data/etc/systemd/system/sysinit.target.wants/setup-slx-addons.service b/remote/rootfs/rootfs-stage32/data/etc/systemd/system/sysinit.target.wants/setup-slx-addons.service new file mode 120000 index 00000000..415050b5 --- /dev/null +++ b/remote/rootfs/rootfs-stage32/data/etc/systemd/system/sysinit.target.wants/setup-slx-addons.service @@ -0,0 +1 @@ +../setup-slx-addons.service
\ No newline at end of file |