> On 19.08.2021, at 22:40, David Barr <[email protected]> wrote:
> 
> On 8/19/21 12:54, Markus Falb wrote:
>> error: logical volume "root" given in logvol command does not exist
>> 
>> What is wrong with my kickstart? What should I change that it works
>> with RHEL 8 too?
>> 
>> Best Regards, Markus
>> 
> 
> I'm going to guess that it can't find the previous root LV that you've asked 
> it for with --useexisting. Do you have a way to test without that option? 
> Will it build a bare root LV on a new VG?
> 
> David

I have something that works, but it was somewhat difficult to debug.

Anaconda says “kickstart insufficient” and "error: logical volume "root" given 
in logvol command does not exist”. The message seems clear but after 
complaining anaconda is now in interactive mode and the LVs are visible and I 
can interactive finish the installation. At that point I had the hope that the 
anaconda generated /root/anaconda-ks.cfg would give some hints but no news 
there.
 
The solution is to activate the LVs in %pre
It turns out that there is /dev/sda present but not the device files for 
/dev/sdaX.

…snip
%pre
mknod /dev/sda2 b 8 2
pvscan
vgchange -ay
%end
snap…

alternatively this oneliner is working too, interestingly

…snip
%pre
parted /dev/sda unit MiB print
%end
snip…

Note that with the parted command it is not necessary to vgchange afterwards.

Is there a builtin kickstart command that accomplishes the same instead of some 
%pre?
If not, why is %pre necessary? %pre was not necessary with RHEL7. Is this by 
design or is it a bug?

Best Regards, Markus


_______________________________________________
Kickstart-list mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/kickstart-list

Reply via email to