[OE-core] [PATCH] wic/bootimg-efi.py: add new source parameter "initrd_rename"

Tom Rini trini at konsulko.com
Fri Mar 29 00:27:20 UTC 2019


On Fri, Mar 29, 2019 at 12:07:59AM +0000, Liu, Yongxin wrote:
> > -----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?

The only thing that bootimg-efi.py provides, in my mind, is
auto-generation of a simplistic grub/systemd-boot config file.  I also
don't ever want that and just list the config files under
IMAGE_BOOT_FILES as well.  I really think we could drop bootimg-efi.py
aside from the case where we don't have a config file for some reason
(Stand-alone wic?)

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20190328/7627703f/attachment-0001.sig>


More information about the Openembedded-core mailing list