CentOS 7: Unknown command: filesys in 24 of the kickstart file

Hi
I am foreman newbie.

I am trying to kickstart a VMWare VM using CentOS 7 provisioning setup in foreman.

Where can I find the file to locate line 24 that contains filesys ?
Problem:

Unknown command: filesys in CentOS 7 Kickstart file.

Expected outcome:

No issue in kickstarting CentOS 7

Foreman and Proxy versions:

1.17

Foreman and Proxy plugin versions:

Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]

“Kickstart RHEL default clone” is the template I used. I can search oses keyword in this kickstart file but I can’t “filesys” keyword.

If you switch to preview you should see the full kickstart for the host (there is a drop down to generate a preview for a specific host pick the correct one.) you should find it there and that should give you an idea which snippet or line of code it corresponds to.

@y-me-y

Thanks for great pointer on using preview mode.
can now see line 24 actually started with filesys kickstart option.

Following code ,

<% if @dynamic -%>
%include /tmp/diskpart.cfg
<% else -%>
<%= @host.diskLayout %>
<% end -%>

Got rendered into

filesys c0t0d0s0 7000 /
filesys c0t0d0s1 1000 swap
filesys c0t0d0s3 15 unnamed
filesys c0t0d0s7 free /tmp2

Looks like rendered code in preview mode, filesys option is wrong.

How can I change diskpart.cfg or host.diskLayout to generate code like following ?
Looks like I need to do more RTFM of foreman.

# partitioning
part /boot --fstype="xfs" --ondisk=sda --size=500
part pv.10 --fstype="lvmpv" --ondisk=sda --size=51200
volgroup VolGroup --pesize=4096 pv.10
logvol / --fstype="xfs" --size=20480 --name=root --vgname=VolGroup
logvol swap --fstype="swap" --size=4096 --name=swap --vgname=VolGroup

Turns out I picked Solaris partition table for CentOS OS, my bad :wink:

Yea I was just about to ask you what options you picked for the media - but I am glad you got it solved.

c0t0d0s0 smell like solaris device name ;), I am away for jumpstart/kickstart for couple years and become rusty on these stuff. We used to have home gown framework trying to mimic 10% what Foreman can offer now. Foreman is truly a nice software :clap:

1 Like

Yup, the more you pay attention when defining OS, templates and stuff, more troubleshooting time you save, because sometimes it can be tricky to find out what is going on.

1 Like