643 Commits (fb3072bbbb64e51bebdecbd6ab44fe0b1694ba9c)

Author SHA1 Message Date
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
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 b5f9b5a66e New Finish view module, with restart capability. 10 years ago
Teo Mrnjavac 171248ad4f Add isBackEnabled checks to all ViewSteps. 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
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
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.
11 years ago
Teo Mrnjavac eb748cca8e Merge pull request #180 from calamares/displaymanager-cleanups
displaymanager: Various fixes and cleanups.
11 years ago
Kevin Kofler 75adfa03fc locale: timezonewidget: Use the system default font.
Don't hardcode the Cantarell font.
11 years ago
Kevin Kofler 2955c0a5a8 displaymanager: Also look for display managers in /usr/sbin. 11 years ago
Kevin Kofler 9b75999706 keyboard: Preselect the current keyboard layout variant. 11 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).
11 years ago
Kevin Kofler 5209af0182 unpackfs: Fix error in list_excludes.
I accidentally removed the initialization of lst.
11 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.
11 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.
11 years ago
Kevin Kofler 727db05fdf grub: Use bootloaderEntryName instead of shortProductName.
Use bootloaderEntryName instead of shortProductName as the
--bootloader-id.
11 years ago
Teo Mrnjavac 3984bf0634 Merge pull request #156 from calamares/grub-efi-support-rfe-110
grub: Add EFI support (improved).
11 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.
11 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.
11 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.
11 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").
11 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.
11 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.
11 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).
11 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.
11 years ago
Kevin Kofler 2783f98615 displaymanager: Add my copyright to main.py.
I have already written a bunch of code in there.
11 years ago
Kevin Kofler a525de8f11 displaymanager: Fix typos in displaymanager.conf. 11 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?
11 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.
11 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
11 years ago
Daniel Hillenbrand 722e87fd00 packages: add --noconfirm arg for pacman, also remove unneeded deps 11 years ago
Daniel Hillenbrand 22a9fd86df localecfg: only restore locale.gen.bak if available 11 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.
11 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".
11 years ago
Manjaro Linux 9c799b32e9 Fix autologin-routine
default_desktop_environment.desktop_file needs to been passed actually.
11 years ago
Kevin Kofler 36488583f7 unpackfs: Add a trailing '/' to the excludes. 11 years ago
Kevin Kofler f0203a072c unpackfs: Automatically detect the exclude list from the mounts.
See issue #173.
11 years ago
Manjaro Linux 6a70029198 Fix commit d5d74fbdcd
We need to pass default_desktop_environment if we won't use automatic desktop detection.
11 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.
11 years ago
Teo Mrnjavac 6e98f63bf3 Merge pull request #171 from calamares/machineid-module
Add a machineid module.
11 years ago
Teo Mrnjavac e85b2d164f Hook up ClearMountsJob in PartitionCoreModule. 11 years ago
Teo Mrnjavac 1de7b55c3b ClearMountsJob: umount all partitions before making changes to a device.
Fixes #169
11 years ago
Manjaro Linux ddc7a6057d Update displaymanager.conf
Add an example to force Plasma5 desktop (commented out)
11 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.
11 years ago