Sha256: 7cfce9a74339ffdd404d934d04f03d96fe30a28202ac46dd0aadf4b247450108

Contents?: true

Size: 797 Bytes

Versions: 5

Compression:

Stored size: 797 Bytes

Contents

#!/bin/sh
cd $SI_CONFIG_DIR
arch=`uname -p`
foreman=foreman
# We load the finish script into the logs directory so as to leave a record
./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
# Copy the mnttab into the new server's etc directory so we can use pkgadd to install OpenCSW
cp /etc/mnttab /a/etc/mnttab
# Copy the admin file into the new servers tmp directory
cp -p ./admin /a/tmp
# 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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/extras/jumpstart/dynamic_finish
foreman_discovery-1.0.0.rc4 test/foreman_app/extras/jumpstart/dynamic_finish
foreman_discovery-1.0.0.rc3 test/foreman_app/extras/jumpstart/dynamic_finish
foreman_discovery-1.0.0.rc2 test/foreman_app/extras/jumpstart/dynamic_finish
foreman_discovery-1.0.0.rc1 test/foreman_app/extras/jumpstart/dynamic_finish