Bug 4757 - 在 ks 文件中配置了 “ignoredisk --only-use=” 时,安装会提示无法找到安装源
Summary: 在 ks 文件中配置了 “ignoredisk --only-use=” 时,安装会提示无法找到安装源
Status: CONFIRMED
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: Images&Installations (show other bugs) Images&Installations
Version: 8.6
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: gaochang
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-12 17:29 UTC by gaochang
Modified: 2023-04-12 17:33 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gaochang alibaba_cloud_group 2023-04-12 17:29:30 UTC
Description of problem:
使用 USB 作为安装介质,并使用 kickstart 文件安装时,如果 ks 文件中配置了 “ignoredisk --only-use=” ,安装会提示无法找到安装源,无法继续安装


Version-Release number of selected component (if applicable):
已知影响版本:8.6及后续版本


How reproducible:
必定复现


Steps to Reproduce:
1、使用 USB 安装盘作为安装介质
2、配置了网络 ks 文件 url 地址,或基于官方自制的 ISO 中加入了自定义的 ks 文件及 isolinux.cfg 中进行了对应的配置
3、使用 USB 引导安装


Actual results:
无法继续安装,安装源异常

Expected results:
能够正常安装

Additional info:
Comment 1 gaochang alibaba_cloud_group 2023-04-12 17:33:47 UTC
该问题是由于 "ignoredisk --only-use=sda" 或类似的命令下,usb 的盘符如果是sd 设备,则同样会被 ignore,导致无法发现安装源,从而无法继续安装
该问题可以通过如下的方式规避:
1、ks 文件中不要使用 cdrom 的方式进行配置,而是以 “ harddrive --partition=LABEL=anolis-8-x86_64-dvd --dir=/ ”来代替
2、repo 配置不要涉及 cdrom 的相关配置。一般来说如果不准备配置网络安装源,则不需要单独配置 repo 项目。