diff options
author | Jonathan Bauer | 2017-10-18 17:36:06 +0200 |
---|---|---|
committer | Jonathan Bauer | 2017-10-18 17:36:06 +0200 |
commit | 3cff0e97ed728af80f32705d6eb5997505a5462d (patch) | |
tree | b8102f878c7d04c8ac1373dfc624252d338ff043 /builder/modules.d/dnbd3-rootfs/hooks | |
parent | [systemd-networkd-ext] support for bridged (diff) | |
download | systemd-init-3cff0e97ed728af80f32705d6eb5997505a5462d.tar.gz systemd-init-3cff0e97ed728af80f32705d6eb5997505a5462d.tar.xz systemd-init-3cff0e97ed728af80f32705d6eb5997505a5462d.zip |
[dnbd3-rootfs] dump pxe net info to config
* also renamed it to /opt/openslx/config to be conform to what
stage4/bwlp expects
Diffstat (limited to 'builder/modules.d/dnbd3-rootfs/hooks')
-rwxr-xr-x | builder/modules.d/dnbd3-rootfs/hooks/copy-openslx-configuration-into-newroot.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/builder/modules.d/dnbd3-rootfs/hooks/copy-openslx-configuration-into-newroot.sh b/builder/modules.d/dnbd3-rootfs/hooks/copy-openslx-configuration-into-newroot.sh index 6a56f857..57b77f5a 100755 --- a/builder/modules.d/dnbd3-rootfs/hooks/copy-openslx-configuration-into-newroot.sh +++ b/builder/modules.d/dnbd3-rootfs/hooks/copy-openslx-configuration-into-newroot.sh @@ -15,7 +15,10 @@ logging.set_level debug logging.set_log_file "$SLX_LOG_FILE_PATH" mkdir --parents "${NEWROOT}${SLX_CONFIGURATION_LOCATION}" -cp "/etc/openslx" "${NEWROOT}${SLX_CONFIGURATION_LOCATION}" +cp "/etc/openslx" "${NEWROOT}${SLX_CONFIGURATION_LOCATION}/config" + +echo '## Generated by dracut in stage3' >> "${NEWROOT}${SLX_CONFIGURATION_LOCATION}/config" +cat "/run/openslx/pxe-network.conf" >> "${NEWROOT}${SLX_CONFIGURATION_LOCATION}/config" } exceptions.catch { |