6901 Commits (4efb082d67a08e80f3bcb03bd6879181410854e6)
 

Author SHA1 Message Date
Adriaan de Groot 3025c5383b [libcalamares] Document the pretty*() functions for Jobs 5 years ago
Adriaan de Groot 6d29c19e3e [libcalamares] Progress is float 5 years ago
Adriaan de Groot d3828a82fc [packages] Make dummy backend slower
- insert sleeps to make it slower (easier when testing)
- improve debug logging clarity by noting where the messages
  are coming from
5 years ago
Adriaan de Groot 1f34460d39 Merge branch 'improve-logging' 5 years ago
Adriaan de Groot 0abde6f1a7 [libcalamares] Don't print funcinfo in continuations
- when a single function does more logging, it generally marks
  those as subsequent debug-messages (with Continuation, or SubEntry)
  and we don't need to print funcinfo for those, since it was already
  printed the first time.
5 years ago
Adriaan de Groot 5248a37eb3 [libcalamares] Add FUNC_INFO into all debug messages
- This is needlessly verbose
- Chase CreatePartitionTableJob which needs to bind to a temporary
5 years ago
Adriaan de Groot 3ddee8090c [libcalamares] Drop intermediate CLog class
- All the real work is done in CDebug, so remove the base class.
5 years ago
Adriaan de Groot ae633c7e7b [removeuser] Remove superfluous formatting around logging 5 years ago
Adriaan de Groot c15022462a Changes: post-release housekeeping 5 years ago
Adriaan de Groot 623a8c2d43 [removeuser] Port to C++
No changes in functionality; add a little description in the .conf file.
5 years ago
Adriaan de Groot 0f8751497e CI: give tooling a standard LANG environment 5 years ago
Calamares CI 0d91220ab7 i18n: [calamares] Automatic merge of Transifex translations 5 years ago
Adriaan de Groot bfe45aea18 [netinstall] Warnings--, unused parameter 5 years ago
Adriaan de Groot 3df0878e43 [initramfs] Warnings--
Initializing the JobQuene (and hence Global Storage) and
the System instance is a bit odd, avoid unused-variable
warning with an ugly cast instead.
5 years ago
Adriaan de Groot 0793971d01 [libcalamares] Warnings--, unused variable 5 years ago
Adriaan de Groot 3c059cc599 Changes: pre-release housekeeping 5 years ago
Adriaan de Groot 72dcf886bf [contextualprocess] Improve tests, fix off-by-one
- there's no string representation for a QVariantMap, so it
  won't be converted; in *debug* output it looks like there's a
  string there.
- off-by-one when diving into compound selectors, spotted by
  test, now fixed.
5 years ago
Adriaan de Groot 28bf4082b3 [contextualprocess] Tests for new lookup behavior 5 years ago
Adriaan de Groot bdb208c079 [contextualprocess] Split API
In order to test some of the internals, split them into Binding.h.
This makes the interface visible for tests. The implementation
still lives in the same place.

While here, adjust the test to the changed **example** which
now lists an additional variable.
5 years ago
Adriaan de Groot 4a5b3e7bc8 [contextualprocess] Document new behavior for compound keys 5 years ago
Adriaan de Groot d114a3dc21 [contextualprocess] Allow selection from GS with "var1.var2.var3" 5 years ago
Adriaan de Groot f5522425f6
Merge pull request #1331 from PureTryOut/apk-support
[packages] Add apk (Alpine Linux package manager) support
5 years ago
Adriaan de Groot 510e4a0033 Changes: document debug-logging and FillGlobalStorageJob 5 years ago
Adriaan de Groot 54a4644893 [partition] Store filesystem types
- Write a new GS key filesystems_use, which is a map of filesystems
  in use on the target system.
5 years ago
Adriaan de Groot d4b26bbaf0 [partition] Tighten up the types of internal methods 5 years ago
Calamares CI c93f749a35 i18n: [python] Automatic merge of Transifex translations 5 years ago
Calamares CI 29ba5c961d i18n: [dummypythonqt] Automatic merge of Transifex translations 5 years ago
Calamares CI 6d638539e5 i18n: [desktop] Automatic merge of Transifex translations 5 years ago
Calamares CI 5e0f182ebc i18n: [calamares] Automatic merge of Transifex translations 5 years ago
Adriaan de Groot b0abb99ee1 [libcalamares] Don't log useless FUNC_INFO for Python
- When a Python module calls utils.debug(), there's no point
  in logging the C++ funcinfo that passes the parameters on;
  don't use cDebug() with its attendant magic.
5 years ago
Adriaan de Groot f818d4b446 [libcalamares] Log Q_FUNC_INFO as part of debug
- Warnings, errors, don't get funcinfo, but regular cDebug()
  calls do. Other special-cases, like calling Logger::CDebug()
  constructor explicitly, don't get funcinfo either.

FIXES #1328
5 years ago
Bart Ribbers 136d22188e
[packages] Add apk (Alpine Linux package manager) support 5 years ago
Adriaan de Groot 3456aabfce [libcalamares] Expand utility of list-logging
- Allow logging any QList type (needs explicit call in usage).
- Add a DebugList inheriting from DebugListT to keep existing
  code that logs QStringLists.
- For Calamares 3.3, consider using C++17 and class template deduction.
5 years ago
Adriaan de Groot 8f060a741f [calamares] Default to log-level 1 (not 8)
- This bug has been here since f233cac7a1,
  where a check for isSet() (of the -D option) was dropped. So since then,
  Calamares has always been running with full logging (-D8) on.
- The recently-added "easter egg" of showing the debug-button when
  log-level is 8 (to allow debugging-in-production) trips over the
  default-log-level of 8, so the debug-button is always visible.

So, minor bugs in the debugging-setup, combine to show a debug-button
when there shouldn't be one.

FIXES #1329
5 years ago
Adriaan de Groot aacdb6be29 Changes: post-release housekeeping 5 years ago
Adriaan de Groot 9b4af86ab9 Changes: fix up the changelog that should have been in 3.2.19.1 5 years ago
Adriaan de Groot 2db3b413f4 [libcalamares] Unmount with mount point, not device
- The manpage for umount says that -R can only be used with
  a mount point (e.g. /usr/local) and not a device name;
  this makes sense because a device might be mounted in multiple
  locations, but the mountpoint (and things mounted under it) lives
  in the filesystem tree.
- Existing code tried to unmount -R the device, not the mount point,
  and so always failed; leaving things mounted that shouldn't.
5 years ago
Philip Müller 0c8257df3d [initcpio] Don't claim other swap
From downstream ee99e34e25ed1224504bbef93fb41e5cad6b0ee8
5 years ago
Adriaan de Groot 7e24afc966
Merge pull request #1325 from Chrysostomus/patch-2
[grubcfg] Don't GRUB_SAVEDEFAULT if the FS doesn't support it
5 years ago
Matti Hyttinen 717b8947d5
Update main.py
Unset GRUB_SAVEDEFAULT if / or /boot is in btrfs or f2fs partition. This avoids the error "sparse file not allowed" at boot time. Btrfs and f2fs do not support saving default entry in grub.
5 years ago
Adriaan de Groot c20ac0836e [users] Take setRootPassword into account when hiding fields 5 years ago
Adriaan de Groot 7752cf31b3 [users] Improve documentation of setRootPassword 5 years ago
Adriaan de Groot 14979b1630 [libcalamares] TemporaryMount with backwards logic
- because mount() returns an exit code, and 0 is "success",
  the if (!code) was backwards: when mounting succeeded, the
  TemporaryMount object thought it failed.
- This leads to temp-mounts being left *all over* the place
  from os-prober and fstab-handling.
5 years ago
Adriaan de Groot a865620f90 [calamares] Easter egg: running -D8 will show the Debug Information button 5 years ago
Adriaan de Groot ee52e37b36 [libcalamares] Don't hard-code full paths
- See editorial in the code-comment. Still need to test that
   chroot(8) doesn't need a full path, otherwise this will
   go to /usr/bin/env udevadm to force lookup (redundantly
   if not in a chroot)
5 years ago
Adriaan de Groot 8c527ab592 [users] Overwrite host(s|name) files in target 5 years ago
Adriaan de Groot 4621937477 [users] Use right check on writing hostname
- !failed() also means "didn't write the file because it already
  exists", which is sometimes acceptable -- but not here.
  Use the more-strict bool() conversion, which is only when
  the file was actually written.
5 years ago
Adriaan de Groot 862b7e34df [libcalamares] Add tests for file-overwrite 5 years ago
Adriaan de Groot f89951716e [libcalamares] Add mode to createTargetFile()
- Unconditionally **not** overwriting the target file isn't an option:
  writing hostname, for instance, expects that to be done even
  if `/etc/hostname` already exists on the target filesystem.
5 years ago
Calamares CI d903a50bd8 i18n: [python] Automatic merge of Transifex translations 5 years ago