1077 Commits (f6255116e616f1d8d53b8e4f21a97fba7fa26bbf)

Author SHA1 Message Date
Philip 5043bb4e0d [bootloader] update note regarding efiBootLoader in conf 10 years ago
Philip c649ed4729 [bootloader] add efiBootLoader to conf 10 years ago
Philip ebce8335bd [bootloader] move efi_(boot_loader|directory) to proper place 10 years ago
Philip cd3e6a97de [bootloader] move efi_(boot_loader|directory) to proper place 10 years ago
Philip e3a7fca6f4 [bootloader] join grub module with bootloader 10 years ago
Philip 76bfc4d96f [grub] add sgdisk call 10 years ago
Philip 4f089185fd [bootloader] fix 'dict' object is not callable 10 years ago
Philip 1542107d22 [bootloader] proper kernel_line in conf 10 years ago
Philip 7a10e14161 [bootloader] move values kernel_line and fallback_kernel_line up 10 years ago
Philip cb78e74ae9 [bootloader] add quotes to config 10 years ago
Philip 6877466e28 Merge branch 'master' of github.com:calamares/calamares 10 years ago
Philip 568dd9422c [bootloader] simplify code
- remove unneeded double code
- add kernel lines to config
10 years ago
Teo Mrnjavac ee1a90d845 Add debug details to ClearMountsJob. 10 years ago
Philip e0cccb892f [bootloader] fix typo 10 years ago
Philip 229b9b40cd [bootloader] make if statement more pythonic 10 years ago
Philip b41ecf119d [bootloader] add meaningful debug lines 10 years ago
Philip 715112261d [bootloader] if boot_p or device is empty, break and throw an error 10 years ago
Teo Mrnjavac d51b15a919 Fix typo. Please test your Python code, as CI won't catch it. 10 years ago
Teo Mrnjavac 23eca3db55 Only create a ClearMountsJob for dirty devices.
CAL-195
10 years ago
Gormogon 9ef5f581a3 Update 'kbd-model-map' from Upstream 10 years ago
Gormogon 5c1ee7bbcb [PEP 8] General Style Part 3 10 years ago
Gormogon 09dc6bb5d7 [PEP 8] General Style Part 2 10 years ago
Gormogon d8df3d7a59 [PEP 8] General Style Part 1 10 years ago
Gormogon 5d5519b7b0 [PEP 8] Comparison to 'False' 10 years ago
Gormogon ebf037f247 [PEP 8] Comparison to 'None' 10 years ago
Gormogon 1b7b999449 Quick Simplification 10 years ago
Gormogon 9419d07a98 Fixed Unclosed File 10 years ago
Gormogon 8e1480431a [PEP 263] Corrected Encoding Headers 10 years ago
Teo Mrnjavac 8ad507e379 Improve input validation in UsersPage.
CAL-190 #close
10 years ago
Philip Müller ca5132f13e [python modules] use str.format() 10 years ago
Philip Müller 6906ba0b59 [bootloader] modifications
- use --target=i386-pc flag for grub installs
- use str.format()
10 years ago
demmm 294b030b99 correct swap in fallback too 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
Philip 92b6464f6e [grub] make efiDirectory(Firmware) hard-coded
- until we find a better solution
- efiDirectory should be managed by GlobalStorage
- efiDirectory is needed followed modules: bootloader, grub, partition
10 years ago
Philip 1f661a8b4b [partition] change efiPartition value to /boot
- we need to make it configurable not hard-coded
- some distributions need '/boot/efi' or '/boot/EFI', some work with '/boot'
10 years ago
Philip 75857971c4 [grub] replace chroot_call with check_chroot_call 10 years ago
Teo Mrnjavac 69c9d91aa6 Remove excessive debug output. 10 years ago
Teo Mrnjavac 8b753bd65f Reimplement ClearMountsJob without relying on PCM state. 10 years ago
Teo Mrnjavac 1eff260637 Add debug output to the ClearMountsJob code path. 10 years ago
Philip Müller 7ed0558471 [grub] add efi_directory_firmware 10 years ago
Philip Müller 1e1aa8151c [grub] make efi_directory configurable 10 years ago
Philip Müller a6185027f7 [grub] create boot/efi dir
- in some cases this directory might not be present
10 years ago
Teo Mrnjavac dabfb68a68 Avoid constructing more temporaries than necessary.
Thanks Winfried Kusgörd <w.kusgoerd@arcor.de> for the patch.
10 years ago
Teo Mrnjavac 42f0e653cc Install translator for pre-set locale if the UI language is not changed.
Thanks Winfried Kusgörd <w.kusgoerd@arcor.de> for the patch.
10 years ago
Teo Mrnjavac d07dfc3eca More debug output in partition module. 10 years ago
Philip 35a235541f [finished] fix config file 10 years ago
Teo Mrnjavac 4e869b2211 Fix default restart command. 10 years ago
Teo Mrnjavac 047141a520 Update copyright header for file modified in 2015. 10 years ago
Philip Müller 49093c4b59 [grub] fix SyntaxError
<class 'SyntaxError'>
('invalid syntax', ('/usr/lib/calamares/modules/grub/main.py', 38, 76, ' chroot_call(["mkdir", "-p", "{!s}/EFI/boot".format(efi_directory)])])\n'))
10 years ago
Teo Mrnjavac 5b045dc72c Better window size constants for netbook displays. 10 years ago
Teo Mrnjavac b5f9b5a66e New Finish view module, with restart capability. 10 years ago
Teo Mrnjavac 2782328036 Fix phase handling in ViewManager, to allow adding a Finished page. 10 years ago
Teo Mrnjavac 8a3ea7c8b1 Add lazy constructed ViewStepItems for Install and Finished. 10 years ago
Teo Mrnjavac 20bc34029d Copyright. 10 years ago
Teo Mrnjavac a670de3035 Add currentPhase to ModuleManager. 10 years ago
Teo Mrnjavac 9d5ab4bf98 Add ViewStepItem ctor overload that takes a callback.
Needed when a ViewStep doesn't exist yet when the VSI is created.
10 years ago
Teo Mrnjavac 171248ad4f Add isBackEnabled checks to all ViewSteps. 10 years ago
Teo Mrnjavac de406cef22 The Quit button is now Cancel, except on the last page. 10 years ago
Teo Mrnjavac 2cd9c7c0fa Improve urpmi call. Thanks Tomasz Paweł Gajc for the patch. 10 years ago
Daniel Hillenbrand 2b1a9c44fa grub: use uefi firmware workaround
Source: https://wiki.archlinux.org/index.php/GRUB#UEFI_firmware_workaround
10 years ago
Teo Mrnjavac 02641862c8 Copyright header. 10 years ago
Teo Mrnjavac d0608ada90 Added loop property to Presentation in calamares.slideshow QML module. 10 years ago
Teo Mrnjavac 50a413d3c2 Only set the slideshow if the branding component has one. 10 years ago
Teo Mrnjavac 9622888d1d Load QML modules in a central place + dummy QML slideshow. 10 years ago
Teo Mrnjavac 14ddba70ef Initial commit for QML slideshow support. 10 years ago
Kevin Kofler 5c6a302112 packages: Ignore error code for "dnf remove".
Unfortunately, dnf treats it as an error if we try to remove a package
that already did not exist. This means that, e.g., if we try to remove
calamares itself, but calamares was not installed on the base image,
only in the overlay, we will fail with an error. So, as long as we do
not have a better solution, we ignore the exit code of "dnf remove"
entirely.

