向红帽网络 Satellite 注册:
%post ( # Note that in this example we run the entire %post section as a subshell for logging. wget -O- http://proxy-or-sat.example.com/pub/bootstrap_script | /bin/bash /usr/sbin/rhnreg_ks --activationkey=<activationkey> # End the subshell and capture any output to a post-install log file. ) 1 >/root/post_install.log 2 >&1
从 NFS 共享目录运行叫 runme 的命令:
mkdir /mnt/temp mount -o nolock 10.10.0.2:/usr/new-machines /mnt/temp open -s -w -- /mnt/temp/runme umount /mnt/temp
kickstart 模式不支持 NFS 文件锁定,因此,当挂载 NFS 目录时必须使用 -o nolock 选项。