summaryrefslogtreecommitdiff
path: root/src/machine-id-setup/machine-id-setup-main.c
Commit message (Collapse)AuthorAge
* Unify parse_argv styleZbigniew Jędrzejewski-Szmek2014-08-03
| | | | | | | | | | | | | | | | getopt is usually good at printing out a nice error message when commandline options are invalid. It distinguishes between an unknown option and a known option with a missing arg. It is better to let it do its job and not use opterr=0 unless we actually want to suppress messages. So remove opterr=0 in the few places where it wasn't really useful. When an error in options is encountered, we should not print a lengthy help() and overwhelm the user, when we know precisely what is wrong with the commandline. In addition, since help() prints to stdout, it should not be used except when requested with -h or --help. Also, simplify things here and there.
* machine-id-setup: use path_kill_slashes and modernizationsZbigniew Jędrzejewski-Szmek2014-03-14
|
* machine-id: add --root option to operate on an alternate fs treeGreg KH2014-03-14
| | | | | | | | | This makes it possible to initialize the /etc/machine-id file on an arbitrary filesystem hierarchy. This helps systems that wish to run this at image creation time in a subdirectory, or from initramfs before pivot-root is called. [tomegun: converted to using _cleanup_free_ macros]
* clients: unify how we invoke getopt_long()Lennart Poettering2013-11-06
| | | | | Among other things this makes sure we always expose a --version command and show it in the help texts.
* build-sys: drop all distribution specfic checksLennart Poettering2013-01-04
| | | | Yay, we now have a completely generic systemd. No distribution specific checks anymore!
* log: correct usage of logging API at a few placesLennart Poettering2012-07-13
|
* machine-id-setup: add the usual command line parametersLennart Poettering2012-04-12
|
* main: we want all setup functions to be in files called xxx-setup.[ch]Lennart Poettering2012-04-12