785 Commits (fc3a43438233cec244769e4b47fe1607fd449ac1)

Author SHA1 Message Date
Teo Mrnjavac a7b4c01ec0 GB -> GiB 12 years ago
Teo Mrnjavac 0da99d0866 Hook up ReplacePage in ChoicePage and PartitionViewStep. 12 years ago
Teo Mrnjavac 2f2ef73f20 Compile ReplacePage 12 years ago
Teo Mrnjavac 8f8e1ad6d4 New ReplacePage 12 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.
12 years ago
Teo Mrnjavac eb748cca8e Merge pull request #180 from calamares/displaymanager-cleanups
displaymanager: Various fixes and cleanups.
12 years ago
Kevin Kofler 75adfa03fc locale: timezonewidget: Use the system default font.
Don't hardcode the Cantarell font.
12 years ago
Kevin Kofler 2955c0a5a8 displaymanager: Also look for display managers in /usr/sbin. 12 years ago
Kevin Kofler 9b75999706 keyboard: Preselect the current keyboard layout variant. 12 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).
12 years ago
Kevin Kofler 5209af0182 unpackfs: Fix error in list_excludes.
I accidentally removed the initialization of lst.
12 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.
12 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.
12 years ago
Kevin Kofler 727db05fdf grub: Use bootloaderEntryName instead of shortProductName.
Use bootloaderEntryName instead of shortProductName as the
--bootloader-id.
12 years ago
Teo Mrnjavac 3984bf0634 Merge pull request #156 from calamares/grub-efi-support-rfe-110
grub: Add EFI support (improved).
12 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.
12 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.
12 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.
12 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").
12 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.
12 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.
12 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).
12 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.
12 years ago
Kevin Kofler 2783f98615 displaymanager: Add my copyright to main.py.
I have already written a bunch of code in there.
12 years ago
Kevin Kofler a525de8f11 displaymanager: Fix typos in displaymanager.conf. 12 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?
12 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.
12 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
12 years ago
Daniel Hillenbrand 722e87fd00 packages: add --noconfirm arg for pacman, also remove unneeded deps 12 years ago
Daniel Hillenbrand 22a9fd86df localecfg: only restore locale.gen.bak if available 12 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.
12 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".
12 years ago
Manjaro Linux 9c799b32e9 Fix autologin-routine
default_desktop_environment.desktop_file needs to been passed actually.
12 years ago
Kevin Kofler 36488583f7 unpackfs: Add a trailing '/' to the excludes. 12 years ago
Kevin Kofler f0203a072c unpackfs: Automatically detect the exclude list from the mounts.
See issue #173.
12 years ago
Manjaro Linux 6a70029198 Fix commit d5d74fbdcd
We need to pass default_desktop_environment if we won't use automatic desktop detection.
12 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.
12 years ago
Teo Mrnjavac 6e98f63bf3 Merge pull request #171 from calamares/machineid-module
Add a machineid module.
12 years ago
Teo Mrnjavac e85b2d164f Hook up ClearMountsJob in PartitionCoreModule. 12 years ago
Teo Mrnjavac 1de7b55c3b ClearMountsJob: umount all partitions before making changes to a device.
Fixes #169
12 years ago
Manjaro Linux ddc7a6057d Update displaymanager.conf
Add an example to force Plasma5 desktop (commented out)
12 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.
12 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
12 years ago
Kevin Kofler 587e76aa56 machineid: Add modules.desc. 12 years ago
Kevin Kofler 5f99d51f80 machineid: Add missing import. 12 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.
12 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.
12 years ago
Teo Mrnjavac 0c3f88077d More debug output in CreatePartitionTableJob 12 years ago
Rohan Garg ac5cecee19 Clean up unused packages after installation
Fixes #166.
12 years ago
Teo Mrnjavac 5b864c5dc3 Make networkmanager service example optional. 12 years ago
Teo Mrnjavac 5bb7755925 Remove unnecessary debug output. 12 years ago
Teo Mrnjavac 52a1a28696 Fix focus handling in Keyboard page. 12 years ago
Teo Mrnjavac 5fdca37db5 Focus fix in Locale page. 12 years ago
Teo Mrnjavac 472590669f Adding stuff to GlobalStorage works much better it is actually executed. 12 years ago
Teo Mrnjavac 0738af04ca Reimplement onActivate in UsersViewStep for focus handling. 12 years ago
Teo Mrnjavac e258f0b5a9 Use onActivate instead of focusInEvent for page focus control. 12 years ago
demmm 86c49fbc89 Use correct entry from global_storage 12 years ago
Teo Mrnjavac 925632800b Debug output for lcLocale 12 years ago
Kevin Kofler b79618aa15 locale: Move the string processing out of the loop. 12 years ago
Teo Mrnjavac 88dfd7fa10 Fix system locale string + allow 3 letter language codes. 12 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.
12 years ago
Kevin Kofler 440b38addf locale: Optimize guessLCLocale by moving function calls out of loops. 12 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.
12 years ago
Teo Mrnjavac d2288d0961 Write lc locale setting from GlobalStorage. 12 years ago
Teo Mrnjavac 6049267cf6 Load lcLocale value into GlobalStorage. Also allow localeGenPath setting
in locale.conf.
12 years ago
Teo Mrnjavac 2ca58c6f91 Massive cleanup in LocalePage. Add LCLocale setting, with autodetect. 12 years ago
Teo Mrnjavac 100f08518b Build LCLocale dialog. 12 years ago
Teo Mrnjavac ddfb8dfbc5 Add relevant strings. 12 years ago
Teo Mrnjavac 6cb072acc4 New LC LOCALE picker dialog. 12 years ago
Teo Mrnjavac da0afd6e55 Better error reporting in CreatePartitionTableJob.cpp 12 years ago
Teo Mrnjavac 0d64c849fd Unbreak build. Sorry. 12 years ago
Teo Mrnjavac 0d89ba761a Uic in GreetingPage. 12 years ago
Teo Mrnjavac 01c3244396 Merge pull request #155 from calamares/fix-issue-128
grubcfg: Create /etc/default/grub if missing.
12 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.
12 years ago
Kevin Kofler 462819060b branding: Add a dedicated bootloaderEntryName setting.
Use it in the bootloader and grubcfg modules instead of
shortProductName.
12 years ago
Kevin Kofler 4df754ef29 Move detect_firmware_type to the prepare module.
This avoids the duplication between the bootloader and grub modules.
12 years ago
Kevin Kofler 930a49677a grub/test.yaml: Define the shortProductName. 12 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.
12 years ago
Teo Mrnjavac fb37a0bf2f Fix focus in UsersPage. 12 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.
12 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.
12 years ago
Kevin Kofler f58cca1bb2 grubcfg: Don't error if /etc/default is missing.
It is created later in the function.
12 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.
12 years ago
Kevin Kofler 75921ec125 bootloader/test.yaml: Define the shortProductName. 12 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.
12 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.
12 years ago
Kevin Kofler cde7356f0d grubcfg: Quote the GRUB_DISTRIBUTOR value. 12 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.
12 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).
12 years ago
Kevin Kofler 3cf5baadc1 bootloader: Get the distribution name from the branding.
Remove the redundant "distribution" setting from bootloader.conf.
12 years ago
Teo Mrnjavac 78de47eb8c Retranslate Users module. 12 years ago
Teo Mrnjavac ecc2d27a18 Merge pull request #151 from calamares/localecfg
adding localecfg
12 years ago
Rohan Garg 60eb9cfae6 Use the correct file to write things into 12 years ago
Teo Mrnjavac 0f9496babe Finish up retranslation in PreparePage. 12 years ago
Teo Mrnjavac 280baf7326 Move PrepareCheckWidget text out of ctor. 12 years ago
Teo Mrnjavac 9b2dfdf1ec Use Retranslator in Prepare module (partial). 12 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
12 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.
12 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.
12 years ago
Rohan Garg 1f6feb9417 Make sure we return a message when dracut or initramfs fail 12 years ago
Teo Mrnjavac 388363c1f2 Merge pull request #148 from calamares/gummibot
make gummiboot kernel/distro agnostic
12 years ago
Teo Mrnjavac faa77d7f5e Use Retranslator in Partitioning module. 12 years ago
Teo Mrnjavac 688cc8f798 Use Retranslator in KeyboardPage. 12 years ago
Rohan Garg fb92697a93 Make sure our return value is correct 12 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.
12 years ago
Teo Mrnjavac 1d9535053a Use Retranslator in GreetingPage. 12 years ago
Teo Mrnjavac e5c3888be2 Allow multiple CALAMARES_RETRANSLATE blocks in the same widget. 12 years ago
Teo Mrnjavac 945b59748a Add RETRANSLATE macro to CalamaresUtils::Retranslator. 12 years ago
Kevin Kofler 3e9de2a05a keyboard: Allow absolute paths for the xOrgConfFileName setting.
This should ensure it works on all distributions.
12 years ago
Rohan Garg 2c8aa950a3 Update README.md 12 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.
12 years ago
Kevin Kofler 2fec6e3202 keyboard: kbd-model-map: Add link to the original.
In particular, to the upstream git log for the file.
12 years ago
Kevin Kofler bfdcf0dbc0 keyboard: Coding style fixes. 12 years ago
Teo Mrnjavac 6f3898a73d Use Retranslator in LocalePage. 12 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
12 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).
12 years ago
Rohan Garg 2b26be4162 Fix copyright holder 12 years ago
Rohan Garg ce96b13c0d Add a initramfs module that updates the initramfs post install 12 years ago
Teo Mrnjavac dec452f9b5 Make LocalePage retranslatable. 12 years ago
Teo Mrnjavac 2617ef369e Use retranslate pattern in GreetingPage. 12 years ago
Teo Mrnjavac 9e9a922498 Language selector + focus fix in GreetingPage. 12 years ago
Rohan Garg d3d9ea130c Fix build, last merge was a bit broken 12 years ago
Teo Mrnjavac 294d6a34ca Merge pull request #142 from shadeslayer/github_master
Make sure we also write to the /etc/hosts file
12 years ago
Rohan Garg 7a2fe5e647 Make sure we also write to the /etc/hosts file 12 years ago
Manjaro Linux 36e8ed5f46 adjust LXDE startup scripts
- add LXQT support
- add LXDE 0.5 changes in Archlinux
12 years ago
Teo Mrnjavac 7c89613332 Merge pull request #140 from kkofler/detect-sddm-session-type
displaymanager: Detect SDDM session type
12 years ago
Kevin Kofler 8512e43405 displaymanager: Set Session= for sddm autologin.
Detect the correct value using find_desktop_environment.
12 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.
12 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.
12 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.
12 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).
12 years ago
Teo Mrnjavac 1df44eddba Fix displaymanager sddm config call. 12 years ago
demmm 3828eb6d2a add the define 12 years ago
demmm a186c7e44b Missing define, check_chroot_call replaced
not really needed here, subprocess.call well tested
12 years ago
Teo Mrnjavac 486f160ca9 Merge pull request #134 from calamares/sddm
Generate sddm.conf if not present.
12 years ago
demmm 49bdb25f30 remove erronous line line, wrongly left in 12 years ago
Teo Mrnjavac 8026a287d3 Shut up Qt lupdate warnings. 12 years ago
Teo Mrnjavac 10ca85338d Yet another Qt 5.4 fix. 12 years ago
demmm 8cefd1dcb8 remove indent 12 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
12 years ago
demmm 231c93a513 missed colon 12 years ago
demmm f26406daa4 actually create a sddm.conf 12 years ago
Rohan Garg 6a9c9cbaae Fix typo 12 years ago
Teo Mrnjavac 8b0ad2f675 Merge pull request #129 from shadeslayer/master
Add support to set the hostname
12 years ago
Rohan Garg fdd84d1f99 Don't crash when packageOperations is empty 12 years ago
demmm 972fe23131 create sddm.conf if not present 12 years ago
Rohan Garg a0a3b4dc49 Style fixes
Run calamaresstyle over new classes
12 years ago
Teo Mrnjavac ee2ed0921e Allow mounting a Fedora image.
Fixes #127
12 years ago
Rohan Garg 4a4dc74f5c Drop useless line 12 years ago
Rohan Garg b587a0ff00 Add support to set the hostname 12 years ago
Rohan Garg 8a623cc118 Fix function call 12 years ago
Teo Mrnjavac 97867af2aa Autopep8 pass on bootloader module. 12 years ago
Teo Mrnjavac 8f250311e8 Allow links in Greeting page. 12 years ago
Teo Mrnjavac c2d6237d31 Merge pull request #119 from calamares/efi
adding new bootloader job
12 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.
12 years ago
Rohan Garg b8b2c2b735 Properly break lines in Python 12 years ago
Teo Mrnjavac 2e2bd78deb Use Branding in partition viewmodule. 12 years ago
Teo Mrnjavac 4c51d320f6 Use branding in Prepare viewmodule. 12 years ago
Teo Mrnjavac 8e38a03cca Branding in greeting module. 12 years ago
Rohan Garg 6513c6400e Handle line breaks properly 12 years ago
Teo Mrnjavac fc60bcb313 Update partitionmanager submodule. 12 years ago
demmm 58bc7c86c1 remove globalstorage entry for efi 12 years ago
Rohan Garg f9bd0dfcfc Make sure the hwinfo executable exists before calling it 12 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.
12 years ago
Teo Mrnjavac 9c10b49802 Check if the filesystem to be resized actually supports grow/shrink. 12 years ago
demmm 7a310ef27b rename grub to bootloader calls 12 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
12 years ago
Teo Mrnjavac 9e84581354 Only add wheel to sudoers if a wheel group is defined in conf. 12 years ago
Teo Mrnjavac ad68ce0187 Make default groups, users group and autologin group configurable. 12 years ago
Teo Mrnjavac 0d1fb79ec8 New config file for users module. 12 years ago
Teo Mrnjavac ce407a5ec4 Use good old C++ template instead of auto parameter which needs C++1y. 12 years ago
Teo Mrnjavac 961eadada4 New UI and logic for Alongside autopartitioning+install. 12 years ago
Teo Mrnjavac 08a2ab94e7 Use PMUtils::findPartitionByPath in PVS + fix back button in Alongside. 12 years ago
Teo Mrnjavac 2347ead200 Remove bad debug feature. 12 years ago
Teo Mrnjavac 6d60ca5e63 Fix item order in ChoicePage 12 years ago
Teo Mrnjavac 6bd5736d35 Add findPartitionByPath to PMUtils 12 years ago
Teo Mrnjavac 51d12b2b35 The vfat driver apparently supports FAT16 too, be consistent. 12 years ago
Teo Mrnjavac 482b2c0da2 Fix fstype names for mount -t syntax. 12 years ago
Teo Mrnjavac e7995ad540 Improve Osprober logic to immediately check if entries are resizable. 12 years ago
Teo Mrnjavac 045d9cdf8c Fix layout in partitioning choice page. 12 years ago
Teo Mrnjavac faa39e1746 Enable resize+alongside radiobutton if osprober reports multiple lines. 12 years ago
Teo Mrnjavac 0801756cd1 Stub for Alongside page, and logic to detect if alongside is possible. 12 years ago
Teo Mrnjavac dbd6573ed4 Write required disk space into GlobalStorage. 12 years ago
Teo Mrnjavac c070b1c836 Const correctness. 12 years ago
Teo Mrnjavac c6eb0721d9 Check for root mount point before going ahead. 12 years ago
Teo Mrnjavac aeb20761cc Add preview and partitioning operations to Erase+Autopartition code path 12 years ago
Teo Mrnjavac 8a50685c75 Add clearJobs to PCM 12 years ago
Teo Mrnjavac b7f2d5d9d3 Fix page flow issue in partition module. 12 years ago
Teo Mrnjavac a943d55063 Size policy on erase page. 12 years ago
Teo Mrnjavac ef703b0859 Add page for erase+install operation. 12 years ago
Teo Mrnjavac dab5a05116 Add isDirty check to PartitionCoreModule 12 years ago
Teo Mrnjavac 4cadbf9b98 Expose icon and tooltip in DeviceModel. 12 years ago
Teo Mrnjavac a98a4bb614 Add ChoicePage to partition module + OS detection with os-prober. 12 years ago
Teo Mrnjavac 73246b47c6 Prefer nullptr over 0. 12 years ago
Teo Mrnjavac d39e77f7e8 New PrettyRadioButton, an alternative to QRadioButton with rich text. 12 years ago
Teo Mrnjavac 4d9f887c58 Make the prepare viewmodule use WaitingWidget 12 years ago
Teo Mrnjavac 8651b33843 Make the locale viewmodule use WaitingWidget. 12 years ago
Pier Luigi Fiorini 5624132172 Add packages job
This job can be used to install and remove packages.
12 years ago
demmm 631649ea69 1.0 Gb RAM should be a good default 12 years ago
Teo Mrnjavac a9aa3e9aa6 Show an error or warning if there are unsatisfied requirements. 12 years ago
Teo Mrnjavac 5434a04ebc Block the install process if an entry is required but unsatisfied. 12 years ago
Teo Mrnjavac 87711c89fc Use common icons in users viewmodule. 12 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.
12 years ago
Teo Mrnjavac 0404413b05 Store active user in GlobalStorage as username. 12 years ago
Teo Mrnjavac 3bef0b835a Check for mains power in prepare viewmodule. 12 years ago
Teo Mrnjavac 26419f2c8a Check for internet connection in prepare viewmodule. 12 years ago
Teo Mrnjavac b32bbf2b9a Add check for enough RAM to prepare viewmodule. 12 years ago
Teo Mrnjavac 03800e2966 Newline at end of file. 12 years ago
Teo Mrnjavac 9563b2efc7 WIP: new prepare viewmodule, with free space check using libparted. 12 years ago
Teo Mrnjavac 1bb6603998 Move spinner widget to libcalamaresui. 12 years ago
Teo Mrnjavac cbfad6f637 Merge pull request #100 from calamares/initcpiocfg
New initcpiocfg module, ported from Thus.
12 years ago
Teo Mrnjavac c70071406f Merge pull request #99 from calamares/grubcfg
New grubcfg module, ported from Thus.
12 years ago
Pier Luigi Fiorini 2133880fdb dracut: Don't read settings
This module doesn't have settings yet so this call fails.
12 years ago
Pier Luigi Fiorini b40f3bf4bb Initialize globalstorage before loading custom configuration 12 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.
12 years ago
Daniel Hillenbrand c97251d741 unpackfs: check for supported filesystems
Use /proc/filesystems to check if the system
supportes the given source filesystem.
12 years ago
Daniel Hillenbrand 148a29d506 unpackfs: code dedup 12 years ago
Philip 9de863a1af New initcpiocfg module, ported from Thus. 12 years ago
Philip 82237d1bd1 grubcfg: group variables 12 years ago
Philip 0c4e8863cf grubcfg: set swap_uuid variable 12 years ago
Philip 5b336fc3c5 New grubcfg module, ported from Thus. 12 years ago
Teo Mrnjavac 35f0dfc76d List all files recursively. 12 years ago
Teo Mrnjavac 8ce769184e Check for fs name validity. 12 years ago
Philip 37426b9f7a Replace unsquashfs with unpackfs
Conflicts:
	src/modules/unsquashfs/unsquashfs.conf
