165 Commits (f9659989b18efb0e4e8eed268f5d6b85ac2ebb08)

Author SHA1 Message Date
Adriaan de Groot 090aee9196 Modules: adjust to split-out utils/Variant.h
- Most modules only needed the variant support, not the "whole"
   CalamaresUtils header.
 - While here improve ordering of headers as well.
7 years ago
Adriaan de Groot 3533bb3c2d Merge branch 'master' into issue-1061 7 years ago
Adriaan de Groot dbac9ecf7b [partition] Remove unused code
- The name table is in PartitionActions::Choices
7 years ago
Adriaan de Groot 4282e4c31f [partition] Instantiate the manual-partitioning page on-demand
- When the manual partitioning page exists, it reacts to
   changes in a bunch of models; these models can be changed
   repeatedly from the choice page.
 - the manual partitioning page really only needs to deal with
   the relevant selections at the moment it is instantiated.
7 years ago
Adriaan de Groot 71fd3ab010 [partition] Check-which-page consistently 7 years ago
Adriaan de Groot 8f9b9a2ccf [partition] Remove unused include 7 years ago
Adriaan de Groot df921606b9 [partition] Update copyright headers
- Files modified in 2019 by me
7 years ago
Adriaan de Groot 105f9c4861 [partition] Set firmware type
- This got lost in 3.2.4.
 - Thanks Gabriel for hunting it down; patch applied with some changes.
7 years ago
Arnaud Ferraris 982840bafd [partition] Allow a configurable EFI System Partition size
As requested, this commit adds a new configuration option to the
partition.conf file, name `efiSystemPartitionSize`.

When this option is absent, the default size of 300MiB will be used.

Fixes #1090

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
7 years ago
Adriaan de Groot 8cf3c217f7 Merge branch 'requirements-checking' 7 years ago
Adriaan de Groot cece01e3c5 [partition] Simplify next() 7 years ago
Adriaan de Groot 08565b5f17 [libcalamaresui] Remove the signal done() from ViewStep
- The signal is emitted, generally from next(), but not actually used.
7 years ago
Adriaan de Groot fbb513eee3 [partition] Remove artificial delay
- The sleep(3) was meant as a debugging aid for the multi-threaded
   part of requirements checking.
7 years ago
Adriaan de Groot 40de1bd2eb [partition] Give requirement entry a description
- The description is used in the Details dialog when the
   requirements fail. This one should be visible.
7 years ago
Arnaud Ferraris 74ead4c7ba [partition] improve filesystem search operation
Due to changes to the FileSsytem::typeForName() function, more
processing is needed to deal with locales and different cases.
This is done by refactoring the findFS() function, initially located in
the PartitionViewStep class, and making it available to the whole module.

Additionnally, more checks have been implemented regarding the use of
global storage in the PartitionLayout class, and the filesystem types
now use the correct FileSystem::Type, as requested.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
7 years ago
Adriaan de Groot 43eae0bc47 Merge branch 'master' into requirements-checking 7 years ago
Adriaan de Groot 335976e32c [partition] Improve defaultFS handling
- drop the localized comparisons; that's just confusing
 - warn when no default FS is set (then use ext4)
 - fix case-insensitive fallback; it used fsType, which was
   set to Unknown in the for loop.
7 years ago
Adriaan de Groot 04b4e37bd0 [partition] Don't display unsupported swap styles
- Suppress unsupported options while reading the config file.
7 years ago
Adriaan de Groot 0fdc737968 [partition] Fix logging output
- Using the assignment-operator just generates blank lines.
 - Using QLog with a log-level avoids the cDebug()-style special
   handling of warnings and errors (useless here, but may as well
   fix code style).
7 years ago
Adriaan de Groot 2fda5957f1 [partition] Complain about unsupported swap choices 7 years ago
Adriaan de Groot 73c39adf9c Merge branch 'improve-swap-ui' 7 years ago
Adriaan de Groot 02416578cd Merge branch 'release-3.2.4' 7 years ago
Adriaan de Groot a51a000681 Merge branch 'master' into improve-swap-ui 7 years ago
Adriaan de Groot bcce704589 Merge branch 'resize-control'
FIXES #1062 #1038
7 years ago
Adriaan de Groot 194f693412 [partition] Use new NamedEnum approach 7 years ago
Arnaud Ferraris 5cacc0ddc6 Merge remote-tracking branch 'upstream/master' into partition-layout 7 years ago
Adriaan de Groot 305249976f
Merge pull request #1069 from a-wai/preserve-selected-device
Preserve current device when going to manual partitioning and back
7 years ago
Adriaan de Groot ba63084c7e [partition] Refactor fstype naming
- Use locale "C" for checking filesystem names
 - Also check other possibilities and case-insensitive, to
   be more forgiving of weird configurations (and localizations)
7 years ago
Arnaud Ferraris dfb5412c57 [partition] Preserve current device when going to manual partitioning
Fixes #1043

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
7 years ago
Arnaud Ferraris ba673b17ee [partition] Add configuration option to disable manual partitioning
In some cases where a custom partition layout is used, use of this
layout is mandatory (this can be the case when using a read-only rootfs
which is updated by block-cpying an image file to it).

For these cases, the user must not be able to change the partition
layout, therefore we have to disable manual partitioning.

In order to stay consistent with current behaviour, manual partitioning
is still enabled by default. It will only be disabled if the partition
module's config file contains the corresponding option set to "false".

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
7 years ago
Arnaud Ferraris b2bf873ede [partition] Initialize partition layout from config file
In order to keep the partition layout during calamares' execution, we
add a PartitionLayout object instance to PartitionCoreModule. This class
will therefore be used to initialize the PartitionLayout object and
interact with it thoughout the program's execution.

When no partition layout is present in the config file, we initialize
the layout with a single ext4 partition mounted on '/', as it was
previously done.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
7 years ago
Adriaan de Groot 2998c27545 [partition] Use configured swap choices in choice page 7 years ago
Adriaan de Groot 5945e9584d [partition] Refactor name-to-enum and back for swap choices 7 years ago
Adriaan de Groot 97c9e5bdcd [partition] Debug-log available file-system types 7 years ago
Adriaan de Groot 463b1441a5 [partition] Be more verbose about default file-system settings
- Log the type that is configured
 - Document that this is a delicate setting, case-sensitive and
   dependent on KPMCore.
7 years ago
Adriaan de Groot c7645af358 [partition] Translate swap-choice-strings to enum
- Handle legacy and modern config, mixed-configs,
 - Translate strings to enum values,
 - Default and warn as appropriate.
 - Doesn't **do** anything with the config, though.
7 years ago
Adriaan de Groot 3d543e9063 [partition] Refactor to use current config-reading methods 7 years ago
Adriaan de Groot caa4b8ab53 [partition] Document intention of new-style swap config 7 years ago
Adriaan de Groot 7d0451fe69 [partition] Rename Choice -> InstallChoice
- There are more choices to be made (or to come) when partitioning,
   so don't take the most generic term for one enum.
7 years ago
Adriaan de Groot bf40f3bd23 Merge branch 'master' into requirements-checking 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 c7629182e4 Merge branch 'master' into requirements-checking 8 years ago
Adriaan de Groot a72bdfac52 Merge branch 'master' into requirements-checking 8 years ago
Adriaan de Groot 3315df5df1 [modules] Use new convenience logging methods across the board 8 years ago
Adriaan de Groot e3b7a2884b [partition] Relax check with UI-level warning message, too 8 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 8 years ago
Adriaan de Groot 29e532a790 [partition] Insert annoying 3-sec delay
This is intended for testing -- it helps debug where a slow
requirement check blocks the UI.
8 years ago
Adriaan de Groot 4566e53d01 [partition] Delay requirements checking until pmcore is initialized 8 years ago
Adriaan de Groot ba21a221df [partition] C++ style 8 years ago
Adriaan de Groot 16fbe4dc8c [partition] Sample of requirement checking
- There should be at least device to select, overwise we can't continue.
   The check currently **always** fails, so it blocks installation.
