Don't set a root= argument (#837208)

Using root= overrides the anaconda magic code for finding product.img
and updates.img. Anaconda can find the CDROM itself without needing
root=, though, so we can omit it safely for boot.iso.
This commit is contained in:
Will Woods 2012-07-10 01:34:06 -04:00 committed by Martin Gracik
parent 4715134502
commit 5437557846
3 changed files with 7 additions and 4 deletions

View File

@ -35,10 +35,11 @@ ${make_efiboot("images/efiboot.img")}
replace @INITRDPATH@ /${kdir}/initrd.img ${eficonf}
replace @SPLASHPATH@ /EFI/BOOT/splash.xpm.gz ${eficonf}
%if disk:
## FIXME: using root= causes problems with product.img (see bug 811979)
replace @ROOT@ root=live:LABEL=ANACONDA ${eficonf}
%else:
## NOTE: this needs to match the boot.iso label (see x86.tmpl)
replace @ROOT@ 'root=live:CDLABEL=${isolabel|udev}' ${eficonf}
## anaconda can find CDROM devices automatically so no root= is needed
replace @ROOT@ '' ${eficonf}
%endif
%if efiarch == 'IA32':
copy ${eficonf} ${EFIBOOTDIR}/BOOT.conf

View File

@ -18,7 +18,8 @@ prepboot = ""
## with '_', which means we won't need any udev escapes.
isolabel = ''.join(ch if ch.isalnum() else '_' for ch in isolabel)
rootarg = "root=live:CDLABEL=%s" % isolabel
## Anaconda finds the CDROM device automatically
rootarg = ""
%>
mkdir ${LIVEDIR}

View File

@ -25,7 +25,8 @@ install boot/memtest* ${BOOTDIR}/memtest
## configure bootloader
replace @VERSION@ ${product.version} ${BOOTDIR}/grub.conf ${BOOTDIR}/isolinux.cfg ${BOOTDIR}/*.msg
replace @PRODUCT@ '${product.name}' ${BOOTDIR}/grub.conf ${BOOTDIR}/isolinux.cfg ${BOOTDIR}/*.msg
replace @ROOT@ 'root=live:CDLABEL=${isolabel|udev}' ${BOOTDIR}/isolinux.cfg
## anaconda will find the CDROM automatically
replace @ROOT@ '' ${BOOTDIR}/isolinux.cfg
## install kernels
mkdir ${KERNELDIR}