a22124497
V2EX  ›  问与答

求助 ks.cfg 个脚本的事

  •  
  •   a22124497 · Apr 8, 2021 · 1187 views
    This topic created in 1860 days ago, the information mentioned may be changed or developed.

    centos 安装时,在 gui 下,是可以看到硬盘型号,大小,位置的。现在问题是 pxe 下用 Ks.cfg 来自动安装,我有多个硬盘,所以我就需要指定是哪个硬盘。

    List-harddevice,可以看到位置,大小。网上搜指定哪个硬盘时,基本用的就是容量来判断,然后选一个硬盘

    现在遇到的情况,服务器,有时 raid1,有时 raid5,容量就不同,要改脚本。 有个是不变的,就是我的 raid 卡的型号是不变的,一批就那一种,有没有啥法子,可以根据硬盘型号来选择安装位置。只记得以前见过是抓个 typename 还是什么的,就是根据型号来指定的,菜菜的不会写,有没好人指导一下。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5734 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 01:44 · PVG 09:44 · LAX 18:44 · JFK 21:44
    ♥ Do have faith in what you're doing.