Commit Graph

74 Commits

Author SHA1 Message Date
Adriaan de Groot
ec0fe2ccd3 Modules: Improve error reporting
- [initcpio] remove superfluous inner function
 - [initcpio] catch errors from mkinitcpio itself and report them in a nice
   readable format.

 - Save translators the effort of doing a dozen messages
   with just the name of the module changed. All of these modules
   bail out on bad configurations with a meaningful message.
   - [initcpiocfg]
   - [fstab]
   - [initramfscfg]
   - [localecfg]
   - [luksbootkeyfile]
   - [luksopenswaphookcfg]

 - [machineid] Warn on bad config. It's conceivable that this is run
   with an empty rootMountPoint (i.e. "") to modify the running system,
   so only bail on None.
2019-04-28 14:34:39 -04:00
Adriaan de Groot
4178d5841c [modules] Enable translations on some Python modules
- Python modules should have human-readable names, which
   means that the description should be translated in `pretty_name()`
2019-02-14 15:30:48 +01:00
Adriaan de Groot
762ad54344 Documentation: change http links to GitHub to https 2017-12-20 08:39:09 -05:00
Adriaan de Groot
48cc1f0461 Python-i18n: adjust for changed API 2017-08-18 14:19:50 -04:00
Adriaan de Groot
5326e9ee06 Python-style: sharp-eyed KK spots a typo 2017-08-15 14:10:56 +02:00
Adriaan de Groot
f509000215 Python-style: cut-and-paste accident 2017-08-15 13:36:51 +02:00
Adriaan de Groot
1dbe7c29e2 Python-i18n: prepare for move of API to libcalamares.utils, be less verbose 2017-08-15 12:30:19 +02:00
Adriaan de Groot
fdb4be8189 Python-i18n: be explicit about parameters 2017-08-15 11:46:25 +02:00
Adriaan de Groot
c694792e4f Python-style: pep8 fixes 2017-08-15 11:39:58 +02:00
Adriaan de Groot
33bc669591 Python-i18n: trivial example adding _ to python jobs
- add to dummypython
 - also add to machineid
2017-08-10 15:39:24 -04:00
Alf Gaida
6adaa21a25 Fixed pep8 whining in module machineid
added myself to copyright
2017-03-21 22:45:12 +01:00
Philip
8768c3af66 [machineid] simplify code 2016-07-28 02:37:51 +02:00
Philip
ca9f4bc053 [manchineid] proper cleanup 2016-07-28 02:00:47 +02:00
Philip
24c0da3fb1 [machineid] fix copyright 2016-07-28 01:28:53 +02:00
Philip
23789675c8 [machineid] cleanup first
- to garantie a random new ID also dbus machine-id needs to be removed
2016-07-28 01:27:41 +02:00
Teo Mrnjavac
10ce42f35c Use target_env calls in Python modules. 2015-09-15 16:48:41 +02:00
Gormogon
db7577b9f8 More PEP 2015-06-14 07:04:52 -04:00
Philip
d7b36e9ff7 [machineid] add python doc strings 2015-02-25 14:49:23 +01:00
Gormogon
113d9db7cb Python Better Docstrings 2015-02-25 14:49:23 +01:00
Gormogon
5c1ee7bbcb [PEP 8] General Style Part 3 2015-02-18 10:03:57 -05:00
Gormogon
8e1480431a [PEP 263] Corrected Encoding Headers 2015-02-18 09:06:10 -05:00
Kevin Kofler
587e76aa56 machineid: Add modules.desc. 2014-11-27 22:18:34 +01:00
Kevin Kofler
5f99d51f80 machineid: Add missing import. 2014-11-27 21:11:56 +01:00
Kevin Kofler
0b0868822d Add a machineid module.
The module creates /etc/machine-id and/or /var/lib/dbus/machine-id. By
default, it is enabled and creates both files, making the latter a
symlink to the former.
2014-11-27 21:08:50 +01:00