RHEL7 ks 的inst.stages,inst.repo

编程入门 行业动态 更新时间:2024-10-12 03:26:55

RHEL7 <a href=https://www.elefans.com/category/jswz/34/1755349.html style=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.repo= 或者 method= 给出的位置。


如果只给出了 inst.stage2=,而没有inst.repo=或者method=,Anaconda会默认使用
安装的系统中所启用的任意库进行安装。

发送log 到syslog 服务器

inst.syslog=IP/hostname[:port]   

更多推荐

RHEL7 ks 的inst.stages,inst.repo

本文发布于:2024-02-12 05:56:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1686468.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:ks   inst   repo   stages

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!