Revision 380998ab
Added by Paul Kelly almost 13 years ago
- ID 380998ab70f3cf380d2c8b0fd1e6f21a5ee19a4e
extras/jumpstart/dynamic_profile | ||
---|---|---|
hostname=`hostname`
|
||
dnsdomain=`/sbin/dhcpinfo 15`
|
||
dnsservers=`/sbin/dhcpinfo 6`
|
||
arch=`uname -p`
|
||
echo "domain $dnsdomain" >> /etc/resolv.conf
|
||
for i in $dnsservers
|
||
do
|
||
... | ... | |
perl -p -i -e "s/hosts:.*/hosts: files dns/" /tmp/root/etc/nsswitch.conf
|
||
# and then download our configuration from foreman
|
||
foreman="foreman"
|
||
./curl http://$foreman/unattended/jumpstart_profile > ${SI_PROFILE}
|
||
./curl.$arch -s http://$foreman/unattended/provision > ${SI_PROFILE}
|
||
exit 0
|
Also available in: Unified diff
Fixes #991 - Missing jumpstart files. Refs #820
Signed-off-by: Paul Kelly <paul.ian.kelly@googlemail.com>