Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

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 --password=secret --org="Admin Group" --environment="Dev"
Run a script named runme from an NFS share:
mkdir /mnt/temp
mount -o nolock /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.