Supporting resolvconf in the squashfs.
authorEvgeni Golov <evgeni@grml.org>
Sat, 29 Mar 2014 13:28:02 +0000 (14:28 +0100)
committerDaniel Baumann <daniel@laptop.127011.net>
Sat, 29 Mar 2014 13:29:40 +0000 (14:29 +0100)
commite31d7cec9e48617a7509bab38cac32958f431d4e
treecfdb1c66522f518e3d6800340bff7e8d17e767a5
parent5c45c7b9faa2b6cc118d5efee4e96bb98dfed4ab
Supporting resolvconf in the squashfs.

When resolvconf is used in the squashfs, /etc/resolv.conf is a symlink
to the generated version. Depending on the size of the squashfs and
other factors, sometimes we try to write to /etc/resolv.conf while it
still points to nirvana, as resolvconf did not generate it yet.

Instead of being racy and writing to a file which will be regenerated
anyways, let's detect resolvconf and write to its base file instead.

Initial detection idea by Mika Prokop <mika@grml.org>
components/9990-main.sh
components/9990-netbase.sh