8022 Commits (613966d3ffa583f29841d4c4437660f48f8dfa3f)
 

Author SHA1 Message Date
Adriaan de Groot 5f2bbd179c [users] New test for password-setting
- check new config for accepting empty and bogus passwords
- check a config with minor pw checks for empty and bogus passwords
4 years ago
Adriaan de Groot 1dcf56761f [users] Apply validation to the passwords config knows about
- avoid update loops by checking values before emitting *Changed()
- check validity of user and root passwords when asked
- if root isn't going to be written, or re-uses the user password,
  defer to those status checks.
4 years ago
Adriaan de Groot e145bf68f1 [users] Remove extra ; 4 years ago
Adriaan de Groot 933e54a731 Changes: pre-release housekeeping 4 years ago
Asif Mahmud Shimon 3245d602db retrieving string list fix 4 years ago
Adriaan de Groot 805850d843 Changes: pre-release housekeeping 4 years ago
Adriaan de Groot f4eac6c86f [users] Create all the groups needed for the user
- 26b8c82630 added the list of all-the-groups-for-the-user,
  but didn't change the list passed to the method that
  creates groups.

FIXES #1488
4 years ago
Adriaan de Groot c296bcffa3 [libcalamares] When enqueueing jobs, pass a weight
- The weight is the module (instance) weight, which can be
  - the default weight of 1
  - the weight specified for the module (in module.desc / the module
    descriptor; this defaults to 1, above)
  - the weight specified for the instance (in settings.conf)
  The last of these "wins"; weights are constrained to 1..100

The weight isn't actually used in progress computation yet.
4 years ago
Adriaan de Groot a91ef65a37 [libcalamares] Make job weights integers 4 years ago
Adriaan de Groot 73b8ecd622 [unpackfs] Drop special-case for unpackfs
- make the module weight 12, rather than special-casing internals
4 years ago
Adriaan de Groot c19866f887 [libcalamares] Add a module-weight to the module descriptor 4 years ago
Adriaan de Groot 14875259c7 [users] Create all the groups needed for the user
- 26b8c82630 added the list of all-the-groups-for-the-user,
  but didn't change the list passed to the method that
  creates groups.

FIXES #1488
4 years ago
Adriaan de Groot 575bc03a5c
Merge pull request #1487 from PureTryOut/alpine-initramfs
[mkinitfs] New module
4 years ago
Adriaan de Groot e18cc81757
Merge pull request #1486 from demmm/calamares
[usersq] adding QML module usersq
4 years ago
Adriaan de Groot 0f0bae0235 Merge branch 'schema' into calamares
All of the schemata are now valid JSON-schema files, and all of
the example config files validate against those schema files.
4 years ago
Adriaan de Groot 050d74b4be Fix YAML schemas for all the remaining config files 4 years ago
Adriaan de Groot 14afce538b [netinstall] Fix schema -- the groups file still needs attention 4 years ago
Adriaan de Groot fcbd6e38c5 [keyboard] Fix schema -- forgotten field *writeEtcDefaultKeyboard* 4 years ago
Adriaan de Groot efab699479 [umount] Fix schema -- prefer *preservefiles* for keeping the log 4 years ago
Adriaan de Groot 2061024a03 [unpackfs] Fix schema -- new fields *exclude* and *excludeFile* 4 years ago
Adriaan de Groot 57f02464d9 [hostinfo] The hackish ARM-detection is only for Linux 4 years ago
Adriaan de Groot 665c2d53ab [libcalamares] Fix Doxygen comment for TZ locations 4 years ago
Adriaan de Groot c22e0a3451 [netinstall][users][tracking] Warnings--, extra ; 4 years ago
Adriaan de Groot e2f6817536 Merge branch 'issue-1176' into calamares
This doesn't actually implement the job-weight work, but lays important
groundwork in module instances and descriptors.

SEE #1176
FIXES #1473
FIXES #1474
4 years ago
Adriaan de Groot f73f94da27 Repait module.desc
- a handful of modules had an unused *requires* key in module.desc;
  this is probably from previous intentions around
  prerequisites-testing. Since the settings were empty anyway,
  they have been removed.
- [unpackfs] Compacted the way *requiredModules* list is written
4 years ago
Adriaan de Groot efd7145f76 [libcalamares] Implement the interface-specific fields for descriptor 4 years ago
Adriaan de Groot c8b96c278b [libcalamares] Complete the generic module descriptor
- loads emergency, noconfig, requiredModules keys
- warns (and marks descriptor invalid) if there are unused / unknown
  keys left over in the descriptor data.
4 years ago
Adriaan de Groot e406ae1967 [libcalamares] Add name to module descriptor
- introduce basic tests of the data structure
- interpret name when passed in as descriptor data
4 years ago
Adriaan de Groot e1e81bb133 [libcalamaresui] Warnings--, don't shadow a parameter 4 years ago
Adriaan de Groot f1bb70269f [libcalamares] Improve warning/error logging
- the lack of a space after the : was inconsistent with most of the
  rest of the logging.