(yum does not show this behavior, it returns success when the package to
remove is already not installed.)
10 years ago
Kevin Kofler 412b959870 packages: Offline package removal for yum and dnf.
When removing packages with yum or dnf, pass the --disablerepo=*
(disable all online repositories) and -C (run from cache) arguments.
Package removals do not normally require network access, and this
measure saves time and bandwidth and prevents possible unnecessary
errors (e.g., if we do not have active network access, or if there is
some problem with the mirrors).
10 years ago
Ramon Buldó 854c19f305 Fix defaulting to first langauge in the list when language and country is not available.
- When it doesnt find a match for a language and a country, find the first value that only matches language.
- If this also fails, default to english.
10 years ago
demmm 2efd4aff5c Use swap mountpoint
Having swap set at "none" makes hibernating not possible.
AFAIK, no filesystem/partition sets mountpoint as "none" nor has any other besides swap an empty mountpoint at the stage where the fstab module is called.
Tests so far show this change creates a working fstab when using a swap partition.
10 years ago
Teo Mrnjavac 220ea34aeb Fix sgdisk call 10 years ago
Teo Mrnjavac 1f9e7b5ae9 Update main.py 10 years ago
Teo Mrnjavac 7638f80373 Use UUID in resume 10 years ago
Teo Mrnjavac 5742bbd074 Fix issue with partition selection preview not being updated. 10 years ago
Teo Mrnjavac 7cd382b39c Use osProber output in ReplacePage.
CAL-155 #close
10 years ago
Teo Mrnjavac f8f005f53c Store osprober output in GlobalStorage. 10 years ago
Teo Mrnjavac aa70a4b2dd Improve messages in Replace page.
Fixes CAL-155
10 years ago
Teo Mrnjavac c21f426dee Don't rely on the activated signal in ReplacePage. 10 years ago
Teo Mrnjavac a7b4c01ec0 GB -> GiB 10 years ago
Teo Mrnjavac 0da99d0866 Hook up ReplacePage in ChoicePage and PartitionViewStep. 10 years ago
Teo Mrnjavac 2f2ef73f20 Compile ReplacePage 10 years ago
Teo Mrnjavac 8f8e1ad6d4 New ReplacePage 10 years ago
Teo Mrnjavac d3ea92ef3d Also in CalamaresUtilsGui 10 years ago
Teo Mrnjavac 2a5e8c8ee3 Add replace icon. 10 years ago
Daniel Hillenbrand 113812ad3d grub: add --target=i386-pc for bios systems
From Arch wiki:
--target=i386-pc instructs grub-install to install for BIOS systems only. It is recommended
to always use this option to remove ambiguity in grub-install.
10 years ago
Teo Mrnjavac eb748cca8e Merge pull request #180 from calamares/displaymanager-cleanups
displaymanager: Various fixes and cleanups.
10 years ago
Kevin Kofler 75adfa03fc locale: timezonewidget: Use the system default font.
Don't hardcode the Cantarell font.
10 years ago
Kevin Kofler 2955c0a5a8 displaymanager: Also look for display managers in /usr/sbin. 10 years ago
Kevin Kofler 9b75999706 keyboard: Preselect the current keyboard layout variant. 10 years ago
Kevin Kofler 3d9116b80e grub: Add an optional efiBootloaderId setting.
If the efiBootloaderId is set, it is used as the --bootloader-id when
installing grub-efi. The rationale is pretty much the same as for the
Gummiboot case.

If the setting is not used, the --bootloader-id is determined from the
branding's bootloaderEntryName (as before).
10 years ago
Kevin Kofler 5209af0182 unpackfs: Fix error in list_excludes.
I accidentally removed the initialization of lst.
10 years ago
Kevin Kofler e6d65d047b Fix unpackfs wrongly excluding separately-mounted partitions.
mount: Remember the extraMounts (and extraMountsEfi, if applicable) in
the global storage (as "extraMounts").

unpackfs: Read the extra mounts from the global storage to generate the
exclude list instead of trying to detect it from the "mount" command's
output, because the latter also includes normally-mounted destination
partitions.

This makes having separate partitions for non-/ mountpoints work again.
10 years ago
Kevin Kofler 20e6cd4ab0 grub/test.yaml: Simulate bootloaderEntryName instead of shortProductName.
That is what grub/main.py now expects in the global storage.
10 years ago
Kevin Kofler 727db05fdf grub: Use bootloaderEntryName instead of shortProductName.
Use bootloaderEntryName instead of shortProductName as the
--bootloader-id.
10 years ago
Teo Mrnjavac 3984bf0634 Merge pull request #156 from calamares/grub-efi-support-rfe-110
grub: Add EFI support (improved).
10 years ago
Kevin Kofler b411a66baf displaymanager: Make the settings follow the naming convention.
Make the defaultDesktopEnvironment and desktopFile settings in
displaymanager.conf follow the naming convention used in the other .conf
files.
10 years ago
Kevin Kofler a54067f709 displaymanager: Don't run xdg-icon-resource and update-desktop-database.
Don't run xdg-icon-resource and update-desktop-database in the basic
setup for KDM. These tools have absolutely nothing to do with KDM. KDM
does not ship any icons in the hicolor theme, nor a .desktop file (let
alone one that handles any MIME type, the only case in which
update-desktop-database is needed).

I know the original shell script from Manjaro called these when setting
up KDM, but this is really the wrong place. If you need to call these,
they need to go into another module, and you also have to call them
independently of the selected display manager.
10 years ago
Kevin Kofler a0bb108486 displaymanager: Fix the use of getent in the basic setup.
This also matches what the original shell script from Manjaro did.
10 years ago
Kevin Kofler 90a25fdc62 displaymanager: Disable basic setup by default.
Add a "basicSetup" boolean setting and default to leaving this kind of
setup operations to the distribution packages (i.e., to
"basicSetup: false").
10 years ago
Kevin Kofler 95e39e05fa displaymanager: Use libcalamares.utils.debug instead of print.
Use libcalamares.utils.debug instead of print to output a debugging
message during SDDM autologin setup.
10 years ago
Kevin Kofler 524bcc15ea displaymanager: Fix default session setup for GDM.
The default session setting in GDM is per user. Therefore, it is not of
much use to set it for the gdm user. (Nobody will log in as "gdm".)
Unfortunately, there seems to be no systemwide setting for the default
session, the AccountsService provides no such setting, and GDM just
hardcodes the fallback to use if it is not set in the AccountsService.
(GDM first tries "gnome", and if that is not available, it picks the
first session in the alphabet.)

Therefore, the best we can do right now is to set the default session
for the autoLoginUser. This is the case where it matters the most
anyway. We would also need the username of a non-autologin user in the
global storage to do any better.
10 years ago
Kevin Kofler 5e14080891 displaymanager: Remove lightdm gdmflexiserver hack.
Remove the hack that symlinks /usr/lib/lightdm/lightdm/gdmflexiserver as
/usr/bin/gdmflexiserver.

Upstream LightDM removed their gdmflexiserver implementation in 1.9.4 in
2013:
http://bazaar.launchpad.net/~lightdm-team/lightdm/trunk/revision/1841

In addition, LightDM was already adding the path containing its
gdmflexiserver implementation to PATH, so there was no use symlinking it
into /usr/bin, potentially overwriting the original version from GDM.
This must have been a workaround for an ancient LightDM version that
didn't even do that.

And finally, the hardcoded /usr/lib/lightdm/lightdm/gdmflexiserver path
was wrong on Fedora to begin with (we had used
/usr/libexec/lightdm/gdmflexiserver, but now the file is completely gone
because upstream removed it).
10 years ago
Kevin Kofler e78418b693 displaymanager: Don't error if a DM is not installed.
If a display manager is in the list, but not installed, do not return an
error message, but only print a debugging message and proceed.

This allows distributions that support multiple display managers to list
them all, independently of what the concrete live image will be using.
10 years ago
Kevin Kofler 2783f98615 displaymanager: Add my copyright to main.py.
I have already written a bunch of code in there.
10 years ago
Kevin Kofler a525de8f11 displaymanager: Fix typos in displaymanager.conf. 10 years ago
Kevin Kofler 210685a15d mount: Fix /run mount.
It turns out that I had messed this up. Issue #173 was addressed anyway
by the followup fix to unpackfs to only exclude the directories that are
actually mounted (which does work), but with this fix, /run is now
handled as intended.

PS: Should the mount job not check the return value of
libcalamares.utils.mount instead of failing silently?
10 years ago
Manjaro Linux eee54241d1 [umount] use lazy switch
in some rare cases you can't unmount your mountpoints. As it is the last step we can use lazy switch to force unmounting.
10 years ago
Manjaro Linux 0a6053dd82 Fix syntax error
This fixes e65d9c4f. Setting a variable can't end with :
This also fixes the issue with referenced before assignment
10 years ago
Daniel Hillenbrand 722e87fd00 packages: add --noconfirm arg for pacman, also remove unneeded deps 10 years ago
Daniel Hillenbrand 22a9fd86df localecfg: only restore locale.gen.bak if available 10 years ago
Kevin Kofler 6f78ecab3b displaymanager: Fix the default_desktop_environment option.
Do not use a YAML list when only a single entry actually works. (It was
just silently using the last one.)

Create the default_desktop_environment DesktopEnvironment tuple. Before,
the setting was silently ignored altogether.
10 years ago
Kevin Kofler e65d9c4f4d Revert "Fix autologin-routine"
This reverts commit 9c799b32e9.

This was already right before. default_desktop_environment.desktop_file is not a
variable, it's a field of a variable. This commit is not valid Python:
"SyntaxError: invalid syntax".
10 years ago
Manjaro Linux 9c799b32e9 Fix autologin-routine
default_desktop_environment.desktop_file needs to been passed actually.
10 years ago
Kevin Kofler 36488583f7 unpackfs: Add a trailing '/' to the excludes. 10 years ago
Kevin Kofler f0203a072c unpackfs: Automatically detect the exclude list from the mounts.
See issue #173.
10 years ago
Manjaro Linux 6a70029198 Fix commit d5d74fbdcd
We need to pass default_desktop_environment if we won't use automatic desktop detection.
10 years ago
Kevin Kofler 96d863b22b mount: Mount /run as a tmpfs in the rootMountPoint.
In particular, this also ensures that the directory gets created on the
target system so things can be mounted into it.

