Re: [OE-core] [PATCH] initramfs-framework/udev: umount /run/media/XXX
On 5/27/20 6:40 PM, hongxu wrote: On 5/27/20 5:52 PM, Richard Purdie wrote: On Mon, 2020-05-25 at 11:06 +0800, hongxu wrote: In initramfs-framework, before swith_root rootfs, if udev have time to run (before being killed), it will invoke hook mount.sh (which is provided by udev-extraconf) to mount /run/media/XXX. Release the mounted disk after udev being killed. This feels like a workaround. Would we be better off not installing the mount scripts into the initramfs in the first place? Follow your suggestion, I just tested it to remove the script, and everything works well, I will remove it in V2 Hi RP, As the oe-selftest result, the mount scripts (/run/media/XXX) was used by meta/recipes-core/initrdscripts/files/init-install.sh, we could not remove mount.sh in V2 How about this workaround V1 //Hongxu //Hongxu Cheers, Richard -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#138876): https://lists.openembedded.org/g/openembedded-core/message/138876 Mute This Topic: https://lists.openembedded.org/mt/74450071/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [OE-core] [PATCH] initramfs-framework/udev: umount /run/media/XXX
On 5/27/20 5:52 PM, Richard Purdie wrote: On Mon, 2020-05-25 at 11:06 +0800, hongxu wrote: In initramfs-framework, before swith_root rootfs, if udev have time to run (before being killed), it will invoke hook mount.sh (which is provided by udev-extraconf) to mount /run/media/XXX. Release the mounted disk after udev being killed. This feels like a workaround. Would we be better off not installing the mount scripts into the initramfs in the first place? Follow your suggestion, I just tested it to remove the script, and everything works well, I will remove it in V2 //Hongxu Cheers, Richard -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#138775): https://lists.openembedded.org/g/openembedded-core/message/138775 Mute This Topic: https://lists.openembedded.org/mt/74450071/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [OE-core] [PATCH] initramfs-framework/udev: umount /run/media/XXX
On Mon, 2020-05-25 at 11:06 +0800, hongxu wrote: > In initramfs-framework, before swith_root rootfs, if udev have time > to > run (before being killed), it will invoke hook mount.sh (which is > provided > by udev-extraconf) to mount /run/media/XXX. > > Release the mounted disk after udev being killed. This feels like a workaround. Would we be better off not installing the mount scripts into the initramfs in the first place? Cheers, Richard -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#138772): https://lists.openembedded.org/g/openembedded-core/message/138772 Mute This Topic: https://lists.openembedded.org/mt/74450071/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-