Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch from authconfig to authselect #205

Merged
merged 1 commit into from
Aug 9, 2021

Conversation

pbrezina
Copy link
Contributor

@pbrezina pbrezina commented Jul 9, 2021

Authconfig compatibility tool (from authselect-compat) will be removed from Fedora 35:
https://fedoraproject.org/wiki/Changes/RemoveAuthselectCompatPackage


Mageia does not seem to have authselect. Are those kickstarts used by the tool
any way?

@Conan-Kudo
Copy link
Member

authselect will likely get imported in Mageia for when the next version of livecd-tools is released into there.

@pbrezina
Copy link
Contributor Author

Ok, I updated Mageia files as well.

Authconfig compatibility tool (from authselect-compat) will be removed from Fedora 35:
https://fedoraproject.org/wiki/Changes/RemoveAuthselectCompatPackage
@pbrezina
Copy link
Contributor Author

Please note that I did not test this patch (I don't really know how) and I have no idea how the class AuthConfig was used. This is just my best guess. Please, tell me if something else is required.

@pbrezina
Copy link
Contributor Author

@Conan-Kudo can you please find some time to review this PR? Thank you.

@Conan-Kudo
Copy link
Member

Please note that I did not test this patch (I don't really know how) and I have no idea how the class AuthConfig was used. This is just my best guess. Please, tell me if something else is required.

You can test this fairly easily by doing the following:

livecd-creator --config livecd-fedora-minimal.ks --fslabel fedora-minimal-livecd --title=Fedora-Minimal-LiveCD --product=Fedora-Minimal-LiveCD --releasever=35

It'll produce you an ISO image that you can test.

@pbrezina
Copy link
Contributor Author

Hi, I run make install but can't make it work:

Running with main branch:

[pbrezina ~/workspace/livecd-tools (main %)]$ sudo livecd-creator --config ./config/livecd-fedora-minimal.ks --fslabel fedora-minimal-livecd --title=Fedora-Minimal-LiveCD --product=Fedora-Minimal-LiveCD --releasever=35
Traceback (most recent call last):
  File "/bin/livecd-creator", line 31, in <module>
    import imgcreate
  File "/usr/lib/python2.7/site-packages/imgcreate/__init__.py", line 19, in <module>
    from imgcreate.live import *
  File "/usr/lib/python2.7/site-packages/imgcreate/live.py", line 35, in <module>
    from imgcreate.fs import *
  File "/usr/lib/python2.7/site-packages/imgcreate/fs.py", line 503
    '\b|\b', end='')
                ^
SyntaxError: invalid syntax

Running with this PR branch (not rebased):

[pbrezina ~/workspace/livecd-tools (authconfig %)]$ sudo livecd-creator --config ./config/livecd-fedora-minimal.ks --fslabel fedora-minimal-livecd --title=Fedora-Minimal-LiveCD --product=Fedora-Minimal-LiveCD --releasever=35
kickstart error: Failed to parse kickstart file './config/livecd-fedora-minimal.ks' : The following problem occurred on line 0 of the kickstart file:

Unable to open input kickstart file: Error opening file: [Errno 2] No such file or directory: '.kstmp.13067'

@Conan-Kudo
Copy link
Member

@pbrezina We don't support Python 2 anymore. You need to configure with Python 3.

@pbrezina
Copy link
Contributor Author

Thanks. Now I get:

Error: transaction check vs depsolve:
rpmlib(CaretInVersions) <= 4.15.0-1 is needed by systemd-249.2-1.fc35.x86_64
Error creating Live CD : Unable to install: rpmlib(CaretInVersions) <= 4.15.0-1 is needed by systemd-249.2-1.fc35.x86_64
lazy umount succeeded on /var/tmp/imgcreate-ev1yah_y/install_root/var/cache/dnf

@Conan-Kudo
Copy link
Member

@pbrezina What are you running this on? Caret versions are supposed to be supported from RHEL 8.3 and higher.

@pbrezina
Copy link
Contributor Author

I'm currently on old Fedora 29 due to issues with my regular workstation.

@Conan-Kudo
Copy link
Member

Then you'll probably want to adjust the testcase kickstart to target a Fedora stable release, like Fedora 34.

@pbrezina
Copy link
Contributor Author

I used rawhide virtual machine in the end to workaround it. The ISO was created, authselect was called correctly. The only error I see is:

Missing EFI file (/boot/efi/EFI/*/shimx64.efi)
Missing EFI file (/boot/efi/EFI/*/gcdx64.efi)
Missing EFI file (/boot/efi/EFI/*/fonts/unicode.pf2)
Failed to copy EFI files, no EFI Support will be included.
Missing initial EFI bootloader, skipping efiboot.img creation.
usage: mkefiboot [-h] [--debug] [-d] [-a] [-l LABEL] [-i ICONFILE] [-n DISKNAME] [-p PRODUCT] EFIBOOTDIR OUTPUTFILE
mkefiboot: error: /var/tmp/imgcreate-qfl7m_y0/iso-w8y3d1xr/EFI/BOOT is not a directory

When trying to boot from the image, I see this (no start to live cd option):
Screenshot_fedora-rawhide_2021-07-28_13:30:12

@pbrezina
Copy link
Contributor Author

pbrezina commented Aug 9, 2021

Is there anything else that is required from my side?

@Conan-Kudo Conan-Kudo merged commit 9c7f40e into livecd-tools:main Aug 9, 2021
@WUQING0
Copy link

WUQING0 commented Jan 24, 2024

我最终使用了rawhide虚拟机来解决这个问题。ISO已创建,authselect已正确调用。我看到的唯一错误是:

Missing EFI file (/boot/efi/EFI/*/shimx64.efi)
Missing EFI file (/boot/efi/EFI/*/gcdx64.efi)
Missing EFI file (/boot/efi/EFI/*/fonts/unicode.pf2)
Failed to copy EFI files, no EFI Support will be included.
Missing initial EFI bootloader, skipping efiboot.img creation.
usage: mkefiboot [-h] [--debug] [-d] [-a] [-l LABEL] [-i ICONFILE] [-n DISKNAME] [-p PRODUCT] EFIBOOTDIR OUTPUTFILE
mkefiboot: error: /var/tmp/imgcreate-qfl7m_y0/iso-w8y3d1xr/EFI/BOOT is not a directory

当尝试从映像启动时,我看到以下内容(没有启动实时 CD 选项): Screenshot_fedora-rawhide_2021-07-28_13:30:12

Hello, may I ask if the issue with your interface has been resolved? I also encountered the same problem, but I added an additional option for start centers live8. However, after selecting that option, I still managed to re-enter this interface and cannot enter the main interface normally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants