6.3. 使用 Anaconda 和 Kickstart 部署容器镜像
您可以使用 Anaconda 和 Kickstart 安装容器镜像,部署从红帽下载的 RHEL ISO 镜像。
警告
不支持使用 rpm-ostree 进行更改或安装内容。
先决条件
- 您已从红帽下载了用于您架构的 9.4 Boot ISO。请参阅 下载 RH 引导镜像。
流程
创建一个
ostreecontainerKickstart 文件。例如:# Basic setup text network --bootproto=dhcp --device=link --activate # Basic partitioning clearpart --all --initlabel --disklabel=gpt reqpart --add-boot part / --grow --fstype xfs # Reference the container image to install - The kickstart # has no %packages section. A container image is being installed. ostreecontainer --url registry.redhat.io/rhel9/rhel-bootc:9.4 firewall --disabled services --enabled=sshd # Only inject a SSH key for root rootpw --iscrypted locked sshkey --username root "<your key here>" reboot使用 9.4 Boot ISO 安装介质引导系统。
将具有以下内容的 Kickstart 文件附加到内核参数中:
inst.ks=http://<path_to_your_kickstart>
- 按 CTRL+X 引导系统。