1781 Commits (013b944f1849277c802bb5f1f8a1e3e9116066c3)

Author SHA1 Message Date
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
Teo Mrnjavac 6e7dc0b437 Use the target system's boot name in partitioning summary widget. 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
Kevin Kofler 0ae41dd286 New dummycpp C++ job module (ported from dummypython). 8 years ago
Kevin Kofler 00d9f211f5 Add support for C++/Qt batch job plugins
These job plugins work similarly to view modules, with the following
differences:

* These jobs need to link only libcalamares, not libcalamaresui. For
  this reason, PluginFactory was moved from libcalamaresui to
  libcalamares. (It depends only on QtCore.)

* Instead of deriving from ViewModule, derive from CppJob (which is a
  subclass of Job).

* Like process and Python jobs, a job plugin is a single job, whereas a
  ViewModule can generate a whole list of jobs.

The CppJob and CppJobModule classes are new. In Module::fromDescriptor,
the combination type=job, intf=qtplugin is now supported and mapped to
CppJobModule.
8 years ago
Teo Mrnjavac 5796b05fda Allow disabling automated LUKS modes. 8 years ago
Teo Mrnjavac 5bf4bb8787 Make writeEtcDefaultKeyboard an option in keyboard.conf. 8 years ago
Teo Mrnjavac 40cb168468 Fix typo. 8 years ago
Teo Mrnjavac 6f3dc32bfe Config file comment. 8 years ago
Kevin Kofler 1b2cce4be3 Fix locale filtering for UTF-8 on Fedora.
locale -a returns the locales using ".utf8" names rather than ".UTF-8".
The case-insensitive match does not help because it is "utf8" rather
than "UTF-8". So we need to match both with and without the dash.
8 years ago
Teo Mrnjavac 567ac87440 Remove target resolv.conf before proceeding. 8 years ago
Teo Mrnjavac 37384279e5 Add support for writing keymap data to /etc/default/keyboard. 8 years ago
shainer 479b67f696 In the netinstall page, always show the arrow-down button.
The arrow no longer changes direction depending on whether
the button is clicked or not.
8 years ago
shainer d45a6bd856 In the netinstall page, fix the group button.
The button is "not checked" by default, and becomes
checked when clicked; the packageview becomes visible
when the button is checked.
8 years ago
Teo Mrnjavac 4662c9c877 Remove irrelevant debug output. 8 years ago
Teo Mrnjavac 3408eb5c56 Fix VFAT filename handling in bootloader module.
CAL-385 #close
8 years ago
Teo Mrnjavac a48dadf757 Warning in debug output when the RequirementsChecker is misconfigured.
CAL-390 #close
8 years ago
Kevin Kofler 0ad215bcca users: Drop dependency on chfn. (#260)
Pass the full name directly to useradd instead, using the "-c" (comment)
parameter, which is "currently used as the field for the user's full
name" according to the documentation.

The chfn utility is no longer installed by default on current Fedora
releases due to its dependency on libuser. (They split out chfn and chsh
from util-linux into an optional subpackage.) It could be added as a
dependency of Calamares, but since it is needed inside the chroot, it
has to be on the base live image, not the overlay. Thus, to allow
testing Calamares with a simple "dnf install calamares" again, the
dependency needs to go away. And it is unnecessary anyway.
8 years ago
Philip Müller ea1c8a0e5d [plymouthcfg] add module to configure Plymouth (#256) 8 years ago
Jonathan Carter c83ca9af44 Fix spelling mistake in kdsingleapplicationguard.cpp (#257)
s/emty/empty/g.
8 years ago
Chantara Tith 64db6d5ba1 Use device's immutable copy instead of rescanning. 8 years ago
Teo Mrnjavac c316d22b08 Keep an immutable copy for every scanned Device* to avoid rescans. 8 years ago
Teo Mrnjavac 464336d609 Assert on nullptr Device*. 8 years ago
Chantara Tith 23026252a8 Update to KPMcore LUKS' API changes 8 years ago
Chantara Tith aa10fe982a API Changes, logicalSectorSize -> logicalSize, totalSectors -> totalLogical. 8 years ago
Teo Mrnjavac cbb2162ee9 Merge pull request #255 from stikonas/master
Port away from most cases of Q_FOREACH to C++11 ranged for loop.
8 years ago
Teo Mrnjavac 6c928e0404 Exclude ISO9660 volumes. 8 years ago
Teo Mrnjavac ad219e1b8e Exclude loop devices with mounted children from devices list. 8 years ago
Andrius Štikonas 9f0ca042fe Port away from most cases of Q_FOREACH to C++11 ranged for loop.
In order to avoid deep copies, Qt containers over which we iterate must be const
The remaining unported cases require qAsConst (Qt 5.7) or std::as_const (C++17)
8 years ago
Teo Mrnjavac 1a1657a7fc Set timezone on the live system too. 8 years ago
Teo Mrnjavac f2a087c348 Write timezone correctly. 8 years ago
Teo Mrnjavac 83b341b0f7 Handle a variety of case-insensitive situations on the VFAT ESP.
This fixes CAL-385 #close
8 years ago
Teo Mrnjavac 7104ef915a Merge pull request #251 from udeved/master
displaymanager: write processed DM list to globalstorage
8 years ago
Teo Mrnjavac 0684a761bd Copyright. 8 years ago
Teo Mrnjavac d99d7bfdff Expose CalamaresUtils::obscure as libcalamares.utils.obscure. 8 years ago
Teo Mrnjavac f8078be2fd Wrap CalamaresUtils::obscure in CalamaresPython. 8 years ago
udeved c2d7890f3e displaymanager: write process DM list to globalstorage so other modules can use it 8 years ago
Teo Mrnjavac 8daac2cba5 Recompute defaults after init. 8 years ago
Teo Mrnjavac 3146d2093e Add support for freegeoip.net in locale module.
This is disabled by default. To enable, provide a geoipUrl setting in
locale.conf.
Relies on the RequirementsChecker output, in the welcome module.
8 years ago
Teo Mrnjavac cd1268cb63 Fix defaults. 8 years ago
Teo Mrnjavac 9a1c65a23e Style. 8 years ago
Teo Mrnjavac 0521f8a3b9 Be sure to always write hasInternet into GlobalStorage. 8 years ago
Teo Mrnjavac 6926f239f7 Write hasInternet into GlobalStorage. 8 years ago
Philip Müller 239c7534d2 [locale] default to the states
Since our default locale setting is **en_US** anyway, it makes more sense to default to New York.
8 years ago
V3n3RiX ef3600891f improve portage backend, so that it removes ALL calamares deps 8 years ago
Teo Mrnjavac 701d7d8a62 Be sure to validate user name even if empty. 8 years ago
Teo Mrnjavac e6cabe277b Fix locale names and user-visible locale names. 8 years ago