ks 的inst.stages,inst.repo"/>
RHEL7 ks 的inst.stages,inst.repo
inst.stage2=URL指定到 install.img 文件而不是安装源的路径。否则按照与 inst.repo= 相同的语法执行。
如果指定 inst.stage2 ,它会优先查找 install.img 。但是如果 Anaconda 在本地机器中
找到 install.img,则会忽略inst.stage2URL。
在安装系统时,如果不想用USB DISK里面的安装程序,可以添加
inst.repo=http://192.168.31.108/rhel7/7.4/x86_64 到安装U盘/EFI/boot/grub.cfg 里面.
在引导安装程序是会下载server上面的stage2 文件进行安装.
这个已经亲自测试通过.
这个目录下面的文件,其实就是ISO解压后的目录结构.
[root@MiWiFi-R1CM-srv rhel7]# ls 7.4/x86_64/
EFI EULA extra_files.json GPL images isolinux LiveOS media.repo Packages repodata RPM-GPG-KEY-redhat-beta RPM-GPG-KEY-redhat-release TRANS.TBL
所以可以看到grub 需要的这几个参数可以如下变换:
menuentry 'Install Red Hat Enterprise Linux 7.4' --class fedora --class gnu-linux --class gnu --class os {
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=LIVE quiet nomodeset ks=http://192.168.31.108/rhel7/ks/fida74.ks
initrdefi /images/pxeboot/initrd.img
}
menuentry 'Install Red Hat Enterprise Linux 7.4 repo cust' --class fedora --class gnu-linux --class gnu --class os {
linuxefi /images/pxeboot/vmlinuz inst.repo=http://192.168.31.108/rhel7/7.4/x86_64 quiet nomodeset ks=http://192.168.31.108/rhel7/ks/fida74.ks
initrdefi /images/pxeboot/initrd.img
}
menuentry 'Install Red Hat Enterprise Linux 7.3' --class fedora --class gnu-linux --class gnu --class os {
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=LIVE nomodeset ks=http://192.168.31.108/rhel7/ks/fida73.ks
initrdefi /images/pxeboot/initrd.img
}
menuentry 'Install Red Hat Enterprise Linux 7.3 repo cust' --class fedora --class gnu-linux --class gnu --class os {
linuxefi /images/pxeboot/vmlinuz inst.repo=http://192.168.31.108/rhel7/7.3/x86_64 nomodeset ks=http://192.168.31.108/rhel7/ks/fida73.ks
initrdefi /images/pxeboot/initrd.img
}
如果没有指定 inst.stage2,且没有在本地找到install.img,Anaconda会查看由
如果只给出了 inst.stage2=,而没有inst.repo=或者method=,Anaconda会默认使用
安装的系统中所启用的任意库进行安装。
发送log 到syslog 服务器
inst.syslog=IP/hostname[:port]更多推荐
RHEL7 ks 的inst.stages,inst.repo
发布评论