[OE-core] [PATCH] wic/bootimg-efi.py: add new source parameter "initrd_rename"
Liu, Yongxin
Yongxin.Liu at windriver.com
Fri Mar 29 00:07:59 UTC 2019
> -----Original Message-----
> From: Tom Rini [mailto:trini at konsulko.com]
> Sent: Thursday, March 28, 2019 21:59
> To: Liu, Yongxin
> Cc: openembedded-core at lists.openembedded.org
> Subject: Re: [OE-core] [PATCH] wic/bootimg-efi.py: add new source
> parameter "initrd_rename"
>
> On Wed, Mar 27, 2019 at 06:37:42PM +0800, Yongxin Liu wrote:
>
> > When using initrd in bootloader configuration file, we may want the
> > name of initrd to be fixed. However, the actual name of initrd may
> > change and depend on distro/machine's name. "initrd_rename"
> > gives user a chance to rename initrd in final wic image.
> >
> > Signed-off-by: Yongxin Liu <yongxin.liu at windriver.com>
>
> I'm not nak'ing this patch, but I've long fixed this by just not using
> the "efi" plugin to make an EFI system and instead IMAGE_BOOT_FILES to
> say what goes where. There's a lot of cases bootimg-efi doesn't cover
> but are handled easily with IMAGE_BOOT_FILES.
Thanks Tom for your input.
What I want to do is to copy "${INITRD_IMAGE_LIVE}-${MACHINE}.${INITRAMFS_FSTYPES}"
to EFI boot partition and rename it to be "initrd", like
/boot
├── bzImage
├── EFI
│ └── BOOT
│ ├── bootx64.efi
│ └── grub.cfg
├── initrd
"IMAGE_BOOT_FILES" is good to provide such function.
How about porting "IMAGE_BOOT_FILES" to bootimg-efi.py?
Thanks,
Yongxin
>
> --
> Tom
More information about the Openembedded-core
mailing list