On Wed, Sep 6, 2017 at 5:45 AM, hhh <longpa...@163.com> wrote: > I test the script as follows: > > #!ipxe > > kernel /boot/vmlinuz > initrd initrd.img > initrd /test.sh /root/test.sh mode=755 > boot > > It works fine in legacy bios mode, but in UEFI, there is no test.sh found > in the rootfs after boot. > > Is the feture not supported in UEFI? > > Any help would be greatly appreciated. > > long > > In short, this is currently not supported in EFI mode.
What happens here is that you are booting a bzImage, the cpio handling is only done when the bzImage type is booted and is not when the initrd is loaded. In EFI mode everything goes via the EFI image type instead, which has no such handling. (enabling bzImage support in EFI mode is not possible) I have requested support for this as well, but there are some issues that as of yet does not have any clear solution. Maybe Michael can give us an update on this. /Christian
_______________________________________________ ipxe-devel mailing list ipxe-devel@lists.ipxe.org https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel