Commit Graph

6137 Commits (4acf63fd9adbca56e6431bc1d317db2e110f179a)
 

Author SHA1 Message Date
Adriaan de Groot 4acf63fd9a [unpackfs] Document fields of the UnpackEntry
- Document fields
 - While here, remove code for special-casing single-file copies.
   Those already work, based on rsync.
Adriaan de Groot 05c0398126 [unpackfs] Support multiple items better
- it's ok if item one creates directories where item two will write,
   so don't check for existence of all directories on start-up.

Reported by ArcoLinux.
Adriaan de Groot d58fdaa2cd [unpackfs] Stub of special handling for a single file
Calamares CI 65b81f84a5 i18n: [python] Automatic merge of Transifex translations
Calamares CI 10747178e8 i18n: [dummypythonqt] Automatic merge of Transifex translations
Calamares CI 9e54b95da2 i18n: [desktop] Automatic merge of Transifex translations
Calamares CI 6a28277aa2 i18n: [calamares] Automatic merge of Transifex translations
Adriaan de Groot 39299f9650 Changes: document new module features
Adriaan de Groot d9e8fbf477 Merge branch 'replace-machineid'
FIXES: 

This adds to the *machineid* module (which generates random UUIDs
for DBus and systemd) another key to configure generation of
a urandom pool in the target from the entropy in the host system.
Adriaan de Groot a2867d71af Merge branch 'issue-1253'
FIXES 
Adriaan de Groot b00335f5b3 [displaymanager] Treat openSUSE sysconfig like anything else
Adriaan de Groot d592a5bb94 [displaymanager] Fix sysconfig-only
- Improve documentation of the settings
 - If sysconfigSetup is true, **only** setup sysconfig and ignore
   the rest. This seems to be consistent with existing openSUSE-
   derivative distro's, which set displaymanagers to something
   nonsensical.
Adriaan de Groot 642dbf449c [machineid] Drop trailing \n, toInt() doesn't like it
Adriaan de Groot 9e359c98a9 [machineid] Refactor workers, demand absolute paths
Adriaan de Groot 12107b3113 [machineid] Turn back the change in tests
- the *mount* module inserts a rootMountPoint without trailing /
   into global storage, so we can't assume that here. On the other
   hand, the paths passed in to the Worker functions are absolute
   paths -- adjust the tests to follow that.
Adriaan de Groot dd47201f27 [machineid] Fix tests by appending a /
- The code in Workers.cpp assumes that rootMountPoint ends in a /
   so that it can have filenames appended easily; make the tests
   fit that assumption, but still need to check that it is so in
   production.
Adriaan de Groot c67ac999de [machineid] Implement DBUS and systemd machine-ids
- refactor running the command into a helper function,
   to deal with the regular if-command-failed-then-complain pattern.
 - mark parameters as unused.
 - move distinction about kind of DBus file up into the MachineIdJob
   and remove the enum that marked it.
Adriaan de Groot 145855a56f [machineid] Implement systemd machine-id creation
Adriaan de Groot 2b9e1d6231 [machineid] Add tests
- Testing some of the functionality that's been added just now:
   - copyfile fails, buggy implementation
   - poolsize fails, buggy implementation
   - removefile not tested
Adriaan de Groot 10e5995144 [machineid] Split helper functions into own file
Adriaan de Groot afe7dfbcf2 [machineid] Fix include guard comment
Adriaan de Groot 8352a793e1 [machineid] Implement entropy-file creation
- read-urandom or copy-existing-file are implemented
 - fairly chatty on failure
 - needs tests (probably the implementation should be moved to
   a separate file and unit-tested)
Adriaan de Groot 50bb8cde57 [machineid] Stubs for entropy, systemd, dbus randomness
Adriaan de Groot c8229733b0 [libcalamares] Document the pseudo-constructors for JobResult
Adriaan de Groot 9cbfd200a1 [machineid] Keep the paths unsullied
- keep the rootMountPoint and the path-with-random-data separate
   instead of concatenating them at the beginning. Then we can
   use the "clean" names also within the host system.
