mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-19 03:06:42 +00:00
Ignore a bad id command to allow docker
Signed-off-by: Quentin Boswank <qubos@outlook.de>
This commit is contained in:
parent
ba17d355d3
commit
aa6a6c3a34
@ -264,7 +264,7 @@ fi
|
|||||||
|
|
||||||
# Good, now grab a bit of informations on the system we're being run on,
|
# Good, now grab a bit of informations on the system we're being run on,
|
||||||
# just in case something goes awok, and it's not our fault:
|
# just in case something goes awok, and it's not our fault:
|
||||||
CT_SYS_USER=$(id -un)
|
CT_SYS_USER=$(id -un 2>/dev/null || echo "unknown")
|
||||||
CT_SYS_HOSTNAME=$(hostname -f 2>/dev/null || true)
|
CT_SYS_HOSTNAME=$(hostname -f 2>/dev/null || true)
|
||||||
# Hmmm. Some non-DHCP-enabled machines do not have an FQDN... Fall back to node name.
|
# Hmmm. Some non-DHCP-enabled machines do not have an FQDN... Fall back to node name.
|
||||||
CT_SYS_HOSTNAME="${CT_SYS_HOSTNAME:-$(uname -n)}"
|
CT_SYS_HOSTNAME="${CT_SYS_HOSTNAME:-$(uname -n)}"
|
||||||
|
Loading…
Reference in New Issue
Block a user