generic-poky/meta/recipes-core/initscripts/initscripts-1.0
André Draszik d8c62f19da 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]

(From OE-Core rev: 765ee275f5499254b1f09e394c757072bea5f459)

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-12-22 08:50:17 +00:00
..
arm Major layout change to the packages directory 2010-08-27 15:29:45 +01:00
GPLv2.patch Upstream-Status update for several recipes 2011-05-17 15:14:43 +01:00
banner.sh Major layout change to the packages directory 2010-08-27 15:29:45 +01:00
bootmisc.sh initscripts: fix bashism in bootmisc.sh 2014-07-23 21:59:17 +01:00
checkfs.sh initscripts: add shebang where it was missing completely 2012-01-24 11:05:29 +00:00
checkroot.sh initscripts: check if swapon/swapoff exists before executing them 2016-05-30 15:58:15 +01:00
devpts Major layout change to the packages directory 2010-08-27 15:29:45 +01:00
devpts.sh initscripts: remove space from shebang, just cosmetics 2012-01-24 11:05:30 +00:00
dmesg.sh initscripts: Check for logrotate in dmesg.sh 2016-08-23 17:44:35 +01:00
functions initscripts: define failure/success/warning/pass functions 2014-01-28 00:52:33 +00:00
halt initscripts: remove space from shebang, just cosmetics 2012-01-24 11:05:30 +00:00
hostname.sh initscripts: make hostname.sh coreutils-compatible 2014-07-19 00:08:59 +01:00
logrotate-dmesg.conf initscripts: add dmesg file to /var/log 2013-07-10 09:42:00 +01:00
mountall.sh initscripts: check if swapon/swapoff exists before executing them 2016-05-30 15:58:15 +01:00
mountnfs.sh initscripts: remove erroneous call to /etc/default/rcS in mountnfs.sh 2013-11-24 12:25:34 +00:00
populate-volatile.sh initscripts: populate-volatile: suppress read-only-rootfs warnings 2016-12-22 08:50:17 +00:00
read-only-rootfs-hook.sh read-only-rootfs-hook.sh: check before bind mounting /var/lib 2013-08-26 13:19:42 +01:00
reboot initscripts: remove space from shebang, just cosmetics 2012-01-24 11:05:30 +00:00
rmnologin.sh initscripts: remove space from shebang, just cosmetics 2012-01-24 11:05:30 +00:00
save-rtc.sh initscripts: hide the error in case system is not writeable 2015-12-01 21:32:10 +00:00
sendsigs initscripts: remove space from shebang, just cosmetics 2012-01-24 11:05:30 +00:00
single initscripts: remove space from shebang, just cosmetics 2012-01-24 11:05:30 +00:00
sushell initscripts: Fix regression for requiring /bin/bash 2015-08-10 12:40:24 -07:00
sysfs.sh initscripts/sysfs.sh: Mount devtmpfs on /dev/ if needed 2015-10-27 07:24:27 +00:00
umountfs initscripts: check if swapon/swapoff exists before executing them 2016-05-30 15:58:15 +01:00
umountnfs.sh initscripts: mount and unmount cifs network filesystems 2012-02-24 23:25:53 +00:00
urandom initscripts: Add support for /etc/default/urandom 2014-07-19 00:09:00 +01:00
volatiles initscripts: populate-volatile: improve config file parsing 2016-12-13 22:55:19 +00:00