| Summary: | KeyError: '_invalid_' if using kickstart with "autostep" | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Hank Wilde <hwilde> | ||||
| Component: | anaconda | Assignee: | Anaconda Maintenance Team <anaconda-maint-list> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 16 | CC: | akozumpl, anaconda-maint-list, g.kaviyarasu, jonathan, razi.khaja, vanmeeuwen+fedora, wendellcraigbaker, wwoods | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | abrt_hash:d17b7def9b028d91f1c3d9cdf44f88aabea74412ef6a5a5c0a7ea6e0a2f08c0b | ||||||
| Fixed In Version: | anaconda-18.3 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-08-03 19:36:00 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Hank Wilde
2012-02-01 16:05:12 UTC
Created attachment 558865 [details]
File: anaconda-tb-IHBREF
Trying to make an unattended headless USB installer. Steps to reproduce: 1. Run the pungi Gather, Create and Build steps pungi -GCB --ver 16 --force --isfinal -c ks.cfg 2. Convert the kickstart script to cpio find -name ks.cfg | cpio -o -c > ks.cpio 3. Append the kickstart script to initrd.img (to get around https://bugzilla.redhat.com/show_bug.cgi?id=452865) cat ks.cpio >> 16/x86_64/os/isolinux/initrd.img 4. Copy over the isolinux config to append ks=file:/ks.cfg cp fc16_isolinux.cfg 16/x86_64/os/isolinux/isolinux.cfg 5. Run the pungi Iso step pungi -I --ver 16 --force --isfinal -c ks.cfg 6. Copy iso to disk livecd-iso-to-disk --resetmbr --format Fedora-16-x86_64-DVD.iso /dev/sdd1 Got same results using the standard Fedora-16 .iso and this procedure: 1. livecd-iso-to-disk --resetmbr Fedora-16-x86_64-DVD.iso /dev/sdd1 2. Copy ks.cfg to the root of the USB stick 3. Edit syslinux/syslinux.cfg and append the kickstart append initrd=initrd.img LANG=en_US.UTF-8 repo=hd:UUID=07822a02-a09d-40ea-9059-e87dfacdfd9c:/ ks=hd:UUID=07822a02-a09d-40ea-9059-e87dfacdfd9c:/ks.cfg Same exact results, key: _invalid_. Bug reporter noted as duplicate. One interesting thing from the kickstart: 'autostep'. The 'autostep' command isn't really needed normally - kickstart installs proceed automatically if you've filled in all the required info. (We mostly use it for debugging and automatically gathering screenshots of the installer.) Maybe it's messing with the new dispatcher code in an unexpected way? Removing the 'autostep' command from kickstart allows the install to finish normally without error Good to know; thanks for testing that. Ah, that explains it quite clearly: with autostep, handleRenderCallback() simulates advancing to the next screen as soon as the current screen is displayed. It doesn't check what step we're on, whether "Next" or "Close" or "Reboot" are visible or even whether we're on the last dispatcher step. So this assert really catches a rotten case. Unless this is easily fixed, I don't see all that much point in spending much time on it. All this dispatcher stuff is changing for F18 with the UI rework, and who knows what's going to happen with autostep. The code this bug resulted from is no longer present as of anaconda-18.3. Please test with F18 and if you see similar problems, open a new bug. Thanks. |