2644 Commits (ec1fc5f74d7ccdc32ebaf88a8927e2733238c908)
 

Author SHA1 Message Date
Kevin Kofler 62bded1447 [bootloader] Fix vfat_correct_case.
If the directory already existed, vfat_correct_case was returning only
the last part rather than the full path as it is supposed to.
8 years ago
Kevin Kofler 0131d7fbf1 [unpackfs] Do not fail if rsync returns exit code 23.
Unfortunately, rsync returns exit code 23 (Partial transfer due to
error) if it cannot write extended attributes (with -X) because the
target file system does not support it, e.g., the FAT EFI system
partition. We need -X because distributions using file system
capabilities and/or SELinux require the extended attributes. But
distributions using SELinux may also have SELinux labels set on files
under /boot/efi, and rsync complains about those. The only clean way
would be to split the rsync into one with -X and --exclude /boot/efi and
a separate one without -X for /boot/efi, but only if /boot/efi is
actually an EFI system partition. For now, this hack will have to do.

See also:
https://bugzilla.redhat.com/show_bug.cgi?id=868755#c50
for the same issue in Anaconda, which uses a similar workaround.
8 years ago
Calamares CI ad89c679a3 Automatic merge of Transifex translations 8 years ago
Teo Mrnjavac c4df69b4a7 Allow try_install and try_remove entries in packages module. 8 years ago
Teo Mrnjavac b272917e83 Add option of updating packages db before perfoming package operations. 8 years ago
Rohan Garg d67fdccd4c Make sure we also set a preferred Xsession 8 years ago
Kevin Kofler 075577d948 [netinstall] Support selecting visible groups by default.
In other words, support:
  hidden: false
  selected: true
groups.

This was supposed to work according to README.md, but not actually
implemented. Now it should be working.
8 years ago
Calamares CI c09e7030db Automatic merge of Transifex translations 8 years ago
Calamares CI c239589ee5 Automatic merge of Transifex translations 8 years ago
Rohan Garg 662656a762
Better handling for when the Autologin section already has things 8 years ago
Rohan Garg f7ac1a3ede Use configparser to parse sddm.conf
Since sddm.conf follows the INI format we can use configparser
with a few added options to properly parse the config and write
it out instead of manually parsing each line which is slow and
prone to error.

For eg. The old code would fail to parse a conf which had no
commented out User key but where the user had configured autologin
in Calamares.
8 years ago
Calamares CI 4626a769a5 Automatic merge of Transifex translations 8 years ago
Calamares CI 5840ca34cd Automatic merge of Transifex translations 8 years ago
Kevin Kofler 5f782e9c5c README.md: sgdisk is no longer used. 8 years ago
Kevin Kofler 1548fe4810 [partition] Use FlagEsp instead of sgdisk to scan for ESPs.
Address an old FIXME in
PartitionCoreModule::scanForEfiSystemPartitions(): Check the FlagEsp on
the Partition object (that KPMcore has been supporting since 2.1.0)
instead of running sgdisk.
8 years ago
Kevin Kofler 5377003f89 Set the ESP flag in partition rather than bootloader.
The manual partitioning setup was already requiring the user to check
the ESP flag for the EFI System Partition. Now the autopartitioning also
sets it directly (a one-line change). The sgdisk call in the bootloader
module is thus no longer necessary (it was only a workaround because
kpmcore < 2.1.0 did not support FlagEsp), so remove that snippet.

This fixes configurations such as NVME disks where splitting boot_device
into boot_device[-1:] and boot_device[:-1] is not the correct split
(because the partition gets a 2-letter suffix) (reported by demmm on
IRC).
8 years ago
Teo Mrnjavac 4488761a63 Only add LUKS keyfile if relevant, and with a 15s timeout. 8 years ago
Teo Mrnjavac fbe72b3663 Improve user-visible strings in SetPartFlagsJob. 8 years ago
Calamares CI 74ea0fe49a Automatic merge of Transifex translations 8 years ago
Calamares CI cb1c96e5fa Automatic merge of Transifex translations 8 years ago
Teo Mrnjavac de979f8528 Add user to groups separately from useradd. 8 years ago
Calamares CI c6af5bdba3 Automatic merge of Transifex translations 8 years ago
Philip 22cf2c16a2 [displaymanager] use same pattern for all str.format calls 8 years ago
Philip Müller c7c94bccd0 Merge pull request #268 from oberon2007/master
[displaymanager] add Deepin
8 years ago
Bernhard Landauer c99cdc0fa7 [displaymanager] add Deepin 8 years ago
Calamares CI 869fb7df43 Automatic merge of Transifex translations 8 years ago
Calamares CI 8ceebd6b95 Automatic merge of Transifex translations 8 years ago
Calamares CI fe539f56ec Automatic merge of Transifex translations 8 years ago
Calamares CI 5603b3eb14 Automatic merge of Transifex translations 8 years ago
Kevin Kofler 668284f5f1 [grubcfg] Compare integers to integers, not strings.
target_env_call returns an integer, so do not compare its result to the
string "0".
8 years ago
V3n3RiX 11c9e87fd0 dracut : unlock encrypted swap if exists (#267)
* dracut : unlock encrypted swap if exists
* only check for swap_outer_uuid if dracut exists
8 years ago
V3n3RiX 0bde162a9c Only write rd.luks.uuid if dracut is present and leave other initramfs generators clean (#266)
* add rd.luks.uuid to GRUB_CMDLINE (fixes unbootable system with dracut --nohostonly, and doesn't affect any other initramfs generators)

* typo

* only write rd.luks.uuid line if dracut is present, and leave other initramfs generators alone :D

* add missing = operator
8 years ago
Calamares CI 7d46109cc2 Automatic merge of Transifex translations 8 years ago
V3n3RiX 7e74d48fb6 add rd.luks.uuid to GRUB_CMDLINE (fixes unbootable system with dracut… (#265)
* add rd.luks.uuid to GRUB_CMDLINE (fixes unbootable system with dracut --nohostonly, and doesn't affect any other initramfs generators)

* typo
8 years ago
Calamares CI d54ec4a9ff Automatic merge of Transifex translations 8 years ago
Calamares CI c6b79c9c8f Automatic merge of Transifex translations 8 years ago
Calamares CI 013b944f18 Automatic merge of Transifex translations 8 years ago
Kevin Kofler d5dfe86525 [dracutlukscfg] New module: pre-configuration for dracut+LUKS.
Add a dracutlukscfg module to write a
/etc/dracut.conf.d/calamares-luks.conf file for LUKS full disk
encryption support with Dracut.

You should run:

* partition
* luksbootkeyfile
* dracutlukscfg
* dracut

in that order (not necessarily in immediate sequence). The
luksopenswaphook module is not used with Dracut.
8 years ago
Kevin Kofler 2573731cdb [grubcfg] Fix mismatched quoting and escaping.
If we use .replace("'", "'\\''") for escaping, we also need to use
single quotes, not double quotes.

This was broken by the port from '%' to format, which also randomly
changed quoting characters for no good reason. Changing the outer ones
does not matter, but \" or ' within a string is not the same thing!
8 years ago
Calamares CI 5b2cc2cbb1 Automatic merge of Transifex translations 8 years ago
Teo Mrnjavac 6e7dc0b437 Use the target system's boot name in partitioning summary widget. 8 years ago
Calamares CI 66d66cf446 Automatic merge of Transifex translations 8 years ago
David McKinney b63ab4df15 [initramfscfg] New module: pre-configuration for update-initramfs.
Added an initramfscfg module to handle pre-configuration for the Debian
update-initramfs, such as installing hooks (needed for luks/FDE support
on Debian-based distros).

Closes #254. (Cherry-picked from the pull request.)
8 years ago
Kevin Kofler 0876af63d0 [fstab] Write configurable options to crypttab (default: luks).
fstab.conf: Add a new "crypttabOptions" option that defaults to "luks".
            Document that for Debian and Debian-based distributions, the
            setting should be changed to "luks,keyscript=/bin/cat".

main.py: Append the options from the above setting to the end of every
         line in crypttab.

At least the "luks" option should always be there, because there may be
different encryption types. The Debian initramfs-tools also require the
Debian-specific keyscript option and will otherwise ignore the keyfile
entirely (see pull request #254).
8 years ago
Kevin Kofler 4d28544e6f [fstab] Do not omit "/" from crypttab.
At least the Debian update-initramfs needs the entry to be there (see
pull request #254). Dracut will probably need it too. And logically, it
should be there.
8 years ago
Calamares CI 33fab5f8c6 Automatic merge of Transifex translations 8 years ago
Calamares CI 49927e2b61 Automatic merge of Transifex translations 8 years ago
Calamares CI 15de67d5d1 Automatic merge of Transifex translations 8 years ago
shainer ab40626c5d Bump QT_VERSION to 5.6 in cmake. 8 years ago
shainer 95164b343e Set qt >=5.6 as a "global" dependency.
i.e. not just required by the netinstall module.
8 years ago