dnsmasq error message related to host file

Daniel Golle daniel at makrotopia.org
Mon Nov 1 05:10:17 PDT 2021


On Mon, Nov 01, 2021 at 12:00:20PM +0100, e9hack wrote:
> Hi,
> 
> after commit "dnsmasq: improve init script", I get the following error in the log file:
> 
> Sun Oct 31 14:08:11 2021 user.err : jail: creat(/tmp/ujail-pbMGCD/tmp/hosts/dhcp.main) failed: Read-only file system
> Sun Oct 31 14:08:11 2021 user.err : jail: creat(/tmp/ujail-iEpgOj/tmp/hosts/dhcp.guest) failed: Read-only file system
> 
> I think, the modification is in conflict with this part:
> 
> 	config_get_bool ignore_hosts_dir "$cfg" ignore_hosts_dir 0
> 	if [ "$ignore_hosts_dir" = "1" ]; then
> 		xappend "--addn-hosts=$HOSTFILE"
> 		append EXTRA_MOUNT "$HOSTFILE"
> 	else
> 		xappend "--addn-hosts=$(dirname $HOSTFILE)"
> 		append EXTRA_MOUNT "$(dirname $HOSTFILE)"
> 	fi
> 
> I did set ignore_hosts_dir for both instances.

I forgot about the existing handling of hosts_dir...
Fixed (as in: partial revert) it now.



More information about the openwrt-devel mailing list