Bug 1440075

Summary: livecd-iso-to-disk doesn't modify the value of "ks" in extlinux.conf
Product: [oVirt] ovirt-node Reporter: Qin Yuan <qiyuan>
Component: Installation & UpdateAssignee: Ryan Barry <rbarry>
Status: CLOSED NOTABUG QA Contact: Qin Yuan <qiyuan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.1CC: bugs, cshao, dguo, huzhao, jiawu, leiwang, qiyuan, rbarry, sbonazzo, weiwang, yaniwang, ycui, yzhao
Target Milestone: ---Flags: cshao: testing_ack+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-07 12:21:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
isolinux.conf, extlinux.conf of rhvh and rhel none

Description Qin Yuan 2017-04-07 09:24:24 UTC
Created attachment 1269650 [details]
isolinux.conf, extlinux.conf of rhvh and rhel

Description of problem:
Using livecd-iso-to-disk to write RHVH.iso to a USB stick, the linux parameters in extlinux.conf produced on the USB are:

label linux
  menu label ^Install RHVH 4.1
  kernel vmlinuz
  append initrd=initrd.img inst.stage2=hd:UUID=ea2fe0e2-0b16-4f4d-b440-3e132471904d ks=hd:LABEL=RHVH-4.1\x20RHVH.x86_64:/ks.cfg quiet

"LABEL=RHVH-4.1\x20RHVH.x86_64" in "ks=hd:.." expression has not been substituted with "UUID=ea2fe0e2-0b16-4f4d-b440-3e132471904d", this will cause installing RHVH via the USB failed with error "/run/install/ks.cfg is missing".


Version-Release number of selected component (if applicable):
livecd-tools-20.4-1.6.el7_2.x86_64
RHVH-4.1-20170404.5-RHVH-x86_64-dvd1.iso


How reproducible:
100%


Steps to Reproduce:
1. Install livecd-tools-20.4-1.6.el7_2.x86_64.rpm on a RHEL 7.3 system.
2. Attach an USB stick to the RHEL 7.3 system.
3. Partition the USB using fdsik cmd, the result is as:

[root@test ~]# fdisk -l /dev/sdf

Disk /dev/sdf: 62.1 GB, 62109253632 bytes, 121307136 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000dcdb9

   Device Boot      Start         End      Blocks   Id  System
/dev/sdf1   *        2048   121307135    60652544   83  Linux

4. Format partition using "mkfs.ext4 /dev/sdf1"
5. Run "livecd-iso-to-disk RHVH-4.1-20170404.5-RHVH-x86_64-dvd1.iso /dev/sdf1".
6. Run "mount /dev/sdf1 /mnt", "cat /mnt/syslinux/extlinux.conf", "umount /mnt"
7. Attach the USB to another machine, and boot from USB to install RHVH.


Actual results:
1. After step6, linux parameters in extlinux.conf are as above.
2. After step7, the installation failed with "/run/install/ks.cfg is missing".


Expected results:
1. After step6, "LABEL=RHVH-4.1\x20RHVH.x86_64" in "ks=.." expression could be substituted with "UUID=...".
2. After step7, installation could finish without error.


Additional info:
1. Manually substitute "ks=hd:LABEL=RHVH-4.1\x20RHVH.x86_64" with "ks=hd:UUID=..." in extlinux.conf could make installation succeed.
2. Using livecd-iso-to-disk to write RHEL.iso to USB stick doesn't has this problem, the linux parameters in extlinux.conf of RHEL is as:

label linux
  menu label ^Install Red Hat Enterprise Linux 7.3
  kernel vmlinuz
  append initrd=initrd.img inst.stage2=hd:UUID=6cb3588d-5ff3-4d8e-8534-eb93a35ad168 quiet

there is no "ks=.." expression in extlinux.conf of RHEL.

Comment 1 Sandro Bonazzola 2017-04-07 12:16:21 UTC
Ryan is this something caused by Node ks?
If it's livecd-iso-to-disk issue, let's close not a bug.

Comment 2 Ryan Barry 2017-04-07 12:21:15 UTC
This doesn't touch the KS at all. It's syslinux/extlinux, and not related to Node.

I'd expect this to also be reproducible on RHEL.