Bug 728172

Summary: anaconda failed to load a kickstart file from a file:// path
Product: [Fedora] Fedora Reporter: He Rui <rhe>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: anaconda-maint-list, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-08 13:53:07 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 Flags
error.png
none
tmp.tar.gz none

Description He Rui 2011-08-04 09:34:19 UTC
Created attachment 516666 [details]
error.png

Description of problem:

Tested f16-alpha-tc1 by the case:

https://fedoraproject.org/wiki/QA:Testcase_Kickstart_File_Path_Ks_Cfg

However, anaconda failed to open/read kickstart file included in initrd.img


Version-Release number of selected component (if applicable):
anaconda 16.14
16 alpha tc1

How reproducible:
100%

Comment 1 He Rui 2011-08-04 09:37:19 UTC
Created attachment 516667 [details]
tmp.tar.gz

Comment 2 Chris Lumens 2011-08-04 16:04:03 UTC
Just to rule out two stupid possibilities:

(1) Does /ks.cfg really exist in the initrd?

(2) Does it work if you use ks=file:/ks.cfg?  Note the lack of extra slashes there.

Comment 3 He Rui 2011-08-05 03:43:02 UTC
(In reply to comment #2)
> Just to rule out two stupid possibilities:
> 
> (1) Does /ks.cfg really exist in the initrd?

How can I decompressed the F-16 initrd.img? "#xz --format=lzma initrd.img.xz --decompress" doesn't work for me. What I can see is the file size was increased after executing "#echo ks.cfg |cpio -c -o >> initrd.img". I uploaded the initrd.img which should contain the ks.cfg.

> 
> (2) Does it work if you use ks=file:/ks.cfg?  Note the lack of extra slashes
> there.

No, the result is the same.

Comment 4 He Rui 2011-08-05 03:47:02 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Just to rule out two stupid possibilities:
> > 
> > (1) Does /ks.cfg really exist in the initrd?
> 
> How can I decompressed the F-16 initrd.img? "#xz --format=lzma initrd.img.xz
> --decompress" doesn't work for me. What I can see is the file size was
> increased after executing "#echo ks.cfg |cpio -c -o >> initrd.img". I uploaded
> the initrd.img which should contain the ks.cfg.

Sorry, the size exceeded for uploading.

Comment 5 Chris Lumens 2011-08-05 14:03:59 UTC
Oh, I was just thinking that you could switch over to tty2 (which should always have a shell on it now) and verify that it exists.  No need to do anything too tricky.

Comment 6 He Rui 2011-08-08 05:25:29 UTC
(In reply to comment #5)
> Oh, I was just thinking that you could switch over to tty2 (which should always
> have a shell on it now) and verify that it exists.  No need to do anything too
> tricky.

No, there's no ks.cfg found. So it's not anaconda issue but the way "echo ks.cfg |cpio -c -o >> initrd.img" doesn't work?

Comment 7 Chris Lumens 2011-08-08 13:53:07 UTC
That's what it looks like to me.