6890 Commits (15cce29a5159dd81bb3dc1d923af5ab5fb0ea3a1)
 

Author SHA1 Message Date
Adriaan de Groot 1b80cf82de [fstab] Don't add swap that wasn't made new for us 5 years ago
Adriaan de Groot 158e11de1e [partition] Indicate that a filesystem is new in GS 5 years ago
Adriaan de Groot 7c2a196568 [users] Document new knobs
- while here, update copyright notice

FIXES #1140
5 years ago
Adriaan de Groot f7e8488edf [users] Correct DBus return from hostnamed calls 5 years ago
Adriaan de Groot 094c213baa [users] Also test hostname-setting via hostnamed
SEE #1140
5 years ago
Adriaan de Groot f1435452ea [users] Polish up tests
- Don't remove test artifacts on failure
 - Coding style
5 years ago
Adriaan de Groot c5b45c37fc [users] Add tests of the file-writing components 5 years ago
Adriaan de Groot 371fe267b1 Merge branch 'better-hostname' 5 years ago
Adriaan de Groot 94f5b13db0 [libcalamaresui] Restore previous DLLEXPORT names
- Different libraries should have different EXPORTs, so that
   you can IMPORT one while building the other. Reported (and
   kindly explained) by Kevin Kofler.
 - Stick to one header file, though.

While here, update copyright on file.
5 years ago
Adriaan de Groot 49eb8212e3 [users] Imporove enum-naming 5 years ago
Adriaan de Groot e74831fcb4 [users] Add .conf entries for hostname settings
- Set hostname not-at-all, or via one of two mechanisms
 - Write /etc/hosts or not
5 years ago
Adriaan de Groot 61d096c9ec [users] Prep-work for configurable actions
- tidy include style
 - add setting to UsersViewStep for hostname action
5 years ago
Adriaan de Groot 33b3321698 [users] Simplify reading configuration 5 years ago
Adriaan de Groot dbba0c9b03 [users] Move Job creation from the widget to the ViewStep
- Having the widget do creation ties the step heavily to that UI;
   start moving towards a state where we have a Config object (not
   here yet; it still queries the UI part) that moves data around
   between UI and ViewStep.
5 years ago
Adriaan de Groot 2471e74aab [users] Provide some accessors to the UI-page data 5 years ago
Adriaan de Groot ef4bb5e13b [users] Make SetHostName job actions configurable 5 years ago
Adriaan de Groot 0238a7338a Merge branch 'crush-dllmacros'
Tidy a bunch of includes, make it easier to add tests.
5 years ago
Adriaan de Groot 6719a41aef [libcalamares] Switch tests to calamares_add_test() 5 years ago
Adriaan de Groot 51e135cfbd CMake: chase introduction of IMPORTED yamlcpp 5 years ago
Adriaan de Groot 6f996d8eed CMake: give yamlcpp a proper imported target
- This makes linking easier,
 - Adds the right includes (needed on FreeBSD),
 - Lets us drop silly GUI setting for non-GUI tests (I think this was
   a side-effect of compiling on FreeBSD, where UI would pull in
   /usr/local/include).
5 years ago
Adriaan de Groot 4495a4c739 CMake: Allow extra libraries in calamares_add_test
- Extra libraries specified via LIBRARIES part of CMake function
 - Convert all the other module tests
5 years ago
Adriaan de Groot 637a57d534 [machineid] Change to calamares_add_test
- The test-macro handles cases without ECM or testing transparently.
 - Adds compile defines for STATICTEST.
5 years ago
Adriaan de Groot 6bdc4a55de CMake: new convenience module CalamaresAddTest 5 years ago
Adriaan de Groot b42520b0ef [machineid] Apply new STATICTEST specifier, hide implementation details 5 years ago
Adriaan de Groot 92260e7d0b [libcalamares] Document DllMacro.h and add STATICTEST
- document the export macros
 - introduce a "static" that is switched off when re-building code
   for tests.
5 years ago
Adriaan de Groot b044549013 [libcalamares] Merge PluginDllMacro.h into DllMacro.h
- Let's just have one header definining export- and visibility-
   macros for Calamares. They are still selected based on the
   export flags (*_PRO), just defined in one header instead of two.
5 years ago
Adriaan de Groot aaa6f6bd55 [libcalamaresui] Drop UiDllMacro.h
- The scattering of DLL export macro's is kind of useless;
   there are several headers, and then the export macro isn't
   even applied consistently. Just drop the one for UI exports,
   which was only used in libcalamaresui.
5 years ago
Adriaan de Groot 44bf0a5d6d [users] Add method for using hostnamed
SEE #1140
5 years ago
Adriaan de Groot 9a7465bfd5 [users] Refactor writing-hostname and writing-hosts
- Move to separate functions, as prep-work for making the actions
   configurable (and optional).
5 years ago
Adriaan de Groot 214f9a308e Merge branch 'improve-tests' 5 years ago
Adriaan de Groot d5f3e2e7d4
Merge pull request #1318 from yurchor/patch-2
[partition] Fix typo: partitons -> partitions
5 years ago
Adriaan de Groot 1242f71b3b
Merge pull request #1317 from yurchor/patch-1
[luksbootkeyfile] Fix minor typo
5 years ago
Yuri Chornoivan ea82a26dae
Fix typo:; partitons -> partitions
Many thanks in advance for reviewing.
5 years ago
Yuri Chornoivan b582c27bf4
Fix minor typo
Many thanks in advance for reviewing.
5 years ago
Adriaan de Groot 90f79b0692 [users] Restore error-checking to set-hostname code
- Use the new CreationResult code for compact results
5 years ago
Adriaan de Groot 781322ab41 [libcalamares] Use more descriptive variable name
- If the test failed, you'd get a cryptic message like
	FAIL!  : NetworkTests::testPing() 'r' returned FALSE. ()
   So rename the variable so the failure mode is more obvious.
   (Could have used QVERIFY2() instead, this is simpler)
5 years ago
Adriaan de Groot f6526f7d9f [libcalamares] Add some tests for CreationResult
- More important is the compiler warning that will show up
   if we add more failure states.
5 years ago
Adriaan de Groot 274115c727 [libcalamares] Update tests to reflect changed API 5 years ago
Adriaan de Groot 2d7398161d [libcalamares] More detail for createTargetFile()
- Return a result-object with statrus information and the path
   which was previously used (empty for "failures").
5 years ago
Adriaan de Groot 695b88b8a7 [users] Tidy up hostname creation
- Use the createTargetFile() convenience functions to do the
   actual work.
 - This probably involves more copying around of buffers, since it's
   creating one big QString and sending that off, rather than writing
   little chunks to a file, but I feel this is worth the code simplification.
 - Drops all the error checking for creation, though, because the API for
   createTargetFile() lousy.
5 years ago
Adriaan de Groot b337a6b3f5 [user] Apply coding style 5 years ago
Adriaan de Groot 2bb4dd8e22 [users] Refactor hostname-guessing 5 years ago
Gabriel Craciunescu 7c323bdcdc [users] Try to guess suggested hostname from dmi
- nothing compicated for now, just try to get something
  from /sys/devices/virtual/dmi/id/product_name and fallback
  to -pc thingy if we can't
5 years ago
Adriaan de Groot 7f295d9565 [partition] Apply coding style to core/ subdir
Because this is a giant code change, with no functional effect,
I've been saving this until the end of the kpmcore-manager branch.
5 years ago
Adriaan de Groot 2bc296b468 [unpackfs] Fix typo's introduced in june 5 years ago
Adriaan de Groot 45a31a3022 [partition] Tidy includes
- sort includes a little
 - remove superfluous includes
 - update copyright
5 years ago
Adriaan de Groot d931b146e3 [partition] Shuffle new conveniences into partition service
- the general stuff from KPMHelpers ends up in the partition
   service; that only gets compiled when KPMCore is available anyway.
5 years ago
Adriaan de Groot e72ecaafd3 Merge branch 'kpmcore-manager'
Introduces a "partitioning service" into libcalamares,
shuffles a bunch of things into it, tries to help out
with settling the system between partitioning actions.
5 years ago
Adriaan de Groot 6d10c41aeb Merge branch 'fs-translation'
Double-check the uses of filesystem names -- give only *untranslated*
names to system tools, and show *translated* ones.
5 years ago
Adriaan de Groot 5a50a3a40c [partition] Consistent FS name usage
- explicit use of user-visible names in EditExistingPartitionDialog
 - consistent conversion of config-values to FS names (user-visible).
   The GS value comes from the ViewStep, and should always match
   something -- it's already converted to the canonical un-translated
   so the type should be good.
5 years ago