Commit Graph

6296 Commits (fc8364ea549e2da518afcda2ee68074d75eb840f)
 

Author SHA1 Message Date
Adriaan de Groot 445d8501a7 [users] Different disambiguation for pwd-empty check
- all the other checks use "PWQ" as a tag, so use that here too
Adriaan de Groot e11c9a049f [users] Sort the password checks before applying them
Adriaan de Groot dec0cfb7d3 [users] Give password-checks a weight, to sort them later
Adriaan de Groot d93e2f0feb Changes: document existence of hostinfo module
Adriaan de Groot 2b8d04ffc1 [hostinfo] Add host RAM to GS
Adriaan de Groot 22a9fb89e8 [hostinfo] Document what this module does
Adriaan de Groot dac47d2c3a [hostinfo] Use os-release only if non-empty
Adriaan de Groot 6528ba30c9 [hostinfo] Fix compile and CPU detection.
bill-auger 6c6dcfe1cd housekeeping - calamares style
Adriaan de Groot cec84ee42b [hostinfo] Fix build on FreeBSD (include order)
- while here apply coding style again
Adriaan de Groot 5c7acdeb44 [hostinfo] New module with information about the host, in GS
Adriaan de Groot 67de4af4a4 [grubcfg] Add some test configurations
Adriaan de Groot f727362a90 [grubcfg] Guard against stupid configurations
- Scenario: *keepDistribution* is true, and the existing file contains
   a GRUB_DISTRIBUTION line **followed** by a commented-out GRUB_DISTRIBUTION
   line.
 - In that case, the commented-out line would change the flag back to
   False, and we'd end up writing a second GRUB_DISTRIBUTION line at the end.

Prevent that: the flag can only go to "True" and then stays there.

Editorial: If your grub configuration would have tripped this up, then
you're doing something wrong. Clean up the configuration file first.
Adriaan de Groot 4a0a8083f3 [grubcfg] If we only see #GRUB_DISTRIBUTION, it's not been set
- If we update the line, then GRUB_DISTRIBUTION has been set
 - If we don't update the line (e.g. because of *keepDistribution*)
   then a comment doesn't count as "have seen that line".

This means that if we get to the end of the file, with only commented-
out GRUB_DISTRIBUTION lines, and *keepDistribution* is set, then we'll
still write a distribution line -- because otherwise it's not set at all.
Adriaan de Groot c6c861654d [grubcfg] Update GRUB_DISTRIBUTION as needed
- Previous fix would erase the distribution information (using an
   empty string to flag 'preserve existing GRUB_DISTRIBUTION lines'),
   but that is fragile. A distro might set that, and yet **not**
   set a GRUB_DISTRIBUTION line, in which case it would end up with
   a setup without any GRUB_DISTRIBUTION set.
 - When a GRUB_DISTRIBUTION line is found, **then** check if it should
   update the line or not. This way, we have a suitable distribution
   to write if no GRUB_DISTRIBUTION is found at all.
Adriaan de Groot ac3b50fabb [grubcfg] Only replace a GRUB_DISTRIBUTOR line if wanted
Adriaan de Groot aae7d7dd0a [grubcfg] Update documentation of config file
- add some more general description
 - document new-to-implement *keepDistributor* flag

SEE 
Adriaan de Groot b3e7c3f294 [users] Run checks more often
- check password warnings when the page is entered
 - re-check (and translate) on language change
Adriaan de Groot cc66903678 [users] Allow an explicit check for non-emptiness of passwords
- move the explicit checking for non-empty into a specific
   (normal) password check
 - leave only the-two-fields-are-equal outside of the password-
   requirements framework
 - having non-empty is the same as minLength 1, but gives a different
   error message
Adriaan de Groot ffbc1a3e7d Changes: post-release housekeeping
Calamares CI a395ed1113 i18n: [python] Automatic merge of Transifex translations
Calamares CI 5a98a13856 i18n: [dummypythonqt] Automatic merge of Transifex translations
Calamares CI 2edb204c9e i18n: [calamares] Automatic merge of Transifex translations
Adriaan de Groot 9497540b64 Changes: pre-release housekeeping
Adriaan de Groot ef5fffc70e Merge branch 'bill-auger-patch-6'
FIXES 
FIXES 
Adriaan de Groot 699df6328f Changes: document this branch
Adriaan de Groot 196a358493 [users] Flag password problems even when weak-passwords are ok
- when you allow weak passwords, flag problems as warnings (yellow)
 - when weak passwords aren't allowed, they are fatal errors (red)
