8443 Commits (06e2db946fed13cafb4b4000bc7552e839367849)
 

Author SHA1 Message Date
Philip Müller 5191df2bde
Merge pull request #1568 from gportay/partition-fix-typo
[partition] Fix typo
4 years ago
Adriaan de Groot 57da222c72 [keyboard] Improve debug-logging for vconsole-config 4 years ago
Adriaan de Groot f18f425682
Merge pull request #1567 from gportay/umount-fix-list-of-mount-points-to-unmount
[umount] Fix list of mount-points to unmount
4 years ago
Gaël PORTAY e2b00bc517 [partition] Fix typo 4 years ago
Gaël PORTAY e9e4be1c60 [umount] Fix list of mount-points to unmount
The root mount-point can end with a / while the mount-point read from
the file /etc/mtab does not end with a /.

This leads to skip the unmounting of the root mount-point and causes the
removal of the root mountpoint directory to fail with EBUSY because it
is still mounted.

This uses the python functions os.path.normpath() to normalize the root
mount-point (i.e. to drop the trailing /) and os.path.commonprefix() to
determine the longest common prefix between the two mount-points. If the
returned prefix is identical to the normalized root mount-point then the
mount-point must be added to the list of the mount-points to unmount.

More generally, the python modules should rely on the os.path functions
to compare for paths instead of using strings. It covers this way lots
of corner cases (path with "//", "/../", "/./", ...).
4 years ago
Adriaan de Groot 845fb3f6da [keyboard] Refactor writing-various-files
- put the writing of each kind of file in its own block -- this should
  become separate functions -- so that variables become more local
  and debugging can be improved.
- while here, fix the error message for /etc/default/keyboard:
  it would complain and name the vconsole file path if it ever failed.
4 years ago
Adriaan de Groot 3e51d77782 [keyboard] Check for successful file-write 4 years ago
Adriaan de Groot 2535d8ccbd Merge branch 'issue-1327' into calamares
FIXES #1327
FIXES #1267

Generally, flags-manipulation was a mess and restoring the
value-on-disk impossible.
4 years ago
Adriaan de Groot 2c297a068f [partition] Log when an EFI problem has been solved 4 years ago
Adriaan de Groot 0f38ee624e [partition] static-assert that our shortcut makes sense 4 years ago
Artem Grinev 94f7efb89f [users] Remove ' from transliterated string 4 years ago
Artem Grinev f20d0a7593 [users] Name cleanup after transliteration 4 years ago
Artem Grinev aa5ef7a6b8 [users] New transliterator ID 4 years ago
Adriaan de Groot 15ace5202d [partition] Simplify EFI-flags checking with KPMCore 4 4 years ago
Adriaan de Groot 85bb8c27b3 [partition] Simplify flags calculations
- factor out the flags-we-want from the flags-we-already-have
 - the use of ->activeFlags() meant that the state on *disk* was
   being compared with the flags-we-want; if a partition was re-edited,
   then you couldn't change the flags back to the state-on-disk
   (eg. enable a flag, then change your mind and disable it).
 - set the flags before refreshing the partition, because the
   refresh checks for EFI bootability and that needs the new flags,
   not the old ones.
4 years ago
Adriaan de Groot 949e33f1e8 [partition] Massage logging while checking for EFI boot 4 years ago
Adriaan de Groot 63964de4bd [partition] Explain underlying type for flags variant 4 years ago
Adriaan de Groot 87c77d9807 [partition] When flags are explicitly invalid, return early 4 years ago
Adriaan de Groot 356e13ae93 [partition] Improve logging readability 4 years ago
Chrysostomus fe291bc51a Write the crypttab entry still 4 years ago
Chrysostomus 9f52282e4c Don't use keyfile if there /boot is unencrypted 4 years ago
Chrysostomus 3eae98eac3 Don't enable grub password query if /boot is on unencrypted partition 4 years ago
Calamares CI 1ce126c01e i18n: [python] Automatic merge of Transifex translations 4 years ago
Calamares CI c7eb8e1d2c i18n: [calamares] Automatic merge of Transifex translations 4 years ago
Adriaan de Groot b6534c3ebf Changes: credits adjustment 4 years ago
Adriaan de Groot 72c9df67d2
Merge pull request #1565 from Chrysostomus/calamares
[initcpiocfg] Use graphical decryption prompt with plymouth
4 years ago
Adriaan de Groot 455de6f948 Merge branch 'document-1523' into calamares
FIXES #1523
4 years ago
Adriaan de Groot f898840e16 [users] Expand schema to cover new possibilities 4 years ago
Chrysostomus 84558333bf Regular plymouth hook is also still needed 4 years ago
Chrysostomus 3bf57c7785 Use graphical decryption prompt with plymouth as adviced here: https://wiki.archlinux.org/index.php/plymouth#The_plymouth_hook 4 years ago
Adriaan de Groot 36f9fd56a3 [users] Expand the example config with new possibilities 4 years ago
Adriaan de Groot 7c268b2e4d [users] Correct terminology in configuration documentation 4 years ago
Adriaan de Groot ed95c4a541 CMake: pre-release housekeeping 4 years ago
Adriaan de Groot 8ab5b562ad i18n: timezone translations for Vietnamese 4 years ago
Adriaan de Groot 2516f18d1b
Merge pull request #1560 from gportay/partition-mount-make-mountPoint-and-filesystem-optionals
[partition,mount] Make mountPoint and filesystem optionals
4 years ago
Adriaan de Groot f00a095acb Merge branch 'fix-partition-layout' into calamares 4 years ago
Adriaan de Groot ffce79e30e [partition] Initialize the filesystem type, not the partition type
- Passing FileSystem::Type to the QString constructor for
  partition type is not what I intended.
4 years ago
Adriaan de Groot 73b5a0898d [partition] Migrate the defaultFS type
- remove the m_defaultFSType from PartitionLayout, because it is
  set on construction -- which is too early, before the configuration
  has been read.
- make the default FS explicit in the init() calls which pass in
  a configuration; this needs support in the intermediate
  PartitionCoreModule.
4 years ago
Adriaan de Groot 42014a8201 Docs: typo (thanks jdfthetech) 4 years ago
Adriaan de Groot 23eabd74c6 [partition] Set FS type explicitly if no layout is given
- the "simple" constructor for PartitionEntry left the FS type
  set as the constructor left it -- which is Unknown by default.
  This leads to install failures in systems that don't set a
  special layout but just want a single / -- because the FS is
  set to Unknown.
- massage the constructor and consumer of the code, push
  Ext4 FS in the tests and use the configured default in production.
4 years ago
Artem Grinev c85d1ae1fe Explanation why ICU is needed for usersq module 4 years ago
Adriaan de Groot f78752303b [partition] Improve constructors for layout
- initialize flags by default
- the copy constructor was just doing the default thing,
  so make that explicit
4 years ago
Gaël PORTAY 6013ed52f8 [partition] Ignore unformatted filesystem 4 years ago
Gaël PORTAY db08d2db8b [partition] Make filesystem optional and default to unformatted 4 years ago
Gaël PORTAY 163351a803 [mount] Ignore empty or unformatted filesystems 4 years ago
Gaël PORTAY c6feedf923 [mount] Ignore empty mountpoints 4 years ago
Gaël PORTAY 54fd1f4b26 [mount] Print a warning if mount failure
The return of the call to libcalamares.utils.mount is never tested and
it may fail silently; this causes some mounpoints to be missing.

This adds a warning if mountpoint cannot be mounted.

	chcon: failed to get security context of '/tmp/verity': Operation not supported
	06:44:23 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
	    Running "env" ("mount", "-t", "unformatted", "/dev/sdb2", "/tmp/calamares-root-kv8dqgb5/tmp/verity")
	    ..  Finished. Exit code: 32
	    ..  Target cmd: ("mount", "-t", "unformatted", "/dev/sdb7", "/tmp/calamares-root-kv8dqgb5/tmp/verity") output:
	 mount: /tmp/calamares-root-kv8dqgb5/tmp/verity: unknown filesystem type 'unformatted'.
4 years ago
Gaël PORTAY 1f9f506a16 [partition] Make mountPoint optional
Some devices cannot be mounted (as DM_verity_hash), therefore, it is
nosense to set a mountPoint for them.
4 years ago
Adriaan de Groot 486cdaeeb6 [users] Shuffle library order to satisfy CI build 4 years ago
Adriaan de Groot 2bd3f1d8c1 Merge branch 'issue-1523' into calamares 4 years ago