Adriaan de Groot 3a8d543c72 [libcalamares] Document operator bool() of JobResult
- this could be named isValid() instead, but basically the idea
   is that this code makes sense:

      JobResult r = do_thing();
      if ( !r ) { /* Error happened! */ return r; }
      /* Carry on .. */
Adriaan de Groot 8c3146a1cd [machineid] Start implementing module logic
- remove existing files for each kind of random-generation
   that is enabled. There's a helper function for the case that
   Cala is no longer setuid and needs help to remove those files
   from the target (e.g. a setuid helper).
Adriaan de Groot be27b44818 [machineid] Read configuration map into instance vars
Adriaan de Groot 3ae5a3db76 [machineid] Improve documentation on this module
- document module's purpose
 - document existing configurations
 - deprecate "symlink" and introduce more-accurate "dbus-symlink"
 - add new configurations for upcoming entropy file
Adriaan de Groot 4c0719d95d [machineid] Start porting to C++
Adriaan de Groot 160ecd5ddc Changes: post-release housekeeping
Adriaan de Groot eb84c0488d CI: Polish release script when -B is used to skip build
Adriaan de Groot 4970c328fa [libcalamares] Fix stringification of broken instance keys
Adriaan de Groot 70fc480c56 [libcalamares] If test is going to fail, be more verbose on failure
Adriaan de Groot 9ad5ba36b0 Changes: pre-release housekeeping
Adriaan de Groot d68ff5f694 CI: add option handling (alongside env) to influence build
Adriaan de Groot 8dc91b9838 Merge branch 'issue-1188'
FIXES 
FIXES 

You can now copy single files from the source image to the target.
You can now copy directories from the source image to the target.
Adriaan de Groot 95f725831f [unpackfs] Shuffle the documentation
- move all the examples to an EXAMPLES section
 - leave one single-file example enabled in the configuration
Adriaan de Groot 6fb2563c75 [unpackfs] Copy files when sourcefs = "file"
- Just use the existing rsync code, which can do both
   files and directory trees.
 - The existing code assumed we were always copying directories.
   Now double-check beforehand.
Adriaan de Groot 27cdaba8b2 [unpackfs] Special-case file sources
Adriaan de Groot 7856c1a6a8 [unpackfs] Do more checks before doing any work
Adriaan de Groot 784bc5b86e [unpackfs] Expand documentation
- comment out the squashfs example, since it's not readily
   available even on developer systems
 - add entries for the upcoming "file" type.
Adriaan de Groot 03cdfc3af6 Merge branch 'issue-1248'
FIXES 

Now with documentation and chasing TryExec if a .desktop file is
given alongside a broken executable value (the value is still
mandatory, but `executable: /bin/nonexistent/no-really/whut`
is now a suitable setting).
Adriaan de Groot 7ffe25fca0 [displaymanager] Document that TryExec can supplant executable
Adriaan de Groot 1beadee2a7 [displaymanager] Believe the .desktop file
- if a default DE is configured but the executable doesn't exist,
   believe the .desktop file. Then use that, and warn if the
   whole thing can not be found.
Adriaan de Groot 290a0698d8 [displaymanager] Add DE.find() which believes .desktop files
- for a DE entry which has a bad executable setting,
   update the entry from the .desktop file using TryExec.
   This assumes that the TryExec command is actually something
   you might want to run.
Adriaan de Groot fe33952733 [displaymanager] Document the internal functions for DE finding
- rename find_* to _search_* to make clear they're internal.
Adriaan de Groot a3666cabe0 [displaymanager] Fix naming
- Having a global and a class-local function with the same name
   that do very different things is confusing.
Adriaan de Groot fb07757aab [displaymanager] Document *defaultDesktopEnvironment*
- while the keys are mandatory, their meaning is entirely optional.
Adriaan de Groot 0510820594 [displaymanager] Document what the list of DE's is for