148 Commits (b41e4624c92c7bbca73deb3aa6f004f16e46ebee)

Author SHA1 Message Date
Adriaan de Groot 04b4e37bd0 [partition] Don't display unsupported swap styles
- Suppress unsupported options while reading the config file.
6 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).
6 years ago
Adriaan de Groot 2fda5957f1 [partition] Complain about unsupported swap choices 6 years ago
Adriaan de Groot 73c39adf9c Merge branch 'improve-swap-ui' 6 years ago
Adriaan de Groot 02416578cd Merge branch 'release-3.2.4' 6 years ago
Adriaan de Groot a51a000681 Merge branch 'master' into improve-swap-ui 6 years ago
Adriaan de Groot bcce704589 Merge branch 'resize-control'
FIXES #1062 #1038
6 years ago
Adriaan de Groot 194f693412 [partition] Use new NamedEnum approach 6 years ago
Arnaud Ferraris 5cacc0ddc6 Merge remote-tracking branch 'upstream/master' into partition-layout 6 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
6 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)
6 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>
6 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>
6 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>
6 years ago
Adriaan de Groot 2998c27545 [partition] Use configured swap choices in choice page 6 years ago
Adriaan de Groot 5945e9584d [partition] Refactor name-to-enum and back for swap choices 6 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 7 years ago
Adriaan de Groot a72bdfac52 Merge branch 'master' into requirements-checking 7 years ago
Adriaan de Groot 3315df5df1 [modules] Use new convenience logging methods across the board 7 years ago
Adriaan de Groot e3b7a2884b [partition] Relax check with UI-level warning message, too 7 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 7 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.
7 years ago
Adriaan de Groot 4566e53d01 [partition] Delay requirements checking until pmcore is initialized 7 years ago
Adriaan de Groot ba21a221df [partition] C++ style 7 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.
7 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.
8 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. 9 years ago
Teo Mrnjavac 0666fb4977 Defer PartitionCoreModule initialization so it doesn't block startup. 9 years ago
Teo Mrnjavac 055ff5533e Fixup strings. 9 years ago
Teo Mrnjavac fb5b48528b Move ESP check to onLeave(). 9 years ago
Teo Mrnjavac 0c7b7ed089 Warn the user if going ahead from manual partitioning without ESP. 9 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.
9 years ago
Teo Mrnjavac 5372245aed Copyright statements. 9 years ago
Teo Mrnjavac 984bc7ac08 Use it in summary. 9 years ago
Teo Mrnjavac 5f3e5bf372 Consistent config item naming. 9 years ago
Teo Mrnjavac 1ed1841e89 Read the setting from partitions.conf and apply it in PVS. 9 years ago
Teo Mrnjavac b811f9e261 Fixup strings. 9 years ago
Teo Mrnjavac 983c16d991 Fix up views in summary. 9 years ago
Teo Mrnjavac 26c89e6806 Make sure Alongside operation is applied. 9 years ago
Teo Mrnjavac b5882a75d1 AlongsidePage is not used any more. 9 years ago
Teo Mrnjavac 86399ece26 Trigger core reset when advancing to manual partitioning. 9 years ago
Teo Mrnjavac 071c02086a Update last page status. 9 years ago
Teo Mrnjavac 0224811bf6 Move Osprober to PCM and add Osprober roles to PartitionModel. 9 years ago
Teo Mrnjavac 1ad6c7e8ac Use new Labels view. 9 years ago
Teo Mrnjavac b65fe87503 PartitionPreview is now PartitionBarsView. 9 years ago
Teo Mrnjavac b31ac92d7e And make it build. 9 years ago
Teo Mrnjavac 26ac809d6e Don't instantiate ReplacePage in PVS any more. 9 years ago
Teo Mrnjavac 0a72f22a34 WIP: go to next page on next if erase selected. 9 years ago
Teo Mrnjavac 2e9e1782cf Remove EraseDiskPage from PartitionViewStep. 9 years ago
Teo Mrnjavac 9a67f6372c Continue asynchronously loading PartitionViewStep after config load. 9 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. 10 years ago
Teo Mrnjavac cf3359bdb4 Reset ReplacePage when going back from the next one. 10 years ago
Teo Mrnjavac 45d5c5bbde Only show the labels section where it's relevant. 10 years ago
Teo Mrnjavac d894638f2f Add information about the partitioning action in the Summary page. 10 years ago
Teo Mrnjavac fefa736501 Use <strong> instead of <b> in all instances. 10 years ago
Teo Mrnjavac 22411d2399 Never show an empty jobs label. 10 years ago
Teo Mrnjavac 69f6a2c73c Formatting in Summary page. 10 years ago
Teo Mrnjavac bf0296e155 Preliminary implementation of a summary queue for partitioning jobs. 10 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?
10 years ago
Kevin Kofler 8c98aeb04a Make efiSystemPartition mount point configurable in partition.conf.
Copy the setting into the global storage. Make the EraseDiskPage in the
partition module and the grub and bootloader modules read it from there.
Do not hardcode /boot as the path anymore.

I set the default path to /boot/efi because I think that's the most
common setting. At least Fedora and Debian use that path. But we can
change the default setting if you think I'm wrong, as long as it remains
configurable.

There is no separate setting for efi_directory_firmware anymore. The EFI
firmwares expect that directory to always be in the "EFI" path in the
EFI System Partition. Distributions using /boot/efi actually have that
directory under /boot/efi/EFI.
10 years ago
Teo Mrnjavac 171248ad4f Add isBackEnabled checks to all ViewSteps. 10 years ago
Teo Mrnjavac f8f005f53c Store osprober output in GlobalStorage. 10 years ago
Teo Mrnjavac 0da99d0866 Hook up ReplacePage in ChoicePage and PartitionViewStep. 10 years ago
Teo Mrnjavac faa77d7f5e Use Retranslator in Partitioning module. 11 years ago
Teo Mrnjavac 9c10b49802 Check if the filesystem to be resized actually supports grow/shrink. 11 years ago
Teo Mrnjavac 961eadada4 New UI and logic for Alongside autopartitioning+install. 11 years ago
Teo Mrnjavac 08a2ab94e7 Use PMUtils::findPartitionByPath in PVS + fix back button in Alongside. 11 years ago
Teo Mrnjavac e7995ad540 Improve Osprober logic to immediately check if entries are resizable. 11 years ago
Teo Mrnjavac 0801756cd1 Stub for Alongside page, and logic to detect if alongside is possible. 11 years ago
Teo Mrnjavac c6eb0721d9 Check for root mount point before going ahead. 11 years ago
Teo Mrnjavac b7f2d5d9d3 Fix page flow issue in partition module. 11 years ago
Teo Mrnjavac ef703b0859 Add page for erase+install operation. 11 years ago
Teo Mrnjavac a98a4bb614 Add ChoicePage to partition module + OS detection with os-prober. 11 years ago
Aurélien Gâteau 693e9229c8 Dispatch files in core/ gui/ and jobs/ dirs 11 years ago