diskimage-builder/elements/ramdisk/install.d/20-install-dhcp-client
Ramakrishnan G 099493b62c Add dhcp support for ramdisk element.
This change adds support for retrieving the IP
through DHCP if 'ip' was not provided as a kernel
command-line argument by pxelinux.  This is used
when the kernel/ramdisk is booted by virtual media.

Change-Id: I1097ce5b56ad40f2d6dc3181681d54f924ec7145
Closes-Bug: #1321563
2014-07-15 16:30:09 +05:30

6 lines
121 B
Bash
Executable file

#!/bin/bash
set -eux
set -o pipefail
DHCP_CLIENT=$(pkg-map --element ramdisk dhcp_client)
install-packages $DHCP_CLIENT