8 years ago
Adriaan de Groot 7e66499f36 Refactor check for EFI system.
The TODO stands, to delegate this to KPMCore.
8 years ago
Adriaan de Groot 3c3c0f99f8 C++ trickery, part two: shorten code 8 years ago
Adriaan de Groot c0b3f3fe9d Clang: reduce warnings; make enum-switch explicit 8 years ago
Teo Mrnjavac 3aebb79d30 Add optional config value neverCreateSwap in partition module.
CAL-458 #close The feature has landed in master, please test.
9 years ago
Teo Mrnjavac 83b51a5867 Show warning. 9 years ago
Teo Mrnjavac 17fe2d82f4 Oops. 9 years ago
Teo Mrnjavac a55bef5d2d Warn user about encrypted root with unencrypted /boot. 9 years ago
Teo Mrnjavac 6e7dc0b437 Use the target system's boot name in partitioning summary widget. 9 years ago
Teo Mrnjavac 5796b05fda Allow disabling automated LUKS modes. 9 years ago
Teo Mrnjavac 45f6e6c55b Rearrange asynchronous scan in PartitionCoreModule a bit. 9 years ago
Teo Mrnjavac 2c68802446 Reapply the action choice instead. 9 years ago
Teo Mrnjavac 3940e2b09d Add config option for always showing partition labels. 9 years ago
Teo Mrnjavac 498af8deef Add defaultFileSystemType to settings. 9 years ago
Teo Mrnjavac c9fac9bc5c Manage PCM loading with QtConcurrent. 10 years ago
Teo Mrnjavac 0666fb4977 Defer PartitionCoreModule initialization so it doesn't block startup. 10 years ago
Teo Mrnjavac 055ff5533e Fixup strings. 10 years ago
Teo Mrnjavac fb5b48528b Move ESP check to onLeave(). 10 years ago
Teo Mrnjavac 0c7b7ed089 Warn the user if going ahead from manual partitioning without ESP. 10 years ago
Teo Mrnjavac 7a89b53538 Refactor leave event of ChoicePage, add ESP mount point support.
PVS now calls ChoicePage::onLeave, which in turn runs ChoicePage::
doAlongsideApply and/or sets up the ESP mount point based on the UI
state if it's running in EFI mode and the action is Alongside or
Replace.
If setting up under BIOS, Alongside and Replace always install
the bootloader in the MBR of the current device.
10 years ago
Teo Mrnjavac 5372245aed Copyright statements. 10 years ago
Teo Mrnjavac 984bc7ac08 Use it in summary. 10 years ago
Teo Mrnjavac 5f3e5bf372 Consistent config item naming. 10 years ago
Teo Mrnjavac 1ed1841e89 Read the setting from partitions.conf and apply it in PVS. 10 years ago
Teo Mrnjavac b811f9e261 Fixup strings. 10 years ago
Teo Mrnjavac 983c16d991 Fix up views in summary. 10 years ago
Teo Mrnjavac 26c89e6806 Make sure Alongside operation is applied. 10 years ago
Teo Mrnjavac b5882a75d1 AlongsidePage is not used any more. 10 years ago
Teo Mrnjavac 86399ece26 Trigger core reset when advancing to manual partitioning. 10 years ago
Teo Mrnjavac 071c02086a Update last page status. 10 years ago
Teo Mrnjavac 0224811bf6 Move Osprober to PCM and add Osprober roles to PartitionModel. 10 years ago
Teo Mrnjavac 1ad6c7e8ac Use new Labels view. 10 years ago
Teo Mrnjavac b65fe87503 PartitionPreview is now PartitionBarsView. 10 years ago
Teo Mrnjavac b31ac92d7e And make it build. 10 years ago
Teo Mrnjavac 26ac809d6e Don't instantiate ReplacePage in PVS any more. 10 years ago
Teo Mrnjavac 0a72f22a34 WIP: go to next page on next if erase selected. 10 years ago
Teo Mrnjavac 2e9e1782cf Remove EraseDiskPage from PartitionViewStep. 10 years ago
Teo Mrnjavac 9a67f6372c Continue asynchronously loading PartitionViewStep after config load. 10 years ago
Teo Mrnjavac 5f54a56513 PMUtils is now KPMHelpers. Also fixup after PartUtils refactor. 10 years ago
Teo Mrnjavac 7e6c626a0b PluginFactory in Partition module. 10 years ago
Teo Mrnjavac c2eef9ac30 The Humongous Include Fixage For KPMcore Headers. 10 years ago
Teo Mrnjavac 35f4db9316 Read ensureSuspendToDisk from partition.conf. 10 years ago
Teo Mrnjavac 905835295a Move osprober management out of ctor. 11 years ago
Teo Mrnjavac cf3359bdb4 Reset ReplacePage when going back from the next one. 11 years ago
Teo Mrnjavac 45d5c5bbde Only show the labels section where it's relevant. 11 years ago
Teo Mrnjavac d894638f2f Add information about the partitioning action in the Summary page. 11 years ago
Teo Mrnjavac fefa736501 Use <strong> instead of <b> in all instances. 11 years ago
Teo Mrnjavac 22411d2399 Never show an empty jobs label. 11 years ago
Teo Mrnjavac 69f6a2c73c Formatting in Summary page. 11 years ago
Teo Mrnjavac bf0296e155 Preliminary implementation of a summary queue for partitioning jobs. 11 years ago
Teo Mrnjavac 75f4f0fa04 Fix issue with splitting being allowed when it shouldn't be.
KPM docs misreport Partition::available to be in sectors, when it's
actually in bytes. Because of this, available space estimates were
completely off and resizing was allowed even when there's no room to
do it. This used to put the resize widget in all sorts of weird,
visually broken states.
CAL-188 #comment Does this still happen with current master?
11 years ago