|
|
本帖最后由 liuzhaoyzz 于 2022-1-23 22:19 编辑
CentOS.ISO用g4d/grub2启动,网上的帖子很多都是错误百出,各种帖子完全是以讹传讹,误人子弟!
我在RHEL官网找到了正确的解释,按照官网的解释重新写了菜单,把我找到的相关网址发上来备忘。
centos7和centos8引导选项参考
centos6引导参数:3.7.选择安装方法
https://access.redhat.com/docume ... 1-installmethod-x86
centos7引导参数:inst.repo=选项第23.1节,“在引导菜单上配置安装系统”详情
https://access.redhat.com/docume ... t-options-installer
centos8引导参数:附录F .引导选项参考
https://access.redhat.com/docume ... system-design-guide
本节包含有关各种安装源引导选项的信息。
inst.repo=
这inst.repo=boot选项指定安装源,即提供包存储库和有效。treeinfo描述它们的文件。例如:inst.repo=cdrom。的目标inst.repo=选件必须是以下安装介质之一:
可安装树,它是一个目录结构,包含安装程序映像、包和存储库数据以及有效的。treeinfo文件
DVD(系统DVD驱动器中的物理磁盘)
完整的红帽企业Linux安装DVD的ISO映像,放置在硬盘或系统可访问的网络位置。
使用inst.repo=引导选项,使用不同的格式配置不同的安装方法。下表包含的详细信息inst.repo=引导选项语法:
表F.1. inst.repo=安装源引导选项
Table F.1. inst.repo= installation source boot options
Source type Boot option format Source format
CD/DVD drive
inst.repo=cdrom:<device>
Installation DVD as a physical disk. [a]
Mountable device (HDD and USB stick)
inst.repo=hd:<device>:/<path>
Image file of the installation DVD.
NFS Server
inst.repo=nfs:[options:]<server>:/<path>
Image file of the installation DVD, or an installation tree, which is a complete copy of the directories and files on the installation DVD.
HTTP Server
inst.repo=http://<host>/<path>
Installation tree, which is a complete copy of the directories and files on the installation DVD.
HTTPS Server
inst.repo=https://<host>/<path>
FTP Server
inst.repo=ftp://<username>:<password>@<host>/<path>
HMC
inst.repo=hmc
[a] If device is left out, installation program automatically searches for a drive containing the installation DVD.
The NFS Server option uses NFS protocol version 3 by default. To use a different version, add nfsvers=X to options, replacing X with the version number that you want to use.
Set disk device names with the following formats:
Kernel device name, for example /dev/sda1 or sdb2
File system label, for example LABEL=Flash or LABEL=RHEL8
File system UUID, for example UUID=8176c7bf-04ff-403a-a832-9557f94e61db
Non-alphanumeric characters must be represented as \xNN, where NN is the hexadecimal representation of the character. For example, \x20 is a white space (" ").
inst.addrepo=
使用inst.addrepo=引导选项添加一个附加存储库,该存储库可以与主存储库一起用作另一个安装源(inst.repo=).您可以使用inst.addrepo=在一次引导过程中多次引导选项。下表包含的详细信息inst.addrepo=引导选项语法。
注意
这回购名称是存储库的名称,在安装过程中是必需的。这些存储库仅在安装过程中使用;它们没有安装在已安装的系统上。
有关统一国际标准化组织的更多信息,请参见统一国际标准化组织
表F.2. inst.addrepo安装源引导选项
Installation source Boot option format Additional information
Installable tree at a URL
inst.addrepo=REPO_NAME,[http,https,ftp]://<host>/<path>
Looks for the installable tree at a given URL.
Installable tree at an NFS path
inst.addrepo=REPO_NAME,nfs://<server>:/<path>
Looks for the installable tree at a given NFS path. A colon is required after the host. The installation program passes everything after nfs:// directly to the mount command instead of parsing URLs according to RFC 2224.
Installable tree in the installation environment
inst.addrepo=REPO_NAME,file://<path>
Looks for the installable tree at the given location in the installation environment. To use this option, the repository must be mounted before the installation program attempts to load the available software groups. The benefit of this option is that you can have multiple repositories on one bootable ISO, and you can install both the main repository and additional repositories from the ISO. The path to the additional repositories is /run/install/source/REPO_ISO_PATH. Additional, you can mount the repository directory in the %pre section in the Kickstart file. The path must be absolute and start with /, for example inst.addrepo=REPO_NAME,file:///<path>
Hard Drive
inst.addrepo=REPO_NAME,hd:<device>:<path>
Mounts the given <device> partition and installs from the ISO that is specified by the <path>. If the <path> is not specified, the installation program looks for a valid installation ISO on the <device>. This installation method requires an ISO with a valid installable tree.
inst.stage2=
这inst.stage2=boot选项指定安装程序运行时映像的位置。此选项要求目录的路径包含有效的。treeinfo文件,并从。treeinfo文件。如果。treeinfo文件不可用,安装程序试图从images/install.img。
当inst.stage2选项,安装程序将尝试使用inst .回购选项。
如果以后想要在安装程序中手动指定安装源,请使用此选项。例如,当您想要选择内容交付网络(CDN)作为安装源时。安装光盘和引导国际标准化组织已经包含正确的inst.stage2选项从相应的ISO启动安装程序。
如果要指定安装源,请使用inst.repo=选项。
注意
默认情况下inst.stage2=引导选项在安装介质上使用,并设置为特定标签;例如,inst . stage 2 = HD:LABEL = RHEL-x-0-0-BaseOS-x86 _ 64。如果修改包含运行时映像的文件系统的默认标签,或者使用自定义过程来引导安装系统,请验证inst.stage2=引导选项被设置为正确的值。
inst.stage2=
The inst.stage2= boot option specifies the location of the installation program’s runtime image. This option expects the path to a directory that contains a valid .treeinfo file and reads the runtime image location from the .treeinfo file. If the .treeinfo file is not available, the installation program attempts to load the image from images/install.img.
When the inst.stage2 option is not specified, the installation program attempts to use the location specified with the inst.repo option.
Use this option when you want to manually specify the installation source in the installation program at a later time. For example, when you want to select the Content Delivery Network (CDN) as an installation source. The installation DVD and Boot ISO already contain a correct inst.stage2 option to boot the installation program from the respective ISO.
If you want to specify an installation source, use the inst.repo= option instead.
NOTE
By default, the inst.stage2= boot option is used on the installation media and is set to a specific label; for example, inst.stage2=hd:LABEL=RHEL-x-0-0-BaseOS-x86_64. If you modify the default label of the file system that contains the runtime image, or if you use a customized procedure to boot the installation system, verify that the inst.stage2= boot option is set to the correct value.
[a]如果设备则安装程序会自动搜索包含安装DVD的驱动器。
默认情况下,NFS服务器选项使用NFS协议版本3。要使用不同的版本,请添加nfsvers=X到选择,替换X您想要使用的版本号。
rd.live.ram
如果rd.live.ram选项,则第二阶段图像被复制到内存中。如果rd.live.ram选项,则第二阶段图像(images/install.img)被复制到内存中。这将根据映像的大小增加安装所需的内存。大小可能从400到800兆字节不等。
|
|