Skip to content
Snippets Groups Projects
Commit 17ecfc74 authored by Emanuele Aina's avatar Emanuele Aina
Browse files

ospack: Disable fqdn resolution for sudo

When opening a new session sudo tries to resolve the fqdn of the host, but that
introduces a sensible delay if the host does not have a fqdn set up
appropriately, as it is often the case with development board or when booting
images in QEMU.

We currently also ship libnss-myhostname which in theory could solve the issue
at the system level and not just for sudo, but upstream configures it to come
*after* dns resolution to avoid breaking `hostname --fqdn`, see
https://github.com/systemd/systemd/issues/1280



Our use-case is sligthly different and we may configure libnss-myhostname to
precede dns resolution, but in the meantime keep disabling this in sudo as the
apertis-customization package used to do.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 552d5bdd
No related branches found
No related tags found
1 merge request!103ospack: Disable fqdn resolution for sudo
This commit is part of merge request !91. Comments created here will be created in the context of that merge request.
......@@ -475,6 +475,9 @@ actions:
- action: overlay
source: overlays/create-homedir
- action: overlay
source: overlays/sudo-fqdn
- action: overlay
source: overlays/default-locale-c-utf8
......
......@@ -377,6 +377,9 @@ actions:
- action: overlay
source: overlays/create-homedir
- action: overlay
source: overlays/sudo-fqdn
- action: overlay
source: overlays/default-locale-c-utf8
......
......@@ -97,6 +97,9 @@ actions:
- action: overlay
source: overlays/create-homedir
- action: overlay
source: overlays/sudo-fqdn
- action: overlay
source: overlays/default-locale-c-utf8
......
......@@ -673,6 +673,9 @@ actions:
- action: overlay
source: overlays/create-homedir
- action: overlay
source: overlays/sudo-fqdn
- action: overlay
source: overlays/default-locale-c-utf8
......
......@@ -210,6 +210,9 @@ actions:
- action: overlay
source: overlays/create-homedir
- action: overlay
source: overlays/sudo-fqdn
- action: overlay
source: overlays/default-locale-c-utf8
......
# FQDN lookup is painfully slow if the DNS server is misconfigured.
# Use gethostname() instead.
Defaults !fqdn
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment