diff options
author | André Draszik <adraszik@tycoint.com> | 2016-12-20 09:02:40 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-22 08:46:37 +0000 |
commit | 765ee275f5499254b1f09e394c757072bea5f459 (patch) | |
tree | 1aca5865e370f2ec6d9d295737e71b89362aee85 /meta/recipes-core/console-tools | |
parent | f6344f20e3aed640b3218438e69c0b641e58d630 (diff) | |
download | openembedded-core-765ee275f5499254b1f09e394c757072bea5f459.tar.gz openembedded-core-765ee275f5499254b1f09e394c757072bea5f459.tar.bz2 openembedded-core-765ee275f5499254b1f09e394c757072bea5f459.zip |
initscripts: populate-volatile: suppress read-only-rootfs warnings
rm: can't remove '/etc/resolv.conf': Read-only file system
ln: /etc/resolv.conf: File exists
/etc/default/volatiles contains an entry:
l root root 0644 /etc/resolv.conf /var/run/resolv.conf
which causes populate-volatile.sh to execute the following in link_file():
if [ -L \"$2\" ]; then
[ \"\$(readlink -f \"$2\")\" != \"\$(readlink -f \"$1\")\" ] && { rm -f \"$2\"; ln -sf \"$1\" \"$2\"; };
elif [ -d \"$2\" ]; then
...
At the time the image is created, /etc/resolv.conf is already a
symlink to /var/run/resolv.conf, but at boot time when
populate-volatiles.sh is run, /var/run/resolv.conf doesn't
exist, causing it to try to rm -f and ln -sf which of course
fails due to the read-only filesystem.
[YOCTO #10814]
Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core/console-tools')
0 files changed, 0 insertions, 0 deletions