Fixes #173.
10 years ago
Teo Mrnjavac 6e98f63bf3 Merge pull request #171 from calamares/machineid-module
Add a machineid module.
10 years ago
Teo Mrnjavac e85b2d164f Hook up ClearMountsJob in PartitionCoreModule. 10 years ago
Teo Mrnjavac 1de7b55c3b ClearMountsJob: umount all partitions before making changes to a device.
Fixes #169
10 years ago
Manjaro Linux ddc7a6057d Update displaymanager.conf
Add an example to force Plasma5 desktop (commented out)
10 years ago
Manjaro Linux d5d74fbdcd Add option to force desktop environment
This adds the function to force a desktop environment. We might think to add it also to global storage.
10 years ago
Manjaro Linux b4b409243f [displaymanager] make openbox session have "less priority".
Fixes settings Session= when both lxqt and openbox are installed, it will first find lxqt an use put lxqt.desktop
This fixes also #170
10 years ago
Kevin Kofler 587e76aa56 machineid: Add modules.desc. 10 years ago
Kevin Kofler 5f99d51f80 machineid: Add missing import. 10 years ago
Kevin Kofler 0b0868822d Add a machineid module.
The module creates /etc/machine-id and/or /var/lib/dbus/machine-id. By
default, it is enabled and creates both files, making the latter a
symlink to the former.
10 years ago
Kevin Kofler 8591dcf731 unpackfs: Make rsync preserve everything, exclude special paths.
Add the following flags to rsync:
* `-H, --hard-links            preserve hard links`
* `-A, --acls                  preserve ACLs (implies --perms)`
* `-X, --xattrs                preserve extended attributes`
(i.e., the preservation options not already implied by -a).

Also exclude the special paths that do not make sense to rsync, because
reading the extended attributes from those can cause errors, at least
with SELinux enabled.

This fixes installation of Fedora systems with SELinux enabled.
10 years ago
Teo Mrnjavac 0c3f88077d More debug output in CreatePartitionTableJob 10 years ago
Rohan Garg ac5cecee19 Clean up unused packages after installation
Fixes #166.
10 years ago
Teo Mrnjavac 5b864c5dc3 Make networkmanager service example optional. 10 years ago
Teo Mrnjavac 5bb7755925 Remove unnecessary debug output. 10 years ago
Teo Mrnjavac 52a1a28696 Fix focus handling in Keyboard page. 10 years ago
Teo Mrnjavac 5fdca37db5 Focus fix in Locale page. 10 years ago
Teo Mrnjavac 472590669f Adding stuff to GlobalStorage works much better it is actually executed. 10 years ago
Teo Mrnjavac 0738af04ca Reimplement onActivate in UsersViewStep for focus handling. 10 years ago
Teo Mrnjavac e258f0b5a9 Use onActivate instead of focusInEvent for page focus control. 10 years ago
demmm 86c49fbc89 Use correct entry from global_storage 10 years ago
Teo Mrnjavac 925632800b Debug output for lcLocale 10 years ago
Kevin Kofler b79618aa15 locale: Move the string processing out of the loop. 10 years ago
Teo Mrnjavac 88dfd7fa10 Fix system locale string + allow 3 letter language codes. 10 years ago
Kevin Kofler e7d0f205a4 locale: Support distributions without locale-gen.
If /etc/locale.gen (or the configured localeGenPath) does not exist,
assume that all the supported languages are already built into the
locale archive, and retrieve the list from "locale -a".

The list will then contain lines with only the locale rather than
locale + space + encoding, but that should not affect any of the rest of
the code. UTF-8 locales will still contain the string "UTF-8" (as part
of the ".UTF-8" suffix), we will not write a locale.gen file if we don't
have locale-gen, and everything else just strips away the encoding.
10 years ago
Kevin Kofler 440b38addf locale: Optimize guessLCLocale by moving function calls out of loops. 10 years ago
Kevin Kofler bcbe5103b9 locale: Don't assume 2-letter language codes.
Some languages have 3-letter codes. So instead of splitting the output
of QLocale::name, use QLocale::language and the static
QLocale::languageToString.
10 years ago
Teo Mrnjavac d2288d0961 Write lc locale setting from GlobalStorage. 10 years ago
Teo Mrnjavac 6049267cf6 Load lcLocale value into GlobalStorage. Also allow localeGenPath setting
in locale.conf.
10 years ago
Teo Mrnjavac 2ca58c6f91 Massive cleanup in LocalePage. Add LCLocale setting, with autodetect. 10 years ago
Teo Mrnjavac 100f08518b Build LCLocale dialog. 10 years ago
Teo Mrnjavac ddfb8dfbc5 Add relevant strings. 10 years ago
Teo Mrnjavac 6cb072acc4 New LC LOCALE picker dialog. 10 years ago
Teo Mrnjavac f72f1ae5ca README.md for branding. 10 years ago
Teo Mrnjavac da0afd6e55 Better error reporting in CreatePartitionTableJob.cpp 10 years ago
Teo Mrnjavac 0d64c849fd Unbreak build. Sorry. 10 years ago
Teo Mrnjavac 0d89ba761a Uic in GreetingPage. 10 years ago
Teo Mrnjavac 01c3244396 Merge pull request #155 from calamares/fix-issue-128
grubcfg: Create /etc/default/grub if missing.
10 years ago
Kevin Kofler ab4d31f1a6 bootloader: Allow overriding the bootloaderEntryName setting.
Allow setting bootloaderEntryName in bootloader.conf. If not specified
there, the setting will be taken from branding.desc.
10 years ago
Kevin Kofler 462819060b branding: Add a dedicated bootloaderEntryName setting.
Use it in the bootloader and grubcfg modules instead of
shortProductName.
10 years ago
Kevin Kofler 4df754ef29 Move detect_firmware_type to the prepare module.
This avoids the duplication between the bootloader and grub modules.
10 years ago
Kevin Kofler 930a49677a grub/test.yaml: Define the shortProductName. 10 years ago
Kevin Kofler 132628c175 grub: Add EFI support.
Fixes #110.

This is based on Daniel Hillenbrand's submissions, but it makes the same
adjustments already done in the bootloader module that's already merged:

* Put detect_firmware_type into the grub module itself until a better
  place is found.

* Get the distribution name from the branding configuration and use the
  file_name_sanitizer on it.

* Get the grub-install executable name from the module configuration.

It also fixes a Python syntax error in the original submission.
10 years ago
Teo Mrnjavac fb37a0bf2f Fix focus in UsersPage. 10 years ago
Kevin Kofler 00604a8bca PythonHelper: Add support for bool.
Convert Python bool type from/to C++/QVariant bool (QVariant::Bool) in
PythonHelper::variantToPyObject and PythonHelper::variantFromPyObject.

