Commit Graph

84 Commits

Author SHA1 Message Date
Adriaan de Groot
fe64903d2f [initcpiocfg] Polish PR #1290
- List discrete years in copyright
 - Add docstrings
 - Massage detect_plymouth() to return bool (easier in if() context)
2020-01-06 14:34:47 +01:00
Philip Müller
85d3f9e9b9 [initcpiocfg] add usr hook if partition is separate 2019-12-16 09:40:54 +01:00
Philip Müller
a3da47cd9c [initcpiocfg] update plymouth check 2019-12-16 09:34:21 +01:00
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
e326b658ef Enable translation in Python modules
- covers all the remaining Python modules
 - most only get a translatable pretty name, some also return
   error messages
2019-04-20 11:22:32 +02:00
Adriaan de Groot
1a42b8af41 Merge branch 'kpmcore-3.2'
- Bumps requireed KPMCore to 3.3 (in spite of the branch name)
 - Cleans up some dependencies

Thanks to Andrius Stikonas.
2018-01-02 13:25:11 +01:00
Philip
be650d7986 [initcpiocfg] search just for 'lvm2' in partition[fs] 2017-12-30 05:01:25 -05:00
Philip
5a83024698 [initcpiocfg] add 'lvm2' hook as needed 2017-12-30 05:00:59 -05:00
Adriaan de Groot
762ad54344 Documentation: change http links to GitHub to https 2017-12-20 08:39:09 -05:00
Adriaan de Groot
798640be0d PEP8 whining 2017-08-31 04:51:34 -04:00
Adriaan de Groot
186f6cd1e2 initcpiocfg: accept (but warn) for missing config file in the host 2017-08-23 17:33:03 -04:00
Adriaan de Groot
3804e4df68 Python-style: follow-up to PR 735, remove non-idiomatic use of 'is' 2017-06-04 11:37:12 +02:00
Alf Gaida
b7488b611b Fixed pep8 whining in module initcpiocfg
Added myself to copyright
2017-06-02 22:26:58 +02:00
Teo Mrnjavac
79b0889db7 Don't include keyfile in initramfs on unencrypted /boot. 2016-11-17 18:15:37 +01:00
Teo Mrnjavac
b6b930dce8 Add openswap hook handling to initcpiocfg. 2016-05-13 16:09:35 +02:00
Teo Mrnjavac
ef5a190d5d Unbreak non-luks install. 2016-05-11 16:35:53 +02:00
Teo Mrnjavac
108b83cfd7 Write crypto_keyfile into mkinicpio configuration. 2016-05-06 18:59:51 +02:00
Teo Mrnjavac
0bc33645fa Add encrypt hook to initrd if needed. 2016-05-06 18:59:51 +02:00
Teo Mrnjavac
10ce42f35c Use target_env calls in Python modules. 2015-09-15 16:48:41 +02:00
Gormogon
26156a242e Rename so that the variable does not shadow the function name 2015-06-14 08:33:05 -04:00
Gormogon
beb911863b A little more PEP 2015-06-14 06:56:56 -04:00
Philip
d677fe9d01 [initcpiocfg] add python doc strings 2015-02-25 14:49:23 +01:00
Gormogon
b4db9fe64b Fixing PEP – 257 Violations 2015-02-25 14:49:23 +01:00
Gormogon
113d9db7cb Python Better Docstrings 2015-02-25 14:49:23 +01:00
Gormogon
7989267e81 Unused Imports 2015-02-20 09:24:05 -05:00
Gormogon
5c1ee7bbcb [PEP 8] General Style Part 3 2015-02-18 10:03:57 -05:00
Gormogon
1b7b999449 Quick Simplification 2015-02-18 09:13:39 -05:00
Gormogon
8e1480431a [PEP 263] Corrected Encoding Headers 2015-02-18 09:06:10 -05:00
Philip Müller
ca5132f13e [python modules] use str.format() 2015-02-17 14:38:30 +01:00
Rohan Garg
2b26be4162 Fix copyright holder 2014-11-10 15:45:40 +01:00
Rohan Garg
8a623cc118 Fix function call 2014-10-17 11:52:29 +02:00
Rohan Garg
34befb9cb8 Refactor CPU detection code to be more reliable
Instead of parsing hwinfo output, which might or might be present
on systems, just parse the /proc/cpuinfo file, it's much more
reliable.
2014-10-16 19:34:43 +02:00
Rohan Garg
f9bd0dfcfc Make sure the hwinfo executable exists before calling it 2014-10-14 15:41:20 +02:00
Philip
9de863a1af New initcpiocfg module, ported from Thus. 2014-08-19 15:54:02 +02:00