12 years ago
Teo Mrnjavac ea32ba6a83 Compare with None 12 years ago
Philip ba1006a965 Fix autologin in displaymanager module 12 years ago
Teo Mrnjavac 52656190af Documentation. 12 years ago
Teo Mrnjavac fea3b68d61 s/AutoUser/User/ 12 years ago
Teo Mrnjavac bdc3185dbe Let's assume for now that the ISO must ship a sddm.conf. 12 years ago
Teo Mrnjavac fd4c93c485 Create sddm.conf if it doesn't exist. 12 years ago
Teo Mrnjavac d6d40d44ee PEP8 displaymanager. 12 years ago
Teo Mrnjavac d93b8b9d44 New displaymanager module, based on Thus. 12 years ago
Teo Mrnjavac 9ba06a4cfb Merge pull request #91 from calamares/services-module
New services module, inspired by Thus.
12 years ago
Teo Mrnjavac a23d7890c0 Merge pull request #92 from calamares/networkcfg-module
New networkcfg module, based on Thus.
12 years ago
Teo Mrnjavac da368c49e6 Merge pull request #93 from calamares/hwclock-module
New hwclock module, ported from Thus.
12 years ago
Teo Mrnjavac ee4a0f1cba Add support for full name, and user/host autocompletion and validation. 12 years ago
Teo Mrnjavac f21da0035d Refactor layouts in users page, add full name. 12 years ago
Teo Mrnjavac 7a3ce363b3 Add option to run process jobmodules in chroot. 12 years ago
Teo Mrnjavac 24f13d3ad1 New hwclock module, ported from Thus. 12 years ago
Teo Mrnjavac 1b54ec1039 New networkcfg module, based on Thus. 12 years ago
Teo Mrnjavac c6c5c6ebde New services module, inspired by Thus. 12 years ago
Aurélien Gâteau 75129131bb More todos 12 years ago
Aurélien Gâteau 97980f5fad Make PartitionSizeController handle cloning the partition for PartResizerWidget 12 years ago
Aurélien Gâteau 738427130b Update partitionmanager submodule: Fix devices without partition table not being listed 12 years ago
Aurélien Gâteau ddd8d7063c Doc++ 12 years ago
Aurélien Gâteau 648befb9bb Add README.md 12 years ago
Aurélien Gâteau 044bd46ca3 Add missing license headers 12 years ago
Aurélien Gâteau 119a04ba3c Rename jobtests to partitionjobtests 12 years ago
Aurélien Gâteau 693e9229c8 Dispatch files in core/ gui/ and jobs/ dirs 12 years ago
Aurélien Gâteau 8e2b4050e7 clean ups 12 years ago
Aurélien Gâteau 315c0f0fc5 doc++ 12 years ago
Aurélien Gâteau 7978a8b279 Remove Context class 12 years ago
Aurélien Gâteau ec1836d802 dead code-- 12 years ago
Aurélien Gâteau ddb6813d26 Update partitionmanager submodule: merged origin/master into calamares 12 years ago
Aurélien Gâteau 62470ac4cf Update partitionmanager submodule: remove stray kcolorscheme.h include 12 years ago
Teo Mrnjavac 70691068cb Fix sudoers setup in users module. 12 years ago
Aurélien Gâteau 1c9265cd21 Merge branch 'wip/resize-partition' 12 years ago
Aurélien Gâteau 9b30e27f5e update partitionmanager submodule: Nicer rendering of PartResizerWidget 12 years ago
Aurélien Gâteau 310fdc56d9 Set proper colors in PartResizeWidget 12 years ago
Aurélien Gâteau 055904b20a Coding style 12 years ago
Aurélien Gâteau 86481461fd Move color handling to a separate namespace 12 years ago
Aurélien Gâteau cf4416a171 Keep partition color if space is inserted/removed before it 12 years ago
Aurélien Gâteau 06e30b8290 Remove PartitionSizeWidget 12 years ago
Aurélien Gâteau 5c9c414988 Use PartResizerWidget in CreatePartitionDialog 12 years ago
Aurélien Gâteau 38c685dc10 Move code cloning the partition for PartResizerWidget to PMUtils 12 years ago
Aurélien Gâteau c109059eb7 Fix crash if widgets are deleted before new ones are set 12 years ago
Aurélien Gâteau 55f4231c92 EditExistingPartitionDialog: Visual resizing of partitions 12 years ago
Teo Mrnjavac 78a3f1ce57 Merge pull request #81 from calamares/config
Configuration refactor
12 years ago
Aurélien Gâteau c3efa65668 Make sure all PM filesystem classes are initialized early enough
If FileSystemFactory::init() is not called early enough, we won't get
access to some information such as the number of used sectors.
12 years ago
Teo Mrnjavac 88d5a301c9 Update Calamares modules documentation. 12 years ago
Teo Mrnjavac 83ad1fae0e Debug output in keyboard viewmodule. 12 years ago
Aurélien Gâteau b5c3928609 unsquashfs: Do not ignore rsync failures 12 years ago
Aurélien Gâteau b246a95606 Coding style 12 years ago
Aurélien Gâteau 493e368bf0 update partitionmanager submodule: Build PartResizerWidget 12 years ago
Teo Mrnjavac e9ef90990b Correctly load globalstorage fake. 12 years ago
Teo Mrnjavac 5c8fa759b0 Update testmodule.py for new config structure. 12 years ago
Teo Mrnjavac 8f10c21e5b Big configuration overhaul.
Module descriptors are now module.desc, no configuration allowed inside.
Module config files are <modulename>.conf, installed in
share/calamares/modules.
settings.conf is read from /etc/calamares, then share/calamares, and if
running with --debug also in the current dir.
Module config files are read from /etc/calamares/modules, then
share/calamares/modules, and if running with --debug also in
src/modules/<modulename> relative to the current dir.
12 years ago
Teo Mrnjavac 75e9fd6aa3 Dracut module. 12 years ago
Aurélien Gâteau 415ad2c506 Fix empty error message 12 years ago
Aurélien Gâteau a267ef856e Check file system after the resize, like PM does 12 years ago
Aurélien Gâteau f5ccc616b9 Check file system before resizing: necessary for testResizePartition:shrink to pass 12 years ago
Aurélien Gâteau d48644a49c Improve prettyName of all jobs, log them in execJobList() 12 years ago
Aurélien Gâteau e2fe559f9d testResizePartition: more reliability tests
- use bigger partition sizes
- write a file before resizing, test it is the same after resizing
12 years ago
Aurélien Gâteau dac23c90a1 Implement MoveFileSystemJob: all testResizePartition tests pass 12 years ago
Aurélien Gâteau 4716b1c9b4 Coding style 12 years ago
Aurélien Gâteau 3db6d607ca move MoveFileSystemJob to its own file
It's going to be bigger than the others.
12 years ago
Aurélien Gâteau 1314bf944f Update partitionmanager submodule: Include CopySourceDevice and CopyTargetDevice 12 years ago
Aurélien Gâteau f007810118 Implement SetPartGeometryJob and ResizeFileSystemJob
Now testResizePartition:grow and testResizePartition:shrink pass
12 years ago
Aurélien Gâteau 60a224e5cd 3MB is too small for ext4: set a bigger new size for shrink 12 years ago
Aurélien Gâteau 9dac375a31 Don't forget to queue the job! 12 years ago
Aurélien Gâteau 09c3240364 Scaffolding and tests for ResizePartitionJob 12 years ago
Aurélien Gâteau fc3f3eaa3a Update partitionmanager submodule: Make it possible to set partition sectors from the outside world 12 years ago
Aurélien Gâteau e6c80ed5bd Coding style 12 years ago
Teo Mrnjavac 1d6c41e94d A timezone is a file, not a directory. 12 years ago
Aurélien Gâteau 9ce55bfb83 Introduce PartitionSizeWidget to reduce duplication between dialogs 12 years ago
Aurélien Gâteau e482481262 updatePartitionToCreate: avoid crash
Create the new partition before deleting the old one: otherwise the
m_partition member of dlg is dangling at the time we call createPartition()
12 years ago
Aurélien Gâteau 3d40527d29 Make it possible to "resize" (aka delete + create for now) existing partitions 12 years ago
Aurélien Gâteau df790986ae initcpio module, very loosely based on the one from the manjaro branch 12 years ago
Aurélien Gâteau 136d83f958 Add some test file for grub module 12 years ago
Aurélien Gâteau 6131ed212a Import check_chroot_call separately 12 years ago