[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[atomic-devel] PXE Booting Diskless Atomic - Failed to start switchroot



Hi all,
I'm trying to use iPXE to boot into a live atomic host. I was able to successfully create a tree and build the pxelive images using the build_stage1.sh and build_stage2.sh scripts in the downstream branch of the sig-atomic-buildscripts github repo. When I actually try to boot a system I receive the following message:

[FAILED] Failed to start switchroot

Looking for more info in the logs I get:
:/# systemctl status initrd-switch-root -l 
Failed to switch root: Specified switch root path /sysroot does not seem to be an OS tree. os-release file is missing. 

If it check the /sysroot folder I can see that the squashfs image was mounted. I can browse into /sysroot/ostree/boot.0/centos-atomic-host/{ID} and see the entire tree as it is supposed to be. 

My iPXE Config is:
#!ipxe
kernel /assets/atomic/new/vmlinuz-3.10.0-693.5.2.el7.x86_64 initrd=initramfs-3.10.0-693.5.2.el7.x86_64.img root=live:http://matchbox.foo:8080/assets/atomic/new/live-rootfs.squashfs.imgostree=/ostree/boot.0/centos-atomic-host/81f124c81e835f79bce580ea67f8f8ba34337b6a244daa5d6b319eb58157fa85/0 debug
initrd /assets/atomic/new/initramfs-3.10.0-693.5.2.el7.x86_64.img
boot

Is there some kind of kernel arg besides ostree= that I am missing that tells the system to mount the correct os tree? I translated the legacy PXE file into iPXE since I have an iPXE server but it seems I have all the parameters. 

Thanks for any help you can provide. 

Matt Jansen
St. Anthony Falls Laboratory
University of Minnesota Twin Cities


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]