On Wed, 2023-11-08 at 11:47 +0100, Jörg Sommer wrote: > On 07.11.23 21:24, Joakim Tjernlund via lists.openembedded.org wrote: > > In /etc/passwd is a symlink, sed -i on same file will replace the > > I suspect the »In« should be an »If«
Yes :) > > > symlink with a new file. Prevent that by expanding the file with realpath > > before giving it to sed. > > Using `sed -i` could be used in many places; e.g. /etc/hosts. Maybe the Yes, there are more places but I don't intend to fix them all here. > replacement with a symlink should happen after all other scripts are > done. Would this be possible? I don't see how, the symlink needs to be in place when building pkgs adding users/groups etc. Anyhow, I have redirected this to oe-core as instructed, please move furher comments there. Joakim
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#106473): https://lists.openembedded.org/g/openembedded-devel/message/106473 Mute This Topic: https://lists.openembedded.org/mt/102450721/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
