Skip to content

Commit

Permalink
fix: workaround dnsmasq-full bug when running in lxc
Browse files Browse the repository at this point in the history
Signed-off-by: ZHANG Yuntian <[email protected]>
  • Loading branch information
MakiseKurisu committed Nov 7, 2024
1 parent 54ef899 commit a09457c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions openwrt/providers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ in
opkg remove "$pkg"
opkg install "$provider" --cache . || opkg install "$pkg" --cache .
rm -rf "$temp"
if [ "$provider" == "dnsmasq-full" ]; then
# workaround dnsmasq-full bug when running in lxc
# https://forum.openwrt.org/t/multiple-dhcp-dns-server-instances-not-work/130849/11
sed -i "s|procd_add_jail_mount /etc/passwd|procd_add_jail_mount /dev/urandom /etc/passwd|" /etc/init.d/dnsmasq
service dnsmasq start
fi
fi
)
'')
Expand Down

0 comments on commit a09457c

Please sign in to comment.