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