This fixes the "override" option and any booleans in the "defaults" list
in grubcfg.conf.
10 years ago
Kevin Kofler 1499963920 grubcfg: Create /etc/default/grub if missing.
Also adds a grubcfg.conf with the following settings:

* overwrite: If set to true, always creates /etc/default/grub from
  scratch even if the file already existed. If set to false, edits the
  existing file instead. The default is "false".

* defaults: Default entries to write to /etc/default/grub if it does not
  exist yet or if we are overwriting it. Note that in addition,
  GRUB_CMDLINE_LINUX_DEFAULT and GRUB_DISTRIBUTOR will always be
  written, with automatically detected values. The default in the code
  is empty. The shipped grubcfg.conf currently reproduces the default
  settings from the Fedora installer Anaconda.

Fixes #128.
10 years ago
Kevin Kofler d5b95d79e5 grubcfg: Handle the case where expected lines are missing.
Check whether we actually had a GRUB_CMDLINE_LINUX_DEFAULT and a
GRUB_DISTRIBUTOR line, add any of them if it was missing.
10 years ago
Kevin Kofler f58cca1bb2 grubcfg: Don't error if /etc/default is missing.
It is created later in the function.
10 years ago
Kevin Kofler 5cae4e0632 partition: Don't assume that an unknown OS is Windows 7.
Don't talk about "Windows 7 programs, documents, photos, music, and
other files" when we actually have no idea what the other operating
system is or when there are multiple ones.
10 years ago
Kevin Kofler 75921ec125 bootloader/test.yaml: Define the shortProductName. 10 years ago
Kevin Kofler 48eca95a26 grubcfg: Use shortProductName.
This is particularly useful if the full product name contains
"GNU/Linux" or "Linux", because e.g. "Generic GNU/Linux GNU/Linux" does
not make sense.
10 years ago
Kevin Kofler e420341ba6 bootloader: Use shortProductName.
This is particularly useful if the full product name contains
"GNU/Linux" or "Linux", because e.g. "Generic GNU/Linux GNU/Linux" does
not make sense.
10 years ago
Kevin Kofler 538b457ea8 branding: Add a shortProductName entry.
This is what the bootloader modules really want, and it was also missing
for consistency with the other branding entries.
10 years ago
Kevin Kofler cde7356f0d grubcfg: Quote the GRUB_DISTRIBUTOR value. 10 years ago
Kevin Kofler 76450b44a3 bootloader: Ensure that the file names are valid.
Change any '/' slashes to '-' dashes. Also change spaces to underscores
while we are at it.
10 years ago
Kevin Kofler 8f5b0585cb grubcfg: Get the distribution name from the branding.
Remove the redundant "distributor" setting from grubcfg.conf (and the
entire grubcfg.conf file that has no settings left for now).
10 years ago
Kevin Kofler 3cf5baadc1 bootloader: Get the distribution name from the branding.
Remove the redundant "distribution" setting from bootloader.conf.
10 years ago
Kevin Kofler 98f99fa5bf Introduce and use a Calamares::Branding::setGlobals method.
The method creates a map called "branding" in the global storage, and
inserts an entry for each of the branding strings. This makes the
branding information accessible to the Python modules.

The method is called by CalamaresApplication::initJobQueue.

This is necessary because the Branding class is in libcalamaresui, so
Python modules cannot access it directly.
10 years ago
Kevin Kofler 7478c1266b Point the lib/calamares/libcalamares.so symlink to the versioned so.
Point the lib/calamares/libcalamares.so symlink for the Python modules
directly to the versioned lib/libcalamares.so.VERSION library rather
than to the lib/libcalamares.so symlink. This allows distributions to
install the lib/libcalamares.so symlink to a development package and
only ship lib/libcalamares.so.VERSION and lib/calamares/libcalamares.so
in the runtime package. It is also marginally faster (because only one
level of symlinks has to be resolved instead of two).

(I know this works because I have been manually fixing up this symlink
in the Fedora specfile so far.)
10 years ago
Teo Mrnjavac 78de47eb8c Retranslate Users module. 10 years ago
Teo Mrnjavac ecc2d27a18 Merge pull request #151 from calamares/localecfg
adding localecfg
10 years ago
Rohan Garg 60eb9cfae6 Use the correct file to write things into 10 years ago
Teo Mrnjavac 0f9496babe Finish up retranslation in PreparePage. 10 years ago
Teo Mrnjavac 280baf7326 Move PrepareCheckWidget text out of ctor. 10 years ago
Teo Mrnjavac 9b2dfdf1ec Use Retranslator in Prepare module (partial). 10 years ago
demmm ff1383d7f5 adding localecfg
locale hardcoded to en_US until local globalstorage is available
run pep8 on bootloader main.py, plain switch from subprocess to chroot_call fails for gummiboot call
10 years ago
Kevin Kofler 7e1ec78d35 grub, bootloader: Make the grub-* and /boot/grub names configurable.
Some distributions (e.g. Fedora) use grub2-* (resp. /boot/grub2/) names.

Fixes #123.
10 years ago
Rohan Garg d9187c25c7 check_chroot_call does not actually return a error code, use chroot_call
instead.

Thanks to Kevin Kofler for pointing this out.
10 years ago
Rohan Garg 1f6feb9417 Make sure we return a message when dracut or initramfs fail 10 years ago
Teo Mrnjavac 388363c1f2 Merge pull request #148 from calamares/gummibot
make gummiboot kernel/distro agnostic
10 years ago
Teo Mrnjavac faa77d7f5e Use Retranslator in Partitioning module. 10 years ago
Teo Mrnjavac 8575240b95 Capture by-val in Retranslator macro. 10 years ago
Teo Mrnjavac 688cc8f798 Use Retranslator in KeyboardPage. 10 years ago
Rohan Garg fb92697a93 Make sure our return value is correct 10 years ago
Teo Mrnjavac 99114e04d8 Merge pull request #147 from kkofler/fix-issue-31
keyboard: Write the keyboard model and layout settings to the root mount point.
10 years ago
Teo Mrnjavac 1d9535053a Use Retranslator in GreetingPage. 10 years ago
Teo Mrnjavac e5c3888be2 Allow multiple CALAMARES_RETRANSLATE blocks in the same widget. 10 years ago
Teo Mrnjavac 945b59748a Add RETRANSLATE macro to CalamaresUtils::Retranslator. 10 years ago
Kevin Kofler 3e9de2a05a keyboard: Allow absolute paths for the xOrgConfFileName setting.
This should ensure it works on all distributions.
10 years ago
Rohan Garg 2c8aa950a3 Update README.md 10 years ago
Kevin Kofler 86d51b4a9c keyboard: Pass settings directly, not through GlobalStorage.
Pass the settings from keyboard.conf directly to the
SetKeyboardLayoutJob rather than through GlobalStorage.
10 years ago
Kevin Kofler 2fec6e3202 keyboard: kbd-model-map: Add link to the original.
In particular, to the upstream git log for the file.
10 years ago
Kevin Kofler bfdcf0dbc0 keyboard: Coding style fixes. 10 years ago
Teo Mrnjavac 6f3898a73d Use Retranslator in LocalePage. 10 years ago
Teo Mrnjavac 08b90e975b Add retranslator class to CalamaresUtils. 10 years ago
demmm 53da965bb1 make gummiboot kernel/distro agnostic
add hibernate option to .conf
create a fallback entry in gummiboot menu
re-add firmware to globalstorage, simplifies this module, will be needed to add more OS to gummi
10 years ago
Kevin Kofler 4f9f7d7858 keyboard: Write the keyboard model and layout settings to the root mount point.
This is implemented as a new SetKeyboardLayout job that does the work.

Portions of the code are adapted from systemd-localed's source code,
which is under a compatible license (LGPLv2.1+, can be converted to our
GPLv3+ license). I ported it from C to to C++/Qt and made some minor
tweaks to the mapping logic (from X11 to vconsole layouts) though.

Fixes #31.

Tested on a Fedora Remix (Kannolo 21) with the default module settings
(finds the converted X11 keymaps for the virtual console) and with
convertedKeymapPath: "" (does the legacy keymap conversion as expected).
10 years ago
Rohan Garg 2b26be4162 Fix copyright holder 10 years ago
Rohan Garg ce96b13c0d Add a initramfs module that updates the initramfs post install 10 years ago
Teo Mrnjavac dec452f9b5 Make LocalePage retranslatable. 10 years ago
Teo Mrnjavac 2617ef369e Use retranslate pattern in GreetingPage. 10 years ago
Teo Mrnjavac 9e9a922498 Language selector + focus fix in GreetingPage. 10 years ago
Teo Mrnjavac 78075d7412 Use the new CalamaresUtils::installTranslator. 10 years ago
Teo Mrnjavac 058be8beb2 Ensure viewpages will have focus. To choose a focused widget inside it,
a viewpage should override void focusInEvent( QFocusEvent* ).
10 years ago
Teo Mrnjavac 8b343ace4a QTranslator switching in CalamaresUtils. 10 years ago
Teo Mrnjavac fc4ce3d23b Make progress view unfocusable. 10 years ago
Teo Mrnjavac 0849a5983c Actually build translations qrc. 10 years ago
Rohan Garg d3d9ea130c Fix build, last merge was a bit broken 10 years ago
Teo Mrnjavac 294d6a34ca Merge pull request #142 from shadeslayer/github_master
Make sure we also write to the /etc/hosts file
10 years ago
Rohan Garg 7a2fe5e647 Make sure we also write to the /etc/hosts file 10 years ago
Manjaro Linux 36e8ed5f46 adjust LXDE startup scripts
- add LXQT support
- add LXDE 0.5 changes in Archlinux
10 years ago
Teo Mrnjavac 7c89613332 Merge pull request #140 from kkofler/detect-sddm-session-type
displaymanager: Detect SDDM session type
10 years ago
Kevin Kofler 8512e43405 displaymanager: Set Session= for sddm autologin.
Detect the correct value using find_desktop_environment.
10 years ago
Kevin Kofler 467d78dde6 displaymanager: Use a regex to match User= in sddm.conf.
This ensures we really only match the User= line and not the
RememberLastUser= one.
10 years ago
Kevin Kofler e365864c05 displaymanager: Detect the KDE Plasma (5 and 4) and GNOME desktop environments.
Add them to the front of the list of desktop environments because users
are more likely to expect those as the default if they have them
installed.
10 years ago
Kevin Kofler 4990b8e3f8 displaymanager: Refactor the desktop environment detection to eliminate the copy&paste.
This also fixes some issues with the previous code:

* The code for LightDM only supported Xfce.

* The case where multiple desktop environments are installed was not
  handled in a good way.

* We now also check that the xsession definition actually exists. This
  allows handling the case where upstream changed the xsession
  definition's name without renaming the invoked binary.