Adriaan de Groot a4e3ea2a86 [users] Refactor retranslation
- move retranslation to a method so that code-formatting doesn't
   get confused by it.
Adriaan de Groot 28c9da414b [users] Apply coding style
Adriaan de Groot 9fa817a244 [users] Refactor password-validation
- add a method that does the work and sets UI strings for a
   generic double-field password entry
 - use that for user and root passwords
Adriaan de Groot 7d25173afb [users] Remove TODO since it doesn't make sense
- the two explicit checks are the ones that handle *two*
   strings as special cases; all the other checks from
   the password-requirements system only handle the one string.
Adriaan de Groot 93eb169ea5 [users] Improve error messages
- distinguish beginning of username from the rest
 - must start with a letter or _
 - tighten message for bad username and bad hostname

FIXES 
Adriaan de Groot 8232ca626c [users] Refactor constants
Adriaan de Groot 9cd1ef93bd [users] Apply coding style
Adriaan de Groot 9ee0609b72 [users] Use tooltips
- the explanations under and around the boxes is noisy,
   hard to size correctly (viz. issue )
 - use tooltips in almost-all fields instead
 - add placeholder text to be more suggestive
Adriaan de Groot b3765bc144 [users] Massage the weak-passwords settings
- since the wording of the checkbox itself (and the functionality)
   is to enforce strong passwords, need to switch out some
   logic and fix the wording of the documentation.
Adriaan de Groot 3e4e492305 [users] Polish the documentation for the various checkboxes
Adriaan de Groot c030cc41cd [libcalamaresui] Refactor button-creation
- The "convenience" method was no longer convenient, since
   we now place strings on the buttons by default.
 - While here, **name** the buttons so they can be themed.
Adriaan de Groot ee4cd06c23 Merge branch 'master' into bill-auger-patch-6
Adriaan de Groot b78eacd7a8 [libcalamaresui] Set button texts always
- if the welcome module wasn't loaded (or loading otherwise failed)
   then no text was set, leading to confusing screens with
   buttons with icons but no label.
Adriaan de Groot 5ac4f3ec38 [libcalamaresui] Fix up module dependency checking
- If a module exists, and has unmet dependencies, then
   that is only a problem if the module itself is *used*.
   Merely existing is ok.

This triggers on FreeBSD, where partition isn't built, but
bootloader depends on partition -- so you can never start
Calamares on FreeBSD, because bootloader depends on something
non-existent.

Relax the check: just warn, and only fail if a non-existent
module is used (all those with unmet dependencies are considered
non-existent).
Adriaan de Groot a9a12820d8 [libcalamaresui] Log the found-modules
- fix up comment because it described an old member variable name
 - log number of modules found (all the *potential* modules)
Adriaan de Groot c4b0511f8d [libcalamaresui] Improve debug message for bad dirs
- Calamares scans **all** subdirs of the module-directory
   for a module.desc and complains about those that don't have
   a module.desc.
 - For ./calamares -d runs from the build-directory, this
   leads to a few complaints when some plugins have been
   ignored (and so no module.desc is generated for them).
Adriaan de Groot ede50756a1 [users] Simplify config-logic for weak-passwords
- Use the convenience methods for config-reading.
 - Always set the value (to the default if nog explicitly
   set in the config-file).
Adriaan de Groot 21bcd560b1 [users] Use API to change weak-checkbox visibility
Adriaan de Groot eb90757063 [users] Apply coding style (lots of churn)
Adriaan de Groot 799f1131a9 Merge branch 'patch-6' of https://github.com/bill-auger/calamares into bill-auger-patch-6
Adriaan de Groot 300ebaaa03 Changes: post-release housekeeping
Adriaan de Groot 3a7d0d4ee7 Changes: pre-release housekeeping
Adriaan de Groot 9c7684de22 Merge branch 'improve-excludes'
FIXES