You may have better output following the instructions on this page. I’ve created custom Live ISO images before using livecd-tools. They were successful. Try that
You have to tell the boot load to actually look for the kickstart file. Otherwise it will not be picked up.
So the grub boot config should come along with something like inst.ks=...:/ks.cfg
In case if Fedora 31 and UEFI boot, and given that your kickstart file is in the root of the image and is called kickstart.ks, change EFI/BOOT/grub.cfg from:
menuentry 'Install Fedora 31' --class fedora --class gnu-linux --class gnu --class os {
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-31 quiet
initrdefi /images/pxeboot/initrd.img
}
@sreyan32 In your first post you mentioned that you copied the kickstart file. That is what is meant with .ks files, it is just your kickstart file.
Also what you have shown is for GRUB, how do I do that for ISOLINUX ?
You add the same term to the append line.
The documentation is horrible. If I was allowed to swear I would. THE DOCS ARE HORRIBLE.
I am not even sure if this is documented with Fedora. What documentation were you using if I may ask? Also, the RHEL 7 documentation is as usual awesome, and can be easily adopted to Fedora.
I don’t mean anything personally to you, but the I am amazed at how you get around to customizing anything in Fedora.
Personally, why would you try to create customized iso images? If you need to do customization, isn’t the way better way to do a minimum installation and connect the machines to an automation system to do the rest?
Diligence pays off … especially when you’re learning/running Fedora. If you are in a hurry, some documentation will appear aggravating. It becomes easy to miss vital information that is right under your nose. Your questions were actually answered in that page I shared above.
Just before the section titled “Making the Image” you’ll see Creating a kickstart file. That should be relevant too.
For convenience, you can install reference *.ks files for study or composing Spins with dnf. Simply do:
If I don’t create custom images then how can I install from a Kickstart file ? Tell me something, without using an FTP server how can I load a Kickstart file ?
def _load_file(filename):
'''Load a file's contents and return them as a string'''
try:
if six.PY3:
with open(filename, 'rb') as fh:
contents = fh.read().decode("utf-8")
else:
with open(filename, 'r') as fh:
contents = fh.read()
except IOError as e:
raise KickstartError(_('Error opening file: %s') % str(e))
return contents
The filename variable is passed in without the path information so every filename refers to the current working directory.
Thankfully, this Python and not C, so I can patch the file without any compilation nonsense.
So I add in the line:
filename = '/use/share/spin-kickstarts/' + filename
just at the start of the function.
But wait, its not over.
Now the livecd-creator command now works, but while running the command I find that
bcm283x-firware
is not found. So I have go into to /usr/share/spin-kickstarts/fedora-disk-base.ks and comment out the above package.
The distribution is only as good as its community. It is the community’s task to fix and complete the documentation. Don’t hesitate to contribute!!
If its anything like this then please note that its LUKS1 and not LUKS2.
But if I am wrong and you know how to create a LUKS2 partition and then use LVM on it, please let me know IMMEDIATELY.
I would LOVE TO.
In fact the documentation is missing certain things like how to create LVM on LUKS and the bug I mentioned earlier. Just tell me how I can contribute. Problem is I have never actually contributed hence I am unfamiliar with the whole process.
In order to contribute to Fedora, you need to sign a CLA (Contributor License Aggreement) at the FAS website. There are groups in the FAS, and you need to be a member of a group other than CLA related ones in order to edit wiki. https://fedoraproject.org/wiki/Help:Editing#Gaining_Edit_Access
The change tracker lists out the exact problem I have. Now, please note that my /boot is in an completely unencrypted partition. Therefore, I can’t understand why you won’t use LUKS2. Also the /boot directory contains all my bootable kernels. So I really don’t see any reason why LUKS2 cannot be used, as it was promised.
Because I want to be on the latest and greatest and seems weird that LUKS2 has been around for a fair amount of time and still not fully supported by Anaconda.
The last post on the above link basically tells you why. Efficiency is the main reason.