10 years ago
Kevin Kofler 5a4ae7f62c displaymanager: Run "sddm --example-config > /etc/sddm.conf" in a shell.
Otherwise, the output redirection cannot work (and the argument was also
misinterpreted as part of the command name).
10 years ago
Teo Mrnjavac 1df44eddba Fix displaymanager sddm config call. 10 years ago
demmm 3828eb6d2a add the define 10 years ago
demmm a186c7e44b Missing define, check_chroot_call replaced
not really needed here, subprocess.call well tested
10 years ago
Teo Mrnjavac 486f160ca9 Merge pull request #134 from calamares/sddm
Generate sddm.conf if not present.
10 years ago
demmm 49bdb25f30 remove erronous line line, wrongly left in 10 years ago
Teo Mrnjavac fef448833e And some more debug output readability improvements. 10 years ago
Teo Mrnjavac f2f73b2e87 More meaningful debug output. 10 years ago
Teo Mrnjavac a51251fdc6 Expose list of build-time available translation languages. 10 years ago
Teo Mrnjavac aaa696f543 Even less debug noise. 10 years ago
Teo Mrnjavac 5b01925d99 Remove debug noise. 10 years ago
Teo Mrnjavac 8026a287d3 Shut up Qt lupdate warnings. 10 years ago
Teo Mrnjavac 10ca85338d Yet another Qt 5.4 fix. 10 years ago
Teo Mrnjavac 519ba038cf Fix build on Qt 5.4, again. 10 years ago
Teo Mrnjavac 633c8512c2 Try to make compile on Qt 5.4 10 years ago
demmm 8cefd1dcb8 remove indent 10 years ago
demmm e26335d2da proper check for existing sddm.conf
second set of if/else is obsolete with this, sddm.conf always exists at this point
10 years ago
Teo Mrnjavac a97297a3fe Attempt to fix #125 10 years ago
demmm 231c93a513 missed colon 10 years ago
demmm f26406daa4 actually create a sddm.conf 10 years ago
Rohan Garg 6a9c9cbaae Fix typo 10 years ago
Teo Mrnjavac 8b0ad2f675 Merge pull request #129 from shadeslayer/master
Add support to set the hostname
10 years ago
Rohan Garg fdd84d1f99 Don't crash when packageOperations is empty 10 years ago
demmm 972fe23131 create sddm.conf if not present 10 years ago
Rohan Garg a0a3b4dc49 Style fixes
Run calamaresstyle over new classes
10 years ago
Teo Mrnjavac ee2ed0921e Allow mounting a Fedora image.
Fixes #127
10 years ago
Rohan Garg 4a4dc74f5c Drop useless line 10 years ago
Rohan Garg b587a0ff00 Add support to set the hostname 10 years ago
demmm c84a98c23c set option to select higlighted text color
keep it independent from background color, should make it easier to add a color section option to branding
10 years ago
Rohan Garg 8a623cc118 Fix function call 10 years ago
Teo Mrnjavac 97867af2aa Autopep8 pass on bootloader module. 10 years ago
Teo Mrnjavac 8f250311e8 Allow links in Greeting page. 10 years ago
Teo Mrnjavac c2d6237d31 Merge pull request #119 from calamares/efi
adding new bootloader job
10 years ago
Rohan Garg 34befb9cb8 Refactor CPU detection code to be more reliable
Instead of parsing hwinfo output, which might or might be present
on systems, just parse the /proc/cpuinfo file, it's much more
reliable.
10 years ago
Rohan Garg b8b2c2b735 Properly break lines in Python 10 years ago
Teo Mrnjavac 2e2bd78deb Use Branding in partition viewmodule. 10 years ago
Teo Mrnjavac 4c51d320f6 Use branding in Prepare viewmodule. 10 years ago
Teo Mrnjavac 8e38a03cca Branding in greeting module. 10 years ago
Teo Mrnjavac 90e10f63fa Use Branding in main window. 10 years ago
Teo Mrnjavac 7594c85f2e Add ImageRegistry support to Branding. 10 years ago
Teo Mrnjavac 5e8ab97de4 Actually load branding data from default component. 10 years ago
Rohan Garg 6513c6400e Handle line breaks properly 10 years ago
Teo Mrnjavac fc60bcb313 Update partitionmanager submodule. 10 years ago
demmm 58bc7c86c1 remove globalstorage entry for efi 10 years ago
Rohan Garg f9bd0dfcfc Make sure the hwinfo executable exists before calling it 10 years ago
Rohan Garg eed387f7a4 Make sure to check things exist before actually modifying them
This fixes crashes when a system does not have squashfs-tools or
a grub dir does not exist.
10 years ago
Teo Mrnjavac 9c10b49802 Check if the filesystem to be resized actually supports grow/shrink. 10 years ago
demmm 7a310ef27b rename grub to bootloader calls 10 years ago
demmm c1a1399958 adding new bootloader job
options are to use grub for BIOS, gummiboot for efi
set extra mountpoint when efi is found
10 years ago
Teo Mrnjavac a58857baa6 Hook up the branding component code path in CalamaresApplication. 10 years ago
Teo Mrnjavac 2182918476 Groundwork for branding loader/manager. 10 years ago
Teo Mrnjavac 97cf2a796c Load branding component name from Settings. 10 years ago
Teo Mrnjavac f952b44922 Works better when you actually add it to CMakeLists.txt. 10 years ago
Teo Mrnjavac 8618d85b8f Dummy default branding component. 10 years ago
Teo Mrnjavac 006f0e3eef Make sure the window doesn't grow out of QScreen bounds. 10 years ago
Teo Mrnjavac 9e84581354 Only add wheel to sudoers if a wheel group is defined in conf. 10 years ago
Teo Mrnjavac ad68ce0187 Make default groups, users group and autologin group configurable. 10 years ago
Teo Mrnjavac 0d1fb79ec8 New config file for users module. 10 years ago
Teo Mrnjavac ce407a5ec4 Use good old C++ template instead of auto parameter which needs C++1y. 10 years ago
Teo Mrnjavac 961eadada4 New UI and logic for Alongside autopartitioning+install. 10 years ago
Teo Mrnjavac 08a2ab94e7 Use PMUtils::findPartitionByPath in PVS + fix back button in Alongside. 10 years ago
Teo Mrnjavac 2347ead200 Remove bad debug feature. 10 years ago
Teo Mrnjavac 6d60ca5e63 Fix item order in ChoicePage 10 years ago
Teo Mrnjavac 6bd5736d35 Add findPartitionByPath to PMUtils 10 years ago
Teo Mrnjavac 51d12b2b35 The vfat driver apparently supports FAT16 too, be consistent. 10 years ago
Teo Mrnjavac 482b2c0da2 Fix fstype names for mount -t syntax. 10 years ago
Teo Mrnjavac e7995ad540 Improve Osprober logic to immediately check if entries are resizable. 10 years ago
Teo Mrnjavac 9ebc881223 Prevent segfault on exit when module not found. 10 years ago
Teo Mrnjavac 045d9cdf8c Fix layout in partitioning choice page. 10 years ago
Teo Mrnjavac faa39e1746 Enable resize+alongside radiobutton if osprober reports multiple lines. 10 years ago
Teo Mrnjavac 0801756cd1 Stub for Alongside page, and logic to detect if alongside is possible. 10 years ago
Teo Mrnjavac dbd6573ed4 Write required disk space into GlobalStorage. 10 years ago
Teo Mrnjavac c070b1c836 Const correctness. 10 years ago
Teo Mrnjavac c6eb0721d9 Check for root mount point before going ahead. 10 years ago
Teo Mrnjavac aeb20761cc Add preview and partitioning operations to Erase+Autopartition code path 10 years ago
Teo Mrnjavac 8a50685c75 Add clearJobs to PCM 10 years ago
Teo Mrnjavac b7f2d5d9d3 Fix page flow issue in partition module. 10 years ago
Teo Mrnjavac a943d55063 Size policy on erase page. 10 years ago
Teo Mrnjavac fdaea27475 Attempt at a window size fix. 10 years ago
Teo Mrnjavac ef703b0859 Add page for erase+install operation. 10 years ago
Teo Mrnjavac dab5a05116 Add isDirty check to PartitionCoreModule 10 years ago
Teo Mrnjavac 4cadbf9b98 Expose icon and tooltip in DeviceModel. 10 years ago
Teo Mrnjavac a98a4bb614 Add ChoicePage to partition module + OS detection with os-prober. 10 years ago
Teo Mrnjavac 73246b47c6 Prefer nullptr over 0. 10 years ago
Teo Mrnjavac d39e77f7e8 New PrettyRadioButton, an alternative to QRadioButton with rich text. 10 years ago
Teo Mrnjavac 4d9f887c58 Make the prepare viewmodule use WaitingWidget 10 years ago
Teo Mrnjavac 8651b33843 Make the locale viewmodule use WaitingWidget. 10 years ago
Teo Mrnjavac 13ccede630 Add new icons to CalamaresUtilsGui 10 years ago
Teo Mrnjavac 41cb09ea01 Add ClickableLabel, a QLabel which emits the clicked signal. 10 years ago
Teo Mrnjavac 382317dcaf Added WaitingWidget to libcalamaresui, wrapper for QtWaitingSpinner 10 years ago
Teo Mrnjavac b14a715300 Add icons to qrc. 10 years ago
Teo Mrnjavac 33569085b7 Merge pull request #116 from plfiorini/packages
Add packages job
10 years ago
Pier Luigi Fiorini 5624132172 Add packages job
This job can be used to install and remove packages.
10 years ago
Teo Mrnjavac 14130ae9c0 Only allow a ViewStep to change next button status if it's active now. 10 years ago
demmm 631649ea69 1.0 Gb RAM should be a good default 11 years ago
Teo Mrnjavac a9aa3e9aa6 Show an error or warning if there are unsatisfied requirements. 11 years ago
Teo Mrnjavac 2182fd2f0c Add info and fail icons to libcalamaresui. 11 years ago
Teo Mrnjavac 5434a04ebc Block the install process if an entry is required but unsatisfied. 11 years ago
Teo Mrnjavac 87711c89fc Use common icons in users viewmodule. 11 years ago
Teo Mrnjavac d97bb47f09 Add proper QResrouce system to libcalamaresui, finish up prepare checks
This also adds ImageRegistry, a SVG cache, a bunch of utility functions
for shared pixmaps in CalamaresUtilsGui and renames several qrc files
in viewmodules.
11 years ago
Teo Mrnjavac 0404413b05 Store active user in GlobalStorage as username. 11 years ago
Teo Mrnjavac 3bef0b835a Check for mains power in prepare viewmodule. 11 years ago
Teo Mrnjavac 26419f2c8a Check for internet connection in prepare viewmodule. 11 years ago
Teo Mrnjavac b32bbf2b9a Add check for enough RAM to prepare viewmodule. 11 years ago
Teo Mrnjavac 03800e2966 Newline at end of file. 11 years ago
Teo Mrnjavac 9563b2efc7 WIP: new prepare viewmodule, with free space check using libparted. 11 years ago
Teo Mrnjavac 1bb6603998 Move spinner widget to libcalamaresui. 11 years ago
Teo Mrnjavac cbfad6f637 Merge pull request #100 from calamares/initcpiocfg
New initcpiocfg module, ported from Thus.
11 years ago
Teo Mrnjavac c70071406f Merge pull request #99 from calamares/grubcfg
New grubcfg module, ported from Thus.
11 years ago
Pier Luigi Fiorini 2133880fdb dracut: Don't read settings
This module doesn't have settings yet so this call fails.
11 years ago
Pier Luigi Fiorini b40f3bf4bb Initialize globalstorage before loading custom configuration 11 years ago
Teo Mrnjavac b51cfd6a45 Merge pull request #106 from plfiorini/settingsconf
Try to find settings.conf from SYSCONFDIR
11 years ago
Pier Luigi Fiorini f0921a41b2 Try to find settings.conf from SYSCONFDIR
Honor SYSCONFDIR as specified by CMake arguments instead of
using a hard-coded path.

