Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpine: hostname/UUID needs to be quoted #155

Closed
imrehg opened this issue Jul 25, 2016 · 0 comments
Closed

Alpine: hostname/UUID needs to be quoted #155

imrehg opened this issue Jul 25, 2016 · 0 comments

Comments

@imrehg
Copy link
Contributor

imrehg commented Jul 25, 2016

Using the alpine images, can run into an issue, not being able to start the application:

25.07.16 10:23:07 (+0800) Restarting application 'registry.resin.io/seeed/c67f3e9e16b0d8f0ac1b6292190626dd14280bd1'
25.07.16 10:23:08 (+0800) hostname: unrecognized option: 0
25.07.16 10:23:08 (+0800) Usage: hostname [-v] {hostname|-F file}      set hostname (from file)
25.07.16 10:23:08 (+0800)        domainname [-v] {nisdomain|-F file}   set NIS domainname (from file)
25.07.16 10:23:08 (+0800)        hostname [-v] [-d|-f|-s|-a|-i|-y|-n]  display formatted name
25.07.16 10:23:08 (+0800)        hostname [-v]                         display hostname
25.07.16 10:23:08 (+0800) 
25.07.16 10:23:08 (+0800)        hostname -V|--version|-h|--help       print info and exit
25.07.16 10:23:08 (+0800) 
25.07.16 10:23:08 (+0800)     dnsdomainname=hostname -d, {yp,nis,}domainname=hostname -y
25.07.16 10:23:08 (+0800) 
25.07.16 10:23:08 (+0800)     -s, --short           short host name
25.07.16 10:23:08 (+0800)     -a, --alias           alias names
25.07.16 10:23:08 (+0800)     -i, --ip-address      addresses for the hostname
25.07.16 10:23:08 (+0800)     -f, --fqdn, --long    long host name (FQDN)
25.07.16 10:23:08 (+0800)     -d, --domain          DNS domain name
25.07.16 10:23:08 (+0800)     -y, --yp, --nis       NIS/YP domainname
25.07.16 10:23:08 (+0800)     -F, --file            read hostname or NIS domainname from given file
25.07.16 10:23:08 (+0800) 
25.07.16 10:23:08 (+0800)    This command can read or set the hostname or the NIS domainname. You can
25.07.16 10:23:08 (+0800)    also read the DNS domain or the FQDN (fully qualified domain name).
25.07.16 10:23:08 (+0800)    Unless you are using bind or NIS for host lookups you can change the
25.07.16 10:23:08 (+0800)    FQDN (Fully Qualified Domain Name) and the DNS domain name (which is
25.07.16 10:23:08 (+0800)    part of the FQDN) in the /etc/hosts file.
25.07.16 10:23:08 (+0800) OpenRC init system enabled.
25.07.16 10:23:08 (+0800) /usr/bin/entry.sh: line 39: /sbin/init: No error information
25.07.16 10:23:09 (+0800) 
25.07.16 10:23:09 (+0800) Application exited 'registry.resin.io/seeed/c67f3e9e16b0d8f0ac1b6292190626dd14280bd1'

The UUID of this particular device is 0fb549fe00f9a9c4ba96a45f349b525c4e36498835dc0533b202606bd43d81 and because of the lack of quoting in hostname setting, the leading zero causes an issue.

Should properly quote the relevant variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant