0

Is it possible to perform a kickstart installation using install media on a USB drive and a kickstart file on a hard drive?

The only solutions I have been able to find online suggest adding the kickstart file to the USB image, which I'd like to avoid if possible.


Problem

Dracut is unable to fetch the kickstart file.

Setup

devices:

[root@localhost ~]# lsblk -o name,mountpoint,label,size,uuid
NAME        MOUNTPOINT LABEL             SIZE UUID
sda                                    446.6G
├─sda1      /boot                          1G 76e6f0a8-2be4-4488-af8b-aaa9f74af5c4
└─sda2                                 445.6G 0A7tWD-pDM4-iVfS-quPP-2jg0-4SAb-MOpWH4
  ├─cl-root /                             50G ca33ba7b-1437-489c-abb0-249fe175a427
  ├─cl-swap [SWAP]                         4G 4e80c8c2-800b-47f2-a14b-35998249f48c
  └─cl-home /home                      391.6G 7dbf59fa-31e4-48f1-a991-dd22643971da
sdb                    CentOS 7 x86_64  14.6G 2016-12-05-13-55-45-00
├─sdb1                 CentOS 7 x86_64   4.1G 2016-12-05-13-55-45-00
└─sdb2                 ANACONDA          6.1M 9940-FF04
  • sdb contains a DVD ISO for CentOS 7.3

kickstart file location on cl-root:

[root@localhost ~]# ls -lh /ks.cfg
-rwxrwxrwx. 1 root root 1.9K Jul 19 16:23 /ks.cfg

/etc/grub.d/40_custom

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "Install CentOS 7.3 Custom" {
        set root='hd0,msdos1'
        linux16 /vmlinuz ro keymap=no lang=en_US.UTF-8 ifname=eth0:78:ac:44:19:7c:94 ip=10.2.56.11::10.2.56.1:255.255.255.128::eth0:none inst.repo=cdrom:sdb1 inst.ks=hd:sda2:/ks.cfg
        initrd16 /initrd.img
}
  • Note I have tried setting this as well: inst.ks=hd:UUID=ca33ba7b-1437-489c-abb0-249fe175a427:/ks.cfg

Error messages:

with inst.ks=hd:sda2:/ks.cfg

Warning: failed to fetch kickstart from /dev/sda2:ks.cfg

with inst.ks=hd:UUID=ca33ba7b-1437-489c-abb0-249fe175a427:/ks.cfg

Warning: failed to fetch kickstart from hd...

This is my first post here so hopefully, I've provided enough detail! Any help and suggestions would be much appreciated, thanks!

Ibanez
  • 1

0 Answers0