4 years ago
Adriaan de Groot 65273a262b [libcalamares] Start putting data into the module Descriptor 4 years ago
Adriaan de Groot 60fbf04594 [calamares] Adjust module test-loader for changed API
- the test-loader needs to create modules (and does so hackishly,
  outside of the ModuleManager) so it needs to chase the API as well.
4 years ago
Adriaan de Groot 3c6e53ecb9 [libcalamaresui] Chase the change in Module descriptor
- most of the code becomes **simpler** because the requirement
  to handle unstructured data is now in the descriptor itself,
  rather than in consumers.
4 years ago
Adriaan de Groot ee834a7abb [libcalamares] Define interface for Module descriptor
- add fields -- all const, all bogus -- to the descriptor,
  introduce a stub method to load the descriptor from
  YAML data (e.g. read from module.desc)
- lighten the type-naming in Module a little, with usings
4 years ago
Adriaan de Groot f0c4164515 [libcalamares] Add a more convenient find() to NamedEnum
- In most cases, you **know** the table covers all the enum
  values, and the extra parameter *ok* is just annoying.
  Provide a convenience that doesn't distinguish empty
  from empty-but-valid.
4 years ago
Adriaan de Groot 197cb9982c [libcalamares] Sort the tests by subdir 4 years ago
Adriaan de Groot bdd6bdc3b2 [libcalamares] Migrate module type and interface to descriptor
- move the enums
- expose the named-enum functions for them
- **start** replacing Descriptor with something stronger; this fails
  zero tests so it obviously wasn't tested at all
4 years ago
Adriaan de Groot 215cd0d1c3 [users] Repair test on openSUSE 4 years ago
Bart Ribbers b144f1dfc0
[mkinitfs] New module
This module allows the generation of the initramfs in Alpine Linux based
systems (excluding postmarketOS). Very bare bones, but then again it
doesn't need much. It uses the Alpine Linux tool "mkinitfs" to do the
job.
4 years ago
Adriaan de Groot 7cef99605f [libcalamares] Distinguish instances with an explicit weight
- setting the weight in *instances* should be different from letting
  the default weight (of 1) stand; explicitly saying 1 should
  carry some weight (ha!)
4 years ago
Adriaan de Groot c8964717c7 [calamares] Bail out on invalid settings 4 years ago
Adriaan de Groot d81d585c32 [libcalamares] Add isValid() to Settings
- settings can be invalid (missing data, whatever) and that
  can be used to shut things down early. Validity must be
  checked explicitly, though.
4 years ago
Adriaan de Groot 4cd2a4ae91 [libcalamares] Produce warnings while reading settings
- any invalid instance key will cause a complaint
- "new" custom instances in sequence get a complaint, but
  the instance description added to the list is valid
4 years ago
Adriaan de Groot a8075fba5f [libcalamares] Chase API change in settings 4 years ago
Adriaan de Groot 253e5610af [libcalamares] Better type for the list of InstanceKeys
- *sequence* lists module instance keys; make the stored type of
  those keys InstanceKey instead of QString
4 years ago
Adriaan de Groot b23dbd47c7 [libcalamaresui] Chase changes in instanceDescriptor
- this is mostly about deleting code, since the special-cases
  now live in libcalamares where `settings.conf` is interpreted.
4 years ago
Adriaan de Groot 57f5a92d96 [libcalamares] Build complete instanceDescriptor list
- there's no reason to ignore custom instances that are **not**
  mentioned in the *instances* section: it may be useful to
  name more that one even without distinct config files.
4 years ago
Adriaan de Groot 4968efdaa7 [libcalamares] Simplify constructors of InstanceDescription
- no more weights in constructors; do that in fromSettings() only.
- simplify test to drop those constructors
- set config file also for "normal" descriptors; fix test
4 years ago
demmm 355a4f9b8d [usersq] adding QML module usersq
module builds, installs and runs, connections are not working yet.

UserQmlViewstep.cpp/h are from PR https://github.com/calamares/calamares/pull/1356
sections are commented out to make the module build, but help is needed to get those 2 files corrected.

config names used in usersq.qml are guessed from users/Config.cpp
debug window shows correct entries in GS, and under the module tab, usersq.conf is read
as should too. Running shows most config used in users.qml are not registered/wrong,
many entries like: qrc:/usersq.qml:228:13: Unable to assign [undefined] to bool

It is understood not all needed from the users module has moved to Config.cpp yet,
but doing the PR now, since it runs, doesn't crash cala and help is needed to further implement.
4 years ago
Adriaan de Groot e507338f4c [libcalamares] Test config filenames as well (custom vs standard) 4 years ago