Since GNUInstallDirs set CMAKE_INSTALL_FULL_SYSCONFDIR to
CMAKE_INSTALL_PREFIX/etc we need to change the default ourselves.
11 years ago
Daniel Hillenbrand 38f32bfd56 locale: make sure /etc/localtime doesn't exist
If /etc/localtime exists in source image, creating a new symlink will fail
and prevent the installer from doing it's job.
11 years ago
Daniel Hillenbrand c97251d741 unpackfs: check for supported filesystems
Use /proc/filesystems to check if the system
supportes the given source filesystem.
11 years ago
Daniel Hillenbrand 148a29d506 unpackfs: code dedup 11 years ago
Philip 9de863a1af New initcpiocfg module, ported from Thus. 11 years ago
Philip 82237d1bd1 grubcfg: group variables 11 years ago
Philip 0c4e8863cf grubcfg: set swap_uuid variable 11 years ago
Philip 5b336fc3c5 New grubcfg module, ported from Thus. 11 years ago
Teo Mrnjavac 35f0dfc76d List all files recursively. 11 years ago
Teo Mrnjavac 8ce769184e Check for fs name validity. 11 years ago
Philip 37426b9f7a Replace unsquashfs with unpackfs
Conflicts:
	src/modules/unsquashfs/unsquashfs.conf
11 years ago
Teo Mrnjavac ea32ba6a83 Compare with None 11 years ago
Teo Mrnjavac ec7edc4b83 Improve diacritics transliteration. 11 years ago
Philip ba1006a965 Fix autologin in displaymanager module 11 years ago
Teo Mrnjavac 52656190af Documentation. 11 years ago
Teo Mrnjavac fea3b68d61 s/AutoUser/User/ 11 years ago
Teo Mrnjavac bdc3185dbe Let's assume for now that the ISO must ship a sddm.conf. 11 years ago