Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37727798
en ru br
ALT Linux repos
S:0.1-alt4

Group :: System/Configuration/Other
RPM: installer-feature-xCAT-stage3

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#!/bin/sh -efu

##
# INFO
#
# Fetch and run xCAT post installation part.
#
# This hook attended to run only at compute nodes autoinstallation process under xCAT directions.
#
# $POSTSCRIPT:
# * script located at xCAT managment node.
# * generated from template by xCAT for concrete node.
# * located at metadata directory, specified by `curl=' option in boot config file.

. install2-init-functions

# Check for xCAT auto installation
cmdline_has_arg xcat || exit 0

POSTSCRIPT="xcat-post.sh"
cd /tmp

cp-metadata "$POSTSCRIPT" || :
[ -r "/tmp/$POSTSCRIPT" ] || fatal "Can't fetch $POSTSCRIPT from metadata directory"

cp "/tmp/$POSTSCRIPT" "$destdir/tmp"
chmod 755 "$destdir/tmp/$POSTSCRIPT"
exec_chroot "/tmp/$POSTSCRIPT" || :
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin