Project

General

Profile

« Previous | Next » 

Revision 380998ab

Added by Paul Kelly almost 13 years ago

  • ID 380998ab70f3cf380d2c8b0fd1e6f21a5ee19a4e

Fixes #991 - Missing jumpstart files. Refs #820

Signed-off-by: Paul Kelly <>

View differences:

extras/jumpstart/dynamic_finish
#!/bin/sh
cd $SI_CONFIG_DIR
hostname=`hostname`
# the servers that runs foreman
foreman="foreman"
arch=`uname -p`
foreman=foreman
# We load the finish script into the logs directory so as to leave a record
$SI_CONFIG_DIR/curl http://$foreman/unattended/jumpstart_finish > /a/var/sadm/system/logs/puppet.postinstall
./curl.$arch -s http://$foreman/unattended/finish > /a/var/sadm/system/logs/puppet.postinstall
# Copy the working nsswitch and resolv.conf into the new server's etc directory
cp /etc/nsswitch.conf /a/etc
cp /etc/resolv.conf /a/etc
# Make a working curl available
echo "Copying ./curl.$arch /a/tmp/curl"
cp -p ./curl.$arch /a/tmp/curl
# Now execute the downloaded finish script in the new root context
chroot /a /bin/sh /var/sadm/system/logs/puppet.postinstall

Also available in: Unified diff