mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-28 16:58:03 +01:00
sd card build prevent "unable to resolve host debian" error
This commit is contained in:
parent
35b5e8e670
commit
c7eb225de4
1 changed files with 9 additions and 0 deletions
|
@ -294,6 +294,15 @@ echo "[Login]
|
|||
HandleLidSwitch=ignore
|
||||
HandleLidSwitchDocked=ignore" | tee /etc/systemd/logind.conf.d/nosuspend.conf
|
||||
|
||||
# check if /etc/hosts already has debian entry
|
||||
# prevent "unable to resolve host debian" error
|
||||
isDebianInHosts=$(grep -c "debian" /etc/hosts)
|
||||
if [ ${isDebianInHosts} -eq 0 ]; then
|
||||
echo "# Adding debian to /etc/hosts"
|
||||
echo "127.0.1.1 debian" | tee -a /etc/hosts > /dev/null
|
||||
systemctl restart networking
|
||||
fi
|
||||
|
||||
# FIXING LOCALES
|
||||
# https://github.com/rootzoll/raspiblitz/issues/138
|
||||
# https://daker.me/2014/10/how-to-fix-perl-warning-setting-locale-failed-in-raspbian.html
|
||||
|
|
Loading…
Add table
Reference in a new issue