3434 Commits (491202d75fff8a7ce6d9ae5ee9bedfbcf9f083a2)

Author SHA1 Message Date
Adriaan de Groot 08d41f745b [partition] Remove superfluous null check
delete is specified to handle nullptr gracefully.

FIXES #1012
6 years ago
Caio Carvalho 01a972c6ea [partition] Fixing LVM LV name line edit visibility. 6 years ago
Caio Carvalho b5a2a5bbdd [partition] Don't show erase button for inactive RAID. 6 years ago
Caio Carvalho 7fd0ad5795 [partition] Disabling partition buttons for inactive RAID. 6 years ago
Andrius Štikonas 22aa6dc132 [partition] fix build with latest kpmcore. 6 years ago
Adriaan de Groot 8dc95f3e75 Merge branch 'master' of github.com:calamares/calamares 6 years ago
Simon Quigley 5c50587f89
Fix LUKS deployment link. 6 years ago
Adriaan de Groot f946254433 [branding] Document compiling .ts files
FIXES #1003
6 years ago
Adriaan de Groot 3b82e655d7 Merge remote-tracking branch 'origin/update-lvm-support' 6 years ago
Adriaan de Groot 238a1e812f [partition] Reduce the fudge-factor for swap size
- Reported by Bill Auger (I think), a 15GiB disk wouldn't hold
   a 8.9GiB root plus 4GiB swap -- due to 10% overprovisioning
   of swap, plus the 2.1GiB fudge factor.
6 years ago
Adriaan de Groot f10bab8a3a [partition] Minor code-styling 6 years ago
Adriaan de Groot 8ed26e537f [partition] Fix swap maximum size
- The existing calculation comment says "maximum 10% of disk"
   but the calculation itself uses 110%.
6 years ago
Adriaan de Groot 59fea041b6 [partition] Fix up calculations of sectors in auto-partition
- Calculating first free sector had an off-by-one so that
   partitioning would start at 2049.
 - EFI boot partition grew 1 sector larger than desired.
 - While here, align everything to 1MiB boundaries as well.

FIXES #1008
6 years ago
Adriaan de Groot 1cbfa9d693 [partition] Simplify code for sizing 6 years ago
Calamares CI 8c32fc75a1 i18n: [dummypythonqt] Automatic merge of Transifex translations 6 years ago
Adriaan de Groot ba639beb9a Merge branch 'master' into update-lvm-support 7 years ago
Adriaan de Groot ae7700f2d7 [libcalamares] Refactor searching for module configurations
- Similar to the refactorings in Calamares proper, just split out
   collecting the search paths into a static function. This makes
   it a little easier to find places that will need expansion for
   more-than-one-config-directory.
7 years ago
Adriaan de Groot f899bda81d [calamares] Restore missing search paths
- Misplaced {} makes the branding search path empty
 - Reported by @apachelogger
7 years ago
Adriaan de Groot b0e55c059a [calamares] Refactor searching for branding descriptor 7 years ago
Adriaan de Groot 22ee24a5ad [calamares] Refactor searching for settings.conf
- Split the collection of paths off from the search itself.
7 years ago
Adriaan de Groot 3329f2ea55 [calamares] Refactor searching for QML dir
- Split collecting the search paths into separate function
 - Don't fall back on the current directory
7 years ago
Adriaan de Groot 5d5feeb0ab Merge branch 'master' of https://github.com/cjlcarvalho/calamares into lvm-update 7 years ago
Adriaan de Groot f118fd73bc [calamares] More info when Cala is already running
- If Calamares is already running, print some information
   about which instances there are so that it is possible
   to unstick them.
7 years ago
Adriaan de Groot 1957478618 [services-systemd] Follow the flexible example of openrc
- Make *mandatory* optional (and default to false); this
   allows shorter lists of entries
 - Allow degenerate entries which are just a name
   (which have *mandatory* set to false as well).

SEE #992
7 years ago
Adriaan de Groot 73ecd7320c [services-openrc] Introduce *mandatory* subkey
- Follow services-systemd and have a *mandatory* subkey
   that selects for install-failure instead of just a warning.

FIXES #992
7 years ago
Adriaan de Groot 72c0d1a101 [services-openrc] Make list of services more flexible
- Allow just a name entry, instead of requiring an object
   entry; this makes "foo" equal to { name: "foo", runlevel: "default" }
   and simplifies more for the straightfoward case of #974.
