大网数据广告活动
服务器运维问答

Centos7 PXE Network Install with Kickstart Script - How to copy across folders / files from network during install?

· 52CE 我爱测

I have a PXE server for network installations (configured similar to, e.g. https://www.linuxtechi.com/configure-pxe-installation-server-centos-7/ ) and am using a Kickstart script to automatically implement many settings. The Cen…

问题原文

原帖链接 · SLater01 · CC BY-SA 4.0

I have a PXE server for network installations (configured similar to, e.g. https://www.linuxtechi.com/configure-pxe-installation-server-centos-7/) and am using a Kickstart script to automatically implement many settings. The CentOS image is stored on the PXE server and accessed via FTP (location on server: /var/ftp/pub)

Is it possible for the kickstart script to copy across files from the PXE server so they are available on the client's hard-drive when the install is finished?

i.e. I have a folder called foo on the server: /var/ftp/pub/foo. How can I copy across this so that the freshly installed client has these files at e.g. /home/foo please?

I've seen numerous questions asking this already for DVD / USB installs, but my question concerns network installations so I don't think the scripts used for DVD installs will work.

Thanks

已采纳解答

原帖链接 · Aaron Copley · CC BY-SA 4.0

Yes, you can copy files during Kickstart.

Depending on when you copy the files in Kickstart, you may or may not be in a chroot environment. Your copy target might need to use the filesystem under /mnt/sysimage.

Use the virtual console during install and play around inside the Anaconda environment. Inspect mount to see how your remote FTP is mounted so you can get the source for the copy. Insert a sleep or similar in various stages of Kickstart so you can get the time you need in each.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-01-10)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。