diff options
author | Martin Hundebøll <martin@geanix.com> | 2019-08-21 12:25:53 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-08-27 13:42:49 +0100 |
commit | fb028a0a25c02ab56ad262afd8e6e9495a44673d (patch) | |
tree | fa61b60b827603bda9f24b66df6141ed543116fe /meta/classes/icecc.bbclass | |
parent | 9dd0812acc73287287b48d28e0935baf7f545b58 (diff) | |
download | openembedded-core-contrib-fb028a0a25c02ab56ad262afd8e6e9495a44673d.tar.gz |
initscripts: remove warnings on read-only-rootfs (again)
When the populate-volatile.sh initscript tests if a configured symlink
is already in place, it uses readlink with the '-f' (follow) option:
> [ "$(readlink -f $source)" = "$dest" ]
If the test fails, it proceeds to delete the exisiting folder/file, and
create the configured symlink.
However, the '-f' option to readlink makes it follow symlinks pointing
at symlinks. If the $dest argument is a symlink, the above test fails,
and warnings are printed due to changing a read-only rootfs.
This is the case for /tmp, and /etc/resolv.conf:
> /tmp -> /var/tmp -> /var/volatile/tmp
> /etc/resolv.conf -> /var/run/resolv.conf -> /run/resolv.conf
Fix the warnings by removing the '-f' option, so that the test matches
the configuration.
[ YOCTO #10814 ]
Signed-off-by: Martin Hundebøll <martin@geanix.com>
Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/icecc.bbclass')
0 files changed, 0 insertions, 0 deletions