7 years ago
Adriaan de Groot b02ee3cd8d [services-openrc] Follow services-systemd configuration example
- Based on comments from #974, follow the configuration
   scheme from services-systemd, so with separate lists
   "services" and "disable". This ties it **slightly**
   less closely to the commands passed to rc-config.
7 years ago
Adriaan de Groot dbcc419218 [services-openrc] Log failures
- If the rc-update command fails for some reason, log that
   failure instead of skipping it completely silently.
 - Fix syntax error as well
7 years ago
Adriaan de Groot 5a2ae7a250 [services-openrc] Simplify name extraction, default runlevel
- If runlevel isn't set (at all) then use "default". For
   most systems that do not use multiple runlevels, this
   simplifies the configuration to just a list of service names
   to add or delete.
7 years ago
Adriaan de Groot 8f0db9dc74 [services-openrc] Log configuration failures
- If services don't exist, or runlevels don't exist,
   log them instead of failing completely silently.
7 years ago
Adriaan de Groot cd640bda9f [services-openrc] Restrict actions
- Document the functions some more
 - Only "state" (i.e. action) "add" and "del" make sense,
   avoid calling rc-update for other keys (e.g. typo's).
   This matches the documentation, although there might be
   other actions that make sense (see also services-systemd,
   with its enable, disable and mask actions).
7 years ago
Adriaan de Groot b1881d1cd2 [services-*] Adjust Copyright notices 7 years ago
Adriaan de Groot e1d306dc2f [services-openrc] Adjust documentation and follow renaming 7 years ago
Adriaan de Groot 55e273ff00 Merge branch 'openrccfg' of https://github.com/artix-linux/calamares into artix-linux-openrccfg 7 years ago
Adriaan de Groot 59b07cc720 [services-systemd] Be more resilient in the config
- If a key is not given, use [] instead of crashing.
7 years ago
Adriaan de Groot c9c777b055 [services-systemd] Introduce disable-targets and mask
- With refactored code, introducing new kinds of actions
   is very few lines of code. Allow disabling targets
   (services was already possible). Allow masking units,
   but as a special case require the complete name.

FIXES #975
7 years ago
Adriaan de Groot 5d6e07712b [services-systemd] Refactor getting config
- Don't create temporary variables
 - Change API slightly to accomodate more (kinds of) suffixes
7 years ago
Adriaan de Groot 0520fc3b7e [services-systemd] Refactor to repeat less code
- The three steps of modifying services in the target
   system do basically the same thing, so factor out
   the loops and logging into a systemctl() function.
 - Log to warning() instead of just debugging, on failure.
7 years ago
Adriaan de Groot 08fc93f137 [services] Rename to services-systemd 7 years ago
Adriaan de Groot d66393f1ae [libcalamares] Fix early failure mode
- There is more to failing out of loadModules() than just
   emitting modulesFailed, so instead share the failure
   code with the code after loading modules -- but don't load any.
7 years ago
Adriaan de Groot 0db8082ae1 [libcalamares] Convenience type 7 years ago
Adriaan de Groot 08966ff933 [libcalamaresui] Check module dependencies
- Module dependency-checking is done in two phases:
   first, catch any unknown modules that are listed
   in *requiredModules* and bail out before loading
   anything. Second, check that the modules required
   by X occur before X in the sequence.
7 years ago
Adriaan de Groot 731594fb40 [libcalamaresui] Remove the requiredModules setting
- The value set in module.desc was never stored for use,
   but isn't an attribute of the instance, either. It belongs
   with the descriptor, in ModuleManager.
7 years ago
Adriaan de Groot 40252f1000 [removeuser] Minor documentation 7 years ago
Adriaan de Groot 1eede6f797 [modules] Configuration documentation for mount and luksopenswaphookcfg 7 years ago
Adriaan de Groot 63c03068c0 [modules] Documentation for fstab, grubcfg, mkinitcpio
- These modules were entirely documented as "use the source",
 - The sources aren't terribly clear either.
7 years ago
Adriaan de Groot 52f09f7f46 [modules] Minor documentation work on modules a-g 7 years ago
Adriaan de Groot c086d18a26 CMake: improve error-handling for USE_*
If USE_<foo> is given a value that doesn't match **anything**,
then bail out. Since USE_* is an explicit distro choice for a
specific implementation, it's an error if that implementation
is not there.
7 years ago
Adriaan de Groot b2c2b91645 CMake: introduce USE_<foo>
When there are multiple modules doing a thing and it really only
makes sense to have one of them in a given Calamares compilation,
the USE_<foo> variables allow you to select one, while ignoring
all the other implementations. If USE_<foo> is not set, all
implementations are included (as usual).
7 years ago
Adriaan de Groot 29830bc1e1 [services] Document the configuration file.
- Change the example to be harmless (empty)
 - Document the structure of the entries
7 years ago
Caio Carvalho 589628bb9a [partition] Removing unnecessary horizontal spacer on Partition Page. 7 years ago
Caio Carvalho 67d9ebbfc0 [partition] Setting revertButton enabled after deactivating VG. 7 years ago
Caio Carvalho 295e14530e [partition] Adding resizing, deactivating and removing procedures for LVM VGs. 7 years ago
Calamares CI c8de7e4d92 i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
udeved 88e082d531 openrccfg: add small documentation in conf, make service location configurable 7 years ago
Raul Rodrigo Segura f25d6b278d add support onLeave and onActivate to pythonqt plugins 7 years ago
Adriaan de Groot 47b130c539 Merge remote-tracking branch 'origin/fix-localegen'
FIXES #940
7 years ago
Adriaan de Groot d59a44be44 [libcalamares] Asking for type of undefined node throws
- Use YAML-CPP API for finding out if a node has a value at all.
 - Asking for Type() of an undefined or NULL node throws an
   exception, so the existing code didn't **actually** catch
   cases where a required setting wasn't set at all.
7 years ago
Adriaan de Groot 25f249180b [localecfg] Be slightly more conservative interpreting comments
- A valid line (as explained in the comments at the top of
   the locale.gen file) is <locale> <encoding> (two fields),
   so lines with more than two fields can't be valid locale-
   listing lines. For them, pretend they name locale "",
   which won't be matched.
7 years ago
Adriaan de Groot 8551653575 [localecfg] Re-write the locale.gen file better
- Improved debug-logging
 - Fix the actual problem of listing locales more than once,
   by listing them all, uniqified, at the end, with an explanitory
   comment in the generated file.
 - Be more accepting of what constitutes a locale-line; this allows
   spaces before and after the `#` comment sign, but because we're
   uniquifying, this doesn't cause duplicates.
 - Because we write the enabled locales at the end, the full file
   comment-header is retained un-mangled (instead of accidentally
   enabling a locale mentioned as an example there).
7 years ago
Adriaan de Groot 413ee81ead [localecfg] Simplify handling of en_US
- By adding en_US to the set of locales-to-enable, we can
   drop the special-case code for it.
7 years ago
Adriaan de Groot ec09272b81 [libcalamares] Fix inverted logic
Reported by bshah.
7 years ago
Adriaan de Groot b283ad69d5 [libcalamares] Complain if key isn't set
- Previous check would also fail when the setting is false,
   not just when the key is missing.
7 years ago
Adriaan de Groot efc977f7b4 [localecfg] Fix mismatch between filenames
Testing for existence of a file in the live system, and then
copying it in the target system, is not a recipe for success.

 - Fix the restore-from-backup part.
 - Document that your live and target system must both have
   /etc/locale.gen if you want this to work at all.
7 years ago
Adriaan de Groot 7498629b5f [localecfg] Move all path-setting to one spot
- Make the way the paths are constructed consistent
 - Name the paths more consistently
7 years ago
Adriaan de Groot 863d00f40c [localecfg] Document purpose of this module 7 years ago
Adriaan de Groot 1a097f8c49 Style: run modulesystem through the style guide 7 years ago
Adriaan de Groot 58121abf06 [libcalamaresui] Wasted spaces 7 years ago
Adriaan de Groot a64de3dbfe [libcalamaresui] Assign the index to found
- Previous code assigns the result of the comparison to found,
   instead of the index, resulting in the wrong configuration
   map sent to each module.
7 years ago
Adriaan de Groot 398b6be4ba Update issue template 7 years ago
Kevin Kofler 15e9edca70 [packages]: Implement update_system for pkcon, yum, dnf
Also make install for yum and dnf follow the documented syntax: options
(-y) before the command (install), even though yum and dnf also accept
the other order. This also makes it consistent with remove.
7 years ago
Adriaan de Groot 9d17e7210a [partition] Change shortcut for "Create" to 'a'
Untangle the shortcuts; Create and Cancel had an overlap.
Skip 'r' (Revert all changes) and 'e' (Edit) and settle on
'a' (which might also mean "Add").

FIXES #977
7 years ago
Philip Müller 3a3a4ec363 [packages] update documentation 7 years ago
Philip Müller c600c3ecca [packages] update documentation to reflect 'update_db' and 'update_system' differences 7 years ago
Philip Müller 1bd149c14e [packages] add initial support for update target system 7 years ago
Philip Müller 18bd455ae1 [bootloader] make paths for executable optional and adjustable 7 years ago
Calamares CI 88c168e6d5 i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot 5643ee4b8f Merge branch 'master' into secureboot 7 years ago
Adriaan de Groot 374a9bdca6 Merge branch 'emergency-modules'
Introduce the notion of emergency modules and emergency jobs.
Initial use will probably center around the preservefiles module,
and possibly umount.

FIXES #928
7 years ago
Adriaan de Groot 264d135776 [libcalamares] Run emergency jobs
- After a failure, skip non-emergency jobs.
 - After running all emergency jobs, then emit failure message.
 - In log, distinguish emergency and non-emergency jobs.
7 years ago
Adriaan de Groot 8387d5d81f [libcalamares] Allow emergency jobs
Any job can be an emergency job; emergency modules spawn
emergency jobs (but conversely, a non-emergency module
can spawn an emergency job explicitly).
7 years ago
Adriaan de Groot 3ed6f13fa8 [libcalamaresui] Adjust the emergency-ness of modules
A potentially emergency module is one that has EMERGENCY
(in CMake) or emergency: true (in module.desc) set.
Any such module must also set emergency: true in the
configuration of the module. This is to allow for
instances of a module that **don't** run as emergency
modules, alongside actual emergency ones.
7 years ago
Adriaan de Groot 53161f6e36 [preservefiles] Mark this as an emergency module
- For C++ modules, don't need the module.desc file in the
   source repo, since the CMake macros can create it.
7 years ago
Adriaan de Groot def459a29d [libcalamaresui] Read emergency setting from module.desc
- Read setting from the module descriptor
 - Document optional settings
 - Add EMERGENCY keyword to the CMake helper functions
7 years ago
Adriaan de Groot b92bef21f8 [libcalamares] Avoid using namespace std; 7 years ago
Adriaan de Groot fa08e0ad73 Copyright: fix bad email address 7 years ago
Adriaan de Groot dd8e53dc22 Copyright: update copyright lines on files touched in 2018
Contributions from:
  Adriaan de Groot <groot@kde.org>
  Gabriel Craciunescu <crazy@frugalware.org>
  AlmAck <gluca86@gmail.com>
  Andrius Štikonas <andrius@stikonas.eu>
  Caio Carvalho <caiojcarvalho@gmail.com>
  Raul Rodrigo Segura <raurodse@gmail.com>
7 years ago
Adriaan de Groot d2f2aa9a97 [branding] Link to the examples repository 7 years ago
Adriaan de Groot 99163c9a68 Style: stray space 7 years ago
Adriaan de Groot ac769d1de8 Style: use QStringLiteral
- In many cases, using QLatin1String is a de-optimization, when
   applied to a C string literal. Kevin Kofler pointed out that
   those should basically all be QStringLiteral, instead. (Compile
   tests with -O3 show that in the optimized object file, the
   code size difference is negligible).
 - Drop the explicit constructor entirely in cases where we're calling
   QProcess::execute(), for consistency.
 - Do a little less messing around in the mapping of keyboard locales
   to keyboard map names.
7 years ago
Adriaan de Groot 2d7eea6d73 Merge branch 'master' into emergency-modules 7 years ago
Caio Carvalho 98a158c6e5 [partition] kpmcore latest release doesn't support FileSystem::Type::Luks2 7 years ago
Adriaan de Groot 290559f8c1
Merge pull request #986 from raurodse/configurationPythonQt
Add configuration values into pythonqt modules
7 years ago
Raul Rodrigo Segura 448c5eae16 style code 7 years ago
Adriaan de Groot 67ad37581f [contextualprocess] Document corner-case
The "*" will match its literal value, but is also used as a wildcard.
7 years ago
Adriaan de Groot 011310091c [contextualprocess] QLatin1String -> QString
As Kevin pointed out, there's an extra conversion involved here --
although with -O3 the difference boils away leaving only a call
to a from-ASCII helper or a from-Latin1 helper.

While here, coding-style.
7 years ago
Adriaan de Groot 96cb42414c Merge remote-tracking branch 'origin/improve-settings-sanitization' 7 years ago
Adriaan de Groot 6cdb2daca3 Merge abucodonosor-plymouth 7 years ago
Gabriel Craciunescu 0ccca6902b [grubcfg] fix inter-module dependency with plymouthcfg modules
The plymouthcfg Calamares module is optional. Distributions which
  write filesystems with a full plymouth configuration won't even
  want to use it (see plymouthcfg docs).

  However, now grubcfg depends on plymouthcfg to run because
  the globalstorage value to trigger setting  'splash' in grub,
  is set in the plymouthcfg module.

  Just check for plymouth existence separately in the grub module.

  Fixes ea1c8a0e5d
7 years ago
Adriaan de Groot 2d29bf4449 [contextualprocess] Make conversion explicit
- Qt 5.7 doesn't like QLatin1Char comparison, so switch to
   a full string. Tested on Neptune Linux, #979
7 years ago
Adriaan de Groot fa0518f968 [contextualprocess] Make conversion explicit
- Should help with Qt 5.7 compatibility. Reported from Neptune
   Linux, #979
7 years ago
Calamares CI ef897f59f5 i18n: Add Korean (ko) language translations
Since this is a new language, it is currently 0% translated.
That is why it goes into _tx_bad. It will move to one of the
other categories once some translation has happened. Add the
(still empty) Transifex files already.
7 years ago
Calamares CI 0ea3d85ab0 i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot a8426730ca [libcalamaresui] Improve wording of modules failure warning 7 years ago
Adriaan de Groot 97a45db4bf [libcalamaresui] Reset font height when changing size
- defaultFontHeight() caches the result; clear cache
   when changing the default size, even though this happens
   only once in the current codebase.
7 years ago
Adriaan de Groot bb5ac0326d [libcalamaresui] Improve layout of "blank" view step 7 years ago
Adriaan de Groot 9918dfb95f [libcalamaresui] Reporting on failures
- Provide information on failed modules
 - Disallow further progress when configuration is borked
7 years ago
Adriaan de Groot 3e24c3c58f [libcalamaresui] Provide standardised large font 7 years ago
Adriaan de Groot 8b406cac9b [libcalamaresui] Improve module loading
- Add a TODO for allowing modules to come from somewhere other
   than the module loader (this would allow "internal" modules
   that are always present)
 - Warnings are warnings
7 years ago
Raul Rodrigo Segura d61b32aba6 Add configuration values into pythonqt modules 7 years ago
Caio Carvalho 3b6c764f75 [partition] Fixing revert device loop error in PartitionCoreModule::revertAllDevices. 7 years ago
Adriaan de Groot 35124c149e [libcalamaresui] Drop the 'goodbye' message 7 years ago
Adriaan de Groot a732ce11bc [libcalamares] Warn more about badly-formed config 7 years ago
Adriaan de Groot 49622a6a30 Tests: expand test-application test_conf
- Add -v (verbose) and -b (load via bytearray)
 - Verbose prints the keys read from the file,
 - Bytes reads via an indirection through QByteArray, like Settings does
7 years ago
Adriaan de Groot a40c36ef49 [libcalamaresui] Report on failed module loading
- Collect the failed modules, instead of bailing out on the first one
   (this also prevents crashes caused by quit() called from a timer).
 - Introduce a slot to report on failed module loading (no UI yet).
7 years ago
Caio 0465cc4214 [partition] Including revert on creation of LVM VGs. 7 years ago
Adriaan de Groot 1999e4e5c2 [libcalamaresui] Error out consistently when module loading fails
- Some module-loading failures were ignored and produce only a
   warning, instead of erroring out.
7 years ago
Adriaan de Groot dccf6f16f5 [libcalamaresui] Lambdas are fun, but not always the solution 7 years ago
Caio f8897e0e0b [partition] Including new LVM PVs in LVM VG creation GUI. 7 years ago
Adriaan de Groot a626e52bf3 [libcalamares] Introduce more descriptive type name 7 years ago
Caio e5351cdf3c [partition] Don't show capacity of new LVM VGs in DeviceModel. 7 years ago
Caio 208d58bcd9 [partition] Including CreateVolumeGroupDialog and fixing some of its GUI issues. 7 years ago
Adriaan de Groot 24b0df3c04 [locale] Missing includes
- Implicitly included in recent Qt, but not in old versions

Reported from Neptune Linux
7 years ago
Adriaan de Groot 83688f2837 Merge remote-tracking branch 'origin/shuffle-cmake' 7 years ago
Adriaan de Groot fe7f48662e Merge branch 'fix-iceland' (again) 7 years ago
Adriaan de Groot 15b97f8e3f [libcalamares] Add missing include-dir
- Fix build on FreeBSD, where the yaml-cpp headers don't live in
   any normally-searched include directory.
7 years ago
Caio d15ce56c97 [partition] Initial implementation of VolumeGroupBaseDialog. 7 years ago
Calamares CI 54515688f7 i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot 8430970e71 [preservefiles] Reduce copying by using const-ref into list 7 years ago
Gabriel Craciunescu 41d427e543 [modules]: hwclock fix typo
- methode -> method
7 years ago
Adriaan de Groot b66d4856e7 [libcalamaresui] Use modern C++ for (auto)deleting failed modules 7 years ago
Adriaan de Groot 40b60abcb3 [locale] Move constants for map-munging
These don't have to be defines at all.
7 years ago
Adriaan de Groot 1ee87c3cde [locale] Drop debugging define 7 years ago
Adriaan de Groot 6b3299e6ff [locale] Adjust the North
- Fudge the numbers in the North, to improve location
   of the pins and lines of latitude.
 - Inuvik, Yellowknife, Cambridge Bay, Resolute look ok
 - Thule, Scoresbysund look ok; Danmarkshavn a pixel or so too far North
 - Reykjavik is a bit too far North
 - Longyearbyen is a bit too far North

Since these places are off by one or two pixels, this becomes
invisible when a large pin + text label is placed on it.
7 years ago
Adriaan de Groot 4bacafb411 [locale] Fix timezone pixel map for Tierra del Fuego region
- Punta Arenas, draw like it's in -4
 - Ushuaia, draw like it's in -3

FIXUP pixel
7 years ago
Adriaan de Groot b7dbc8cc1f [locale] Name zones when debugging
- When debugging timezones, state their names (e.g. UTC offset)
   and also log the pixel position under consideration.
7 years ago
Adriaan de Groot 2c18ba6ddb [locale] Adjust latitude calculation in the southern hemisphere
The scaling on the map was a little off; the degrees of latitude
are a little wider there than around the equator and Europe.

 - Johannesburg is in the right spot
 - Hobart is no longer a suburb of Melbourne
 - Punta Arenas is in Chile
7 years ago
Adriaan de Groot 9f8f76befc [locale] Introduce timezone-widget debugging
Replace pin and text label with just a dot (to pinpoint where
locations are) and draw latitude lines on the globe when
DEbUG_TIMEZONE is set at compile time. Since there's probably
still timezone-related bugs (in particular in the images that
map points on the globe to timezones), leave this in the codebase.
7 years ago
Adriaan de Groot eddee7d76a [libcalamaresui] No point in isLoaded() being virtual. 7 years ago
Adriaan de Groot a04915e6fa [libcalamaresui] Add 'emergency' concept to modules. 7 years ago
Adriaan de Groot fdda1ef840 [bootloader] Mimic openSUSE's efibootmgr calls 7 years ago
Adriaan de Groot dad3669eae [bootloader] Take a stab at determining the shim name 7 years ago
Adriaan de Groot e4bda546cf [bootloader] factor our EFI-platform-bitness discovery 7 years ago
Adriaan de Groot cbd62fbeb1 Merge branch 'master' into secureboot 7 years ago
udeved a878c1a610 add openrccfg 7 years ago
Calamares CI 51b50b9366 i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot 50dea6ded3 [interactiveterminal] Make optional if requirements not met
This is orthogonal to the SKIP_* mechanism already documented
for avoiding modules. If the module is enabled, but its dependencies
are not present, don't bother building the module. This follows
e.g. plasmalnf as an "avoidably heavy dependency".

Related to a misplaced comment in ISSUE #956
7 years ago
Adriaan de Groot ce3e09318a [preservefiles] Improve failure messages 7 years ago
Adriaan de Groot 28a42a7230 Merge branch 'filepreserver' 7 years ago
Adriaan de Groot cdadc2f003 [libcalamares] Improve error logging during module loading 7 years ago
Adriaan de Groot 182458ad5a [calamares] Need a JobQueue and global storage before running any job.
The 'singleton' instances don't do a very good job of being singletons
or ensuring their own creation.
7 years ago
Adriaan de Groot 48771f968a [calamares] Load and execute the modules
This runs dummyprocess, at least, but the other three dummies coredump.
7 years ago
Adriaan de Groot 308f508c7e [calamares] Add a test-application.
This test-application should load a single module and execute it --
that can be used to quickly test configurations, loading, etc. This
is preparation for loading all sorts of Python modules by PythonQt.

The loader does some internals initialization and gets the module,
but doesn't actually run it yet.
7 years ago
Adriaan de Groot fdda0e14aa [libcalamaresui] Improve explainYamlException
- overloads for common kinds of label
 - improve error reporting when reading settings and branding files
7 years ago
Adriaan de Groot e5ca8e091f [libcalamaresui] Use refactored loadYaml 7 years ago
Adriaan de Groot 261c545476 [libcalamaresui] Refactor loading of YAML to QVariantMap 7 years ago
Adriaan de Groot f26ac63c07 [libcalamaresui] Make Python code const
- This is always loaded into the Python context, so it may as well
   be done only once.
7 years ago
Adriaan de Groot d3e57e9c9f [shellprocess] Expand tests
These tests run (shell) commands as part of the test; this may be
a security problem, although I've tried to do things safely.
7 years ago
Adriaan de Groot 87b9c42158 [shellprocess] Don't crash test
- May need to create a JobQueue before doing anything internal
 - May need to create global settings
 - Chroot always needs rootMountPath internally
7 years ago
Adriaan de Groot 8b00a03423 [shellprocess] Test command-substitution 7 years ago
Adriaan de Groot b5d900c1c6 [libcalamares] Allow a @@USER@@ replacement in commands
- Following example in preservefiles module, allow @@USER@@
   in commands (e.g. to do something specific in the home-dir
   of the new user).
7 years ago
Adriaan de Groot b7890d865f [preservefiles] Save GS, munge destination
- using `from: config` now writes a JSON file
 - using @@ROOT@@ and @@USER@@ in dest does a sensible
   substitution.
7 years ago
Adriaan de Groot ac287a0ac5 [libcalamares] Add a save() method to global storage
- This is a quick way to dump GS to JSON, which is useful
   for the preservefiles module #928
 - Also useful for, e.g., #466
7 years ago
Adriaan de Groot dae84d3bb1 [users] Improve explanation of other steps of adding a user 7 years ago
Adriaan de Groot 01ff1efc5d [users] Improve explanation when useradd fails 7 years ago
Adriaan de Groot 0d24c1db6c [users] Introduce userShell setting
- Add a *userShell* key, which can be left out (default, backwards-
   compatible) to retain the old /bin/bash behavior, or explicitly
   set to empty to defer to useradd-configuration, or explicitly
   set to something non-empty to use that shell.
7 years ago
Adriaan de Groot ed15edabf9 [users] Document passwordRequirements and code 7 years ago
Adriaan de Groot 3a59574128 [users] Factor out command-line to useradd
- This is prep-work for #964, which was caused by #955
 - Original assumption was that distro's would have a working
   useradd configuration; @abucodonosor already pointed out that
   this was probably not the case, but I ignored that.
7 years ago
Adriaan de Groot 6aa5be192b [netinstall] Drop unused includes 7 years ago
Calamares CI a79e62ac6b i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot 3133e759d0
Merge pull request #958 from bill-auger/patch-2
avoid pinging hard-coded server for netinstall.yaml
7 years ago
bill auger b6673f6324 move thisModule->isLoaded assert to after it's warning message 7 years ago
bill auger d7b1811e56 avoid pinging hard-coded server for netinstall.yaml
groupsUrl is optional and should be commented out by default
also this URL is 404
also only chakra would ever want to ping the chakra server anyways
7 years ago
Adriaan de Groot fb94c227f6 Merge branch 'netinstall' 7 years ago
Adriaan de Groot ba85fc760a [netinstall] Remove data-indirection
- There is no need to move data around between two parts of the
   same module via global storage.
7 years ago
Adriaan de Groot 3160bd7a54 [netinstall] Simplify getting configuration
- Use convenience methods for getting bools and strings from
   the configuration map. Ignore empty groupsUrls.
7 years ago
Adriaan de Groot 6779a44991 [preservefiles] New module preservefiles
- more flexible way to keep (all kinds of) files from the host
   system, into the target system.
 - WIP: substitutions like in shellprocess (@@ROOT@@, @@HOME@@ probably)
 - WIP: creating a JSON file from global settings
7 years ago
Adriaan de Groot 6c87747a5d [libcalamares] Make it possible to get the logfile name 7 years ago
Adriaan de Groot 5bcd6eaef8 [partition] Reduce warnings by removing unused code 7 years ago
bill auger 4826af97a9 consistent indentation in src/modules/netinstall/page_netinst.ui
this file has 1 space char indentation except for these lines
7 years ago
Calamares CI 6b02da9e9e i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Frede H f2677b0879
Update CreateUserJob.cpp
Removal of the hardcoded shell, letting the `/etc/default/useradd` be responsible for the shell.
7 years ago
Adriaan de Groot 65d00ccc37 Merge branch 'partition-flags'
Extensive go-over on the partitioning code. #622 is maybe "possibly fixed",
but there's no real indication of what constitutes an invalid combination
of flags.

FIXES #884 FIXES #951 FIXES #953 FIXES #622
7 years ago
Adriaan de Groot c73d6e80f6 [libcalamares] Switch @@ROOT@@ magic around
The substitution of @@ROOT@@ should happen when running in the
host, not in the target, system. Also only complain about it
if @@ROOT@@ is actually used in the commands.

FIXES #954
7 years ago
Calamares CI 6d1f5433b4 i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot 90a2e482be [partition] Check for available partition type before creating
- Avoid situation where you make 5 or more primaries in an
   MSDOS partition table.

FIXES #953
7 years ago
Adriaan de Groot bd57f1f2f1 [partition] Fix re-editing a newly created partition
- If there is a partition already (newly) created, then pass that
   to the dialog so that it can use the setings previously applied
   (e.g. mount point and flags).
 - This avoids the case where you create or format a partition,
   then click on it again to edit it and the previous settings are lost.
7 years ago
Adriaan de Groot ca03dad67b [partition] Refactor setting the flags UI
- Setup the lsit of flags consistently, by providing the available
   and to-be-checked flags.
 - In CreatePartitionDialog, assume that ~0 is all the flags.
7 years ago
Adriaan de Groot 4f451eece5 [partition] Refactor getting the checked flags 7 years ago
Adriaan de Groot 950cc9070d [partition] Rename MountPoints to PartitionDialogHelpers
This file is full of helper functions for the partition-editing
dialogs. At first it was just mount-point helper functions,
but there is other functionality that can be refactored.
7 years ago
Adriaan de Groot 336b8c758a [partition] Consider the future flags when checking EFI bootability
- If we're changing the flags to enable EFI boot, then that's
   enough to satisfy the (future) EFI bootability check.
   This is for issue #622 as well. Fixes #884.
7 years ago
Adriaan de Groot 0df304b206 [partition] Preserve desired partition flags
- Use the desired (future) flags, if set, to initialize the
   flags checkboxes. If there are no future flags set, this
   returns active flags as before.
 - This fixes the situation where editing a partition, changing
   flags, then editing it *again* re-starts with the original
   flags instead of the modified flags.
7 years ago
Adriaan de Groot 6739b81c2a [partition] Tell PartitionInfo about desired flags
- When creating a partition, or changing flags, tell
   the PartitionInfo about those desired flags.
7 years ago
Adriaan de Groot 7df143f64a [partition] Add flags to PartitionInfo
- PartitionInfo maintains information on "what is desired" for
   a given Partition. Now we can set desired flags, alongside
   the flags already supported by Partition (where activeFlags()
   gives you the flags currently set on that partition).
7 years ago
Adriaan de Groot 5b4668822d [partition] Also update combo box index when setting up
- Avoids case where you edit a partition with a mountpoint
   set; previously, calling setText() would update the text
   but leave the selected index unchanged (usually 0), so that
   later calling selectedMountPoint() would return empty.
7 years ago
Adriaan de Groot 323d20d1a5 [partition] Avoid sneaking an empty string into the mount points combo 7 years ago
Adriaan de Groot 255a99d714 [partition] Drop now-unneeded debugging 7 years ago
Adriaan de Groot 310555f16b [partition] Add /srv to standard mount-points list. 7 years ago
Adriaan de Groot 4402198b37 [partition] Centralize setting-of-mountpoint
- map empty to the 0'th index
 - add new entries as needed

This avoids having selected index 0, but a different text.
7 years ago
Adriaan de Groot a49c39bb53 [partition] Unmap mount-point special strings
- Reverse "(no mount point)" to the empty string
 - Provide convenience pointer-taking function
7 years ago