Hi all,
I use the livecd tools to build PXE boot images; the details of how things are built can be found at https://github.com/puppetlabs/razor-el-mk if you're curious.
I use the tools on Fedora 19; when I last built around 11/20/2013, the resulting kernel and initrd can be successfully booted on my laptop in a KVM VM.
I rebuilt the PXE boot images today, and they fail to boot successfully in the same setup. The input to the build process is virtually unchanged (I added a couple lines to a %post in the kickstart to blacklist the mei kernel module)
When I boot the ISO file that I built, everything works as expected; when I boot the kernel/initrd that livecd-iso-to-pxeboot created from that ISO, either via PXE or via direct kernel boot, dracut times out waiting for /dev/mapper/live-rw to show up. There is only one entry 'vda' in /sys/block, corresponding to the virtual disk attached to the VM.
The command line I use to boot is
rootflags=loop initrd=initrd0.img root=live:/microkernel.iso rootfstype=auto ro rd.live.image acpi=force rd.luks=0 rd.md=0 rd.dm=0 rd.info=1
Running 'isoinfo -d' against the ISO confirms that the ISO has the label 'microkernel' - I've also tried 'root=CDLABEL=microkernel' on hte kernel command line, to no avail.
It looks like the kernel does not recognize the ISO appended to the normal initrd. Does anybody have any ideas how I can debug this further ? Has anybody successfully built pxe boot images with livecd-tools-19.8-1.fc19.x86_64 ?
David
On Tue, Jan 28, 2014 at 05:05:05PM +0100, David Lutterkort wrote:
The command line I use to boot is
rootflags=loop initrd=initrd0.img root=live:/microkernel.iso
rootfstype=auto ro rd.live.image acpi=force rd.luks=0 rd.md=0 rd.dm=0 rd.info=1
Running 'isoinfo -d' against the ISO confirms that the ISO has the label 'microkernel' - I've also tried 'root=CDLABEL=microkernel' on hte kernel command line, to no avail.
This may work better:
root=live:LABEL=microkernel:/microkernel.iso
If the packages you use to build with change all bets are off, so I'd look for package changes between builds.
Also, blkid from the dracut shell will show you what's available and what the labels are.
Hi Brian,
thanks for the response. As it turns out, this is an issue with dracut and newer kernels: https://github.com/haraldh/dracut/commit/ba9368fa4fedda0f72d84f910d01d7da201... (Thanks to Harald for his help and for figuring it out)
David
On Wed, Jan 29, 2014 at 12:18 AM, Brian C. Lane bcl@redhat.com wrote:
On Tue, Jan 28, 2014 at 05:05:05PM +0100, David Lutterkort wrote:
The command line I use to boot is
rootflags=loop initrd=initrd0.img root=live:/microkernel.iso
rootfstype=auto ro rd.live.image acpi=force rd.luks=0 rd.md=0 rd.dm=0 rd.info=1
Running 'isoinfo -d' against the ISO confirms that the ISO has the label 'microkernel' - I've also tried 'root=CDLABEL=microkernel' on hte kernel command line, to no avail.
This may work better:
root=live:LABEL=microkernel:/microkernel.iso
If the packages you use to build with change all bets are off, so I'd look for package changes between builds.
Also, blkid from the dracut shell will show you what's available and what the labels are.
-- Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT) -- livecd mailing list livecd@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/livecd
livecd@lists.fedoraproject.org