Commit Graph

7631 Commits (4d85a64e4f5e130562aaa1b6100a7c9a53eb00b4)
 

Author SHA1 Message Date
Adriaan de Groot 4d85a64e4f [users] Fix build on Linux
Adriaan de Groot 1e08ee084f [users] Actually add the test file
Adriaan de Groot 92938f63f8 Merge branch 'move-permissions' into calamares
Adriaan de Groot 8ce7457023 [users] Add test for create-users code
- just one test for groups-file loading
- while here fix bug that blank and comment lines were being
  kept as valid group names
Adriaan de Groot 8a6e4af511 [users] FreeBSD support creating user
- call pw useradd and pw usermod as needed; the code paths are basically
  the same in invoking a program in the target system to do the work.
Adriaan de Groot 26b8c82630 [users] Refactor user-creation and user-group-setting into methods
- This is prep-work for handling other tools for user- and group-
  creation as well.
Adriaan de Groot 1fddf723fe [users] FreeBSD support creating groups
Adriaan de Groot b99b87f787 [users] Explain some weird internals
Adriaan de Groot 90a0605f38 [preservefiles] [users] Use the Permissions methods
- don't call out to tools (executables) when we have an API for it
  (which might call out to those tools, but that's abstracted)
Adriaan de Groot 59dff815fc [libcalamares] Additional apply() methods for Permissions
demmm 389e36303f Changes: document keyboardq changes
Adriaan de Groot 1babcd2aa4 [libcalamares] Put Permissions in CalamaresUtils namespace
- most of the things in utils/ are in the CalamaresUtils namespace,
  let Permissions follow suit. Chase the name change in the
  *preservefiles* module.
- add an `apply()` function for doing the most basic of chmod.
  Note that we don't use `QFile::setPermissions()` because the
  **values** used are different (0755 for chmod is 0x755 in the
  enum value passed to `setPermissions()`).
Adriaan de Groot 5e35bcc830 Changes: document new features, translations
Adriaan de Groot d6910b47b5
Merge pull request from apt-ghetto/fixManualPartitionMsg
Revert Manual Partition instructions
Adriaan de Groot d22f392609 CMake: update language lists
- welcome Tajik
- welcome Interlingue
Calamares CI d0cdc8169e i18n: [python] Automatic merge of Transifex translations
Calamares CI d5d2d2a1f1 i18n: [desktop] Automatic merge of Transifex translations
Calamares CI e0bb7d9f6f i18n: [calamares] Automatic merge of Transifex translations
Adriaan de Groot a01c428270
Merge pull request from apt-ghetto/fixRootUsername
[users] Do not allow 'root' as username
demmm 3a3507f2b2 [keyboardq] remove background image use
make the module more in line with the look of the rest of Calamares
apt-ghetto 01b22d27a8 Do not allow 'root' as username
On the "Users" tab, the user can choose a username. It was possible to
use 'root' as username, which led to an installation error, because
'root' exists already.

Added a new check to the username validation.

Fixes .
apt-ghetto 2b3cc17782 Revert Manual Partition instructions
With PR  the label of the "Manual partitioning" option
was changed, which introduced several downsides:
  * The label is shown for UEFI and for BIOS installations.
  * The mountpoint of the ESP is and should be distro specific.
  * The label always mentioned GPT, which is irrelevant.
  * The label should explain, what the option does, and not, what
    problems can occur under certain circumstances.
demmm d114c383fa [localeq] remove obsolete vars & comments
set index in i18n.qml to -1, old settings were just for reading from the bogus model
current model uses strings, so index fails to read from it.  This fixes cala crashing on loading i18n.qml
Adriaan de Groot 409ab6ee86 [users] Refactor writing sudoers file
- use existing convenience methods
Adriaan de Groot bc484ae5da [users] Refactor /etc/group file handing
Adriaan de Groot 4d3422b931 [libcalamares] dox for Permissions
- Expand the documentation, emphasize octal-vs-decimal
- east-const consistently in this file (most of Calamares is west-const)
- shuffle the is-valid bool to the end of the data members,
  so sorting by size.
Adriaan de Groot 11482559ad [netinstall] There is no netinstall.qrc
Adriaan de Groot 2c110bfc66 Merge branch 'calamares' into move-permissions
Adriaan de Groot a835bb9a10 Changes: document new locale features
Adriaan de Groot 682146aa9b [libcalamares] Expand dox on TimeZone pairs
Adriaan de Groot 09020d68b0 [libcalamaresui] Make dox of ModuleManager signals more explicit
Adriaan de Groot a3e528aae3 Merge branch 'issue-1391' into calamares
Adriaan de Groot a080e47f4b [locale] Add prettyStatus to Config
- this is present in the previous config, and helps make the modules
  consistent by returning prettyStatus in both ViewSteps.
Adriaan de Groot 23810aae3d CMake: switch to autorcc from manual futzing
Adriaan de Groot 07c096673d [localeq] Report summary before install
Adriaan de Groot a4ed160060 [localeq] Offer a Config setting to set location from region/zone
- already had methods for various kinds of broken-up data, but
  not one for plain "region/zone" strings; having this makes
  it easier for QML to report a zone.
- use the region/zone method from QML, so that clicking on the
  world map updates the actual TZ in Config.
Adriaan de Groot e78cde7ccb [locale] Update GS when the LC value changes (not just location)
Adriaan de Groot 00e9454344 [localeq] Hook up to Config object
- get network status from the global Network object; document that
- get the strings describing the language and LC settings from
  the config-object instead of roll-our-own
- use the model of supported locales from Config to populate listboxes
- connect selection of language or LC to the Config object
Adriaan de Groot 75da1bece4 [locale] Add properties for language and LC codes
- we already had the human-readable status strings, but also want the
  actual code (particularly for being able to **update** the code
  from QML)
Adriaan de Groot fdbfbfe284 [localeq] Fix build, missed one case of removed member variable
Adriaan de Groot fb927c9763 [localeq] Use network-connected property to direct map-loading
Adriaan de Groot 36fb1124be [libcalamares] Export network status as Q_PROPERTY and to QML
Adriaan de Groot 51e743a67f [libcalamares] Give GlobalStorage a parent
Adriaan de Groot 4b7403d115 [localeq] Re-do with new Config
- remove stray and useless TODOs
- remove unnecessary empty overrides
- clean up includes
- drop all the code that is now in Config

Since the business logic (setting locations, maintaining GS, ...)
is all in the Config object, the ViewStep is remarkably simple:
hook up a UI to the Config, which in the case of QML is done
automatically.
Adriaan de Groot d90d451f42 [locale] Remove unnecessary includes
Adriaan de Groot 1f3cb32486 [locale] Apply coding style
Adriaan de Groot 824cb4d4b8 [locale] As the Page is constructed, it shouldn't change the location
- since the Page hooked up a model and changed the region-selection
  **after** connecting to signals, it would reset the location
  to Africa/Abijan (alphabetically the first timezone) during
  construction. Don't do that.
Adriaan de Groot 4f684be83d [locale] Avoid crashes in the map widget if there is no current location
Adriaan de Groot 42331f6e13 [locale] Move GeoIP lookup to config
- replace the weird synchronous-lookup-during-requirements-checking
  with a proper async lookup when the system is ready.
Adriaan de Groot a25d61077f [locale] Add GeoIP settings to Config
- this doesn't do the lookup **yet**
- while here, refactor setConfigurationMap so it reads like a story,
  with chunks bitten out into a handful of static inline void methods.