Openembedded Core Discussions
 help / color / mirror / Atom feed
* [OE-core] kernel: update rpm failed for the vfat
@ 2020-06-09 10:32 Xu, Yanfei
  0 siblings, 0 replies; 5+ messages in thread
From: Xu, Yanfei @ 2020-06-09 10:32 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: He Zhe, openembedded-core

Hi Bruce,

I encountered an issue that updating kernel rpm package will fail when 
the /boot dir was mount with vfat filesystem. The root cause is vfat 
don't support symlink.
--------cut here----------
error: unpacking of archive failed on file /boot/Image;5eda8385: cpio: 
symlink failed - Resource temporarily unavailable
error: 
kernel-image-image-5.4.43-yocto-standard-5.4.x+git0+f8c88c4331_9961cc8b79-r0.bcm_2xxx_rpi4: 
install failed
root@bcm-2xxx-rpi4:/boot#

Currently I have two ideas to fix it:
1. we use 'install' cmd instead of 'ln -sf' in kernel_do_install to 
avoid generating symlink in kernel-image-image*.rpm. And then add an 
postinstall to this rpm. It will check if the /boot dir is vfat, if not, 
we remove the copy image* and make a softlink for the image.
2. we specially add an package type which doesn't contain symlink for 
the vfat filesystem.

For the first idea, I met an problem when I try to add 
pkg_postinst_packagename function in kernel.bbclass file. Due to there 
are not package name variables defined for the kernel-image-image.gz 
kernel-image-image or other type kernel images. So I can not add 
postinst functions statically why that how many packages and packages' 
name are not certainly.

Do you have any opinions about these?


Regards,
Yanfei

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-06-15 12:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1616D997B5533366.13968@lists.openembedded.org>
2020-06-12  7:46 ` [OE-core] kernel: update rpm failed for the vfat Xu, Yanfei
2020-06-12 13:27   ` Bruce Ashfield
2020-06-15 11:43     ` Xu, Yanfei
2020-06-15 12:31       ` Bruce Ashfield
2020-06-09 10:32 Xu, Yanfei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox