Fedora 29: Failed to start Switch Root when using PXE

asked 2018-12-24 05:54:51 -0500

akiross gravatar image

updated 2018-12-24 09:06:15 -0500

I got the Fedora WS live DVD (from here), then set up dnsmasq to boot from network with PXE. I am currently seeing the syslinux bootloader.

My PXE server is not connected to a network, so I want to boot the PXE client using the DVD ISO, so I also set up a nginx server that serves the content of the ISO (mounted on loopback).

The kernel is booting with: vmlinuz initrd=initrd.img inst.stage2= inst.repo= (I found details on inst.repo here).

The problem is that, when booting, it fails with the message

Failed to start Switch Root

and journalctl says that

Failed to switch root: Specified switch root path '/sysroot/' does not seem to be an OS tree. os-release file is missing

What is this message and how do I fix it?


After RTFM, I managed to specify the root option almost correctly, and I booted with:

vmlinuz initrd=initrd.img inst.stage2= inst.repo= ip=dhcp root=live:

where squashfs.img is the 1.9 GB root system used in the Live image. The system finally boots, but it is not the usual live image, as I have no options to install the system on the hard drive, so I think the options are still not completely correct.

edit retag flag offensive close merge delete


Just take a look on the boot parameters of live cd. I don't know why it works but if you include:

kernel vmlinuz append initrd=initrd.img root=live: rd.live.image

Then it works. You don't need anything else to do a remote install or use the live cd via pxe.

moacir gravatar imagemoacir ( 2019-04-13 06:38:00 -0500 )edit