32.8.2. Registering and Then Mounting an NFS Share
Register the system to a Red Hat Subscription Management server (in this example, a local Subscription Asset Manager server):
%post --log=/root/ks-post.log /usr/sbin/subscription-manager register --username=admin@example.com --password=secret --serverurl=sam-server.example.com --org="Admin Group" --environment="Dev" %end
Run a script named
runme
from an NFS share:
mkdir /mnt/temp mount -o nolock 10.10.0.2:/usr/new-machines /mnt/temp openvt -s -w -- /mnt/temp/runme umount /mnt/temp
NFS file locking is not supported while in kickstart mode, therefore
-o nolock
is required when mounting an NFS mount.