Teo Mrnjavac
275b68cf5c
The PartitionModel should be owned by the PCM.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
4859431fe9
Maybe the deviceNode check isn't necessary.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
015aeb6b07
Debug output.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
423c9ccfb7
Reset the partition model before swapping the new Device into the DM.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
dfededc4b4
Use revertDevice in ChoicePage, and always use a fresh Device*.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
0a0a0d58e0
PartitionCoreModule::revertDevice.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
fe5ab75e82
Whitespace.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
0bf2389b1a
Add swapDevice to DeviceModel.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
1d553407b9
And remove swapDevice from BootLoaderModel.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
cbbaa8b592
swapDevice in BootLoaderModel.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
b767f0b18f
Select partition to replace from the current DeviceModel.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
5655b4f1da
Add PartitionPathRole to PartitionModel.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
2258c806ae
Make the bars/labels views members in ChoicePage.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
b663ce5f74
Add PartitionPtrRole to PartitionModel.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
1a4b6b1c9c
Isolate painter in selection square.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
d164ec4d91
Remove ReplaceWidget.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
d0ee43172c
Handle selection behavior on current state preview views.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
7102596729
Add Q_OBJECT macros.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
0c9d64878a
Only enable selection when it makes sense
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
1c279dac24
Make bars and labels share the selection model.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
f2093be353
Full selection and hover support in labels view.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
fd33eb71ba
Add some more string guesswork to labels view, with FS pretty names.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
df13b3ba08
Add separate FileSystemTypeRole to PM, and output FS PrettyNames.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
2986625cfd
PrettyName generator for FileSystem::Type.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
6af901a675
Use BootloaderEntryName from Branding for target root partition id.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
0c840abdc5
Allow setting a custom new root name in Labels view.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
e277467ed4
Run osprober after we have a working DeviceModel.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
fc54b9bf40
Debug spam.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
87a31a0514
Tweak labels view margin.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
f736ace996
Update Erase disk string.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
cda99a2a65
New Alongside strings.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
37634e1e5a
New Replace strings.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
d27ac4c041
New Erase disk strings.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
48d0de2e08
Let's try with no main message.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
326e566927
String changes.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
fe4cf3c4ec
Add some spacing between label view item rows.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
0af434bfc1
Factor out text building for label view items for proper sizeHint.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
0be736acf7
Improve information in labels view.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
a75c69805f
Add IsPartitionNewRole to PartitionModel.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
c765de654c
Add filesystem label role.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
0224811bf6
Move Osprober to PCM and add Osprober roles to PartitionModel.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
7b66514bf5
Clean up debug spam.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
333214f7ca
Finally fix selection.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
f154a135d8
Test out awful hack to try to make selection work properly.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
3fc354284a
Improve debug output.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
8acb70de5c
Use currentIndex instead of selection.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
99a5ac8e4d
Debug output.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
7fce08459b
Don't skip extended partition.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
f64d210496
Enable selection behavior and add debug output to Labels view.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
fecb50779a
Only paint selection and hover if selectionMode is not NoSelection.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
2f35aa1258
And selectionModel() better exist...
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
584ca6da18
Rely on selectionModel() instead of currentIndex().
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
517f958616
Magic numbers for view height.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
df9cec14f7
More arbitrary magic to try to fix all the pixels properly.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
9b60040bab
Magic numbers.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
a27a5496b7
Try a statically calculated selection margin.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
798a491296
Adjust padding.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
5aa8cd4a9b
Use semitransparent overlay rounded rect for PBV selection.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
7c80f846f1
Add debug output.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
c2cb367753
Remember QPersistentModelIndex rather than row for hover effect.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
36f30b1ede
Support selection and better hover.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
cc5520edda
Add hover and click support to PartitionBarsView.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
a9e241d288
Fix strings.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
1ad6c7e8ac
Use new Labels view.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
eed8d3b83b
Split out Labels view from Bars view.
...
Both are QAbstractItemViews and can be used on top of a PartitionModel,
together or separately.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
b65fe87503
PartitionPreview is now PartitionBarsView.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
3beebf4137
String improvement.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
37af36499c
Layout fix.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
78808251b9
Fix sizeHint calculation, useless padding is useless.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
ccc93d2c64
Better partition label square size.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
93c515ccef
Add documentation for partition table types.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
83cbe16918
Fixup preview height.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
84c254ced2
Use DeviceInfoWidget in ChoicePage.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
9d9de792e5
New DeviceInfoWidget to educate the user.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
4c90a68241
Make choice text refer to the currently selected device.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
b31ac92d7e
And make it build.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
3bf1fe716f
Yank out compact mode, refactor layout, fix strings.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
c6a7c54904
Preview widget height.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
c717a08d6d
Unbreak
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
abfc009872
Actually apply changes.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
2320ce9c04
Layout fixes.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
47b5c6eeb4
Use ReplaceWidget in ChoicePage.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
26ac809d6e
Don't instantiate ReplacePage in PVS any more.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
46fcca63c3
Refactor ReplacePage into new ReplaceWidget.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
742b2013f9
Sleep for 3, not 30s.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
22470ba4af
Disallow next if the root password is not reused or provided.
...
CAL-344 #close
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
8a6dcfbe2f
Move ReplacePartition operation to PartitionActions.
2015-12-30 17:27:02 +01:00
demmm
f267410dbb
different names
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
a79575afe8
Create erase button in a separate method.
2015-12-30 17:27:02 +01:00
demmm
c89bd1db23
implement https://calamares.io/bugs/browse/CAL-341
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
e0b1290b8c
Update the bootloader picker when the chosen device changes.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
a65be8bfda
Add the expanded signal to ExpandableRadioButton.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
526180dde2
Use ExpandableRadioButton in ChoicePage for Erase on MBR.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
02c345e3be
Use QGridLayout in ExpandableRadioButton to align widget with label.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
40ee57bed1
Useless margin is useless.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
94eda832f6
Build it.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
32e97c6ef2
Initial commit for ExpandableRadioButton.
...
ExpandableRadioButton extends PrettyRadioButton with an optional
user-provided QWidget at the bottom, which only shows up when the
button is checked.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
e83fdfbd13
Make PrettyRadioButton inheritable.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
368d3fe747
Apply partitioning action choice separately from preview, and update.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
391b52427a
Properly handle the edge case of a PCM::revert and null deviceModel.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
9b2f04daf6
Add reverted signal to PCM.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
36aa8f736a
Wrap choice items in a ScrollArea.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
0a72f22a34
WIP: go to next page on next if erase selected.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
32fd12d501
Add label to PCM state preview.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
65fd43729c
Use PartitionActions in ChoicePage for Erase.
...
Document ChoicePage because it's quite long and confusing.
Add PCM state preview and update it when a choice is selected.
Smaller icons.
Update strings.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
2e9e1782cf
Remove EraseDiskPage from PartitionViewStep.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
9167a34f2e
Kill EraseDiskPage, add PartitionActions.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
eeceed91eb
Refactor ChoicePage workflow, use rescanned state for Preview widget.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
d9421f586f
Sync layout with PartitionPage.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
c031ed677f
String fix.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
8858ea7854
Show preview widget for unknown disklabels or no disklabel.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
7adaa65795
Move preview up.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
26c2c08c47
Constant for unknown disklabel color.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
fadfc67015
Split up ChoicePage loading, support preview and disk chooser.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
9a67f6372c
Continue asynchronously loading PartitionViewStep after config load.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
3ba058d5b7
Add compact mode default.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
201cba6c77
UIfy ChoicePage.
2015-12-30 17:27:02 +01:00
Teo Mrnjavac
e58fe43a03
Try out GUI options for having a preview in the choice phase.
2015-12-30 17:27:02 +01:00
codeworkx
b412937699
don't set default "users" group on home dirs
...
Fixes CAL-345.
Changing group of home dir to the default "users" group might be a security risk
because every user which belongs to the default "users" group
might be able to access private data on home dirs of other users.
2015-11-29 11:10:01 +01:00
Teo Mrnjavac
33ab4ee663
Enable Restart Now checkBox if required.
2015-11-06 14:58:27 +01:00
Teo Mrnjavac
c1ea86c48e
Add new users to a group with the same name.
2015-10-16 16:47:23 +02:00
Teo Mrnjavac
bbd8fe6203
Allow reusing the user password as root password.
2015-10-16 14:26:26 +02:00
Teo Mrnjavac
cb83e22ded
Make sure the FullName is not empty.
2015-10-15 13:24:27 +02:00
Teo Mrnjavac
baa3553db5
Add CalamaresUtils::obscure.
2015-09-25 15:24:59 +02:00
Teo Mrnjavac
5f54a56513
PMUtils is now KPMHelpers. Also fixup after PartUtils refactor.
2015-09-18 15:41:07 +02:00
Teo Mrnjavac
95e87391a4
Refactor Osprober and resizability logic out ot PartitionViewStep.
2015-09-18 15:39:49 +02:00
Teo Mrnjavac
c5f9397d18
Keep UUID when clearing swap.
...
CAL-156 #comment I've just pushed a fix attempt for this, please test.
2015-09-17 15:16:24 +02:00
Teo Mrnjavac
4b57749945
Use PluginFactory in License module.
2015-09-15 17:21:19 +02:00
Philip
43438b633c
[services] fix target_env adjustment
2015-09-15 16:51:15 +02:00
Teo Mrnjavac
1c5f9ce320
Add sample custom instance configuration file to WebView module.
2015-09-15 16:48:42 +02:00
Teo Mrnjavac
c824172f37
Refactor Summary page to use new workflow to get operations list.
2015-09-15 16:48:42 +02:00
Teo Mrnjavac
9facef63c6
PluginFactory in InteractiveTerminal module.
2015-09-15 16:48:42 +02:00
Teo Mrnjavac
e120f2a74c
PluginFactory in Locale module.
2015-09-15 16:48:42 +02:00
Teo Mrnjavac
90b156f97f
PluginFactory in Keyboard module.
2015-09-15 16:48:42 +02:00
Teo Mrnjavac
7e6c626a0b
PluginFactory in Partition module.
2015-09-15 16:48:42 +02:00
Teo Mrnjavac
316909303c
PluginFactory in Summary module.
2015-09-15 16:48:42 +02:00
Teo Mrnjavac
0bd64163a5
PluginFactory in Users module.
2015-09-15 16:48:42 +02:00
Teo Mrnjavac
bc9c451f33
PluginFactory in WebView module.
2015-09-15 16:48:42 +02:00
Teo Mrnjavac
420c2cf7c4
PluginFactory in Welcome module.
2015-09-15 16:48:42 +02:00
Teo Mrnjavac
d91f00f334
PluginFactory in Finished module.
2015-09-15 16:48:42 +02:00
Teo Mrnjavac
49c03bbf2c
interactiveterminal ViewModule, based on the Konsole KPart.
2015-09-15 16:48:41 +02:00
Teo Mrnjavac
05292241c4
Let's just try ways to escape or not escape until something sticks.
2015-09-15 16:48:41 +02:00
Teo Mrnjavac
daee5b7148
Escape the encrypted password after calling crypt with the right salt.
2015-09-15 16:48:41 +02:00
Teo Mrnjavac
8573bebc58
Escape relevant password hash characters.
2015-09-15 16:48:41 +02:00
Rohan Garg
18218b250e
Adjust /etc/timezone if it exists
2015-09-15 16:48:41 +02:00
Rohan Garg
a98742c32c
Use timedatectl provided by systemd to set the time on the target
...
Use tools provided by systemd to set the time and fall back to
manually doing it via linking /etc/localtime
2015-09-15 16:48:41 +02:00
Teo Mrnjavac
42e465aa10
CalamaresUtils::System is now a class.
2015-09-15 16:48:41 +02:00
Teo Mrnjavac
10ce42f35c
Use target_env calls in Python modules.
2015-09-15 16:48:41 +02:00
Teo Mrnjavac
bf885d65db
chroot calls are now generic "target env" calls.
2015-09-15 16:48:41 +02:00
Teo Mrnjavac
4f2eddd146
Exclude read-only devices from partitioning backend scan.
2015-09-15 16:48:41 +02:00
Teo Mrnjavac
26715d4281
Correct name of libparted backend.
2015-09-15 16:48:41 +02:00
Teo Mrnjavac
e8de570acb
Build against partresizerwidget and related in KPMcore.
2015-09-15 16:48:40 +02:00
Teo Mrnjavac
adc23b99b6
Move CalaPM init into PMUtils.
2015-09-15 16:48:40 +02:00
Teo Mrnjavac
c2eef9ac30
The Humongous Include Fixage For KPMcore Headers.
2015-09-15 16:48:40 +02:00
Teo Mrnjavac
a49c339dcd
Fixup tests directory because we don't have a project statement.
2015-09-15 16:48:40 +02:00
Teo Mrnjavac
93352cf4be
Set up linking against kpmcore.
2015-09-15 16:48:40 +02:00
Teo Mrnjavac
80ff27a804
Remove partitionmanager submodule.
2015-09-15 16:48:40 +02:00
demmm
2372e45a8a
better spaced layout, most will use less then 3
2015-09-14 18:51:42 -04:00
demmm
031ff75630
Update License screenshot
2015-09-14 11:36:33 -04:00
Teo Mrnjavac
69b35da6bf
Fix up README.md.
2015-09-14 16:51:04 +02:00
demmm
c1ee36946c
New License module, based on KaOS license module.
...
See README.md for details.
2015-09-14 16:51:04 +02:00
Bhushan Shah
f15320f4f4
Add example disable service
2015-08-31 20:22:02 +05:30
Bhushan Shah
829ae3e9e4
Allow to disable services
...
There might be some services that are enabled in live environment but
not useful for the installed environment and needs disabling by default
2015-08-31 17:58:51 +05:30
Teo Mrnjavac
44d2c602e3
Do not build modules listed in SKIP_MODULES.
2015-08-28 17:38:36 +02:00
Teo Mrnjavac
de8e713b31
Update defaults.
2015-08-19 12:51:40 +02:00
Teo Mrnjavac
4ae55d0108
Allow setting the default for autologin/no autologin.
2015-08-19 12:51:06 +02:00
Rohan Garg
f75f6b51cb
Fix copyrights and make it so that one can go back when using webview
2015-08-17 09:46:14 +02:00
Rohan Garg
d99ad8fab9
Add a webview module
...
Add a webview module so that calamares can load a webpage.
This is useful when configuring webservices on your device such as
ownCloud.
2015-08-17 09:46:05 +02:00
Teo Mrnjavac
a2a6d2f243
Update submodule.
2015-07-29 13:15:47 +02:00
Teo Mrnjavac
4b8a85f66f
Update submodule.
2015-07-23 15:46:17 +02:00
Teo Mrnjavac
866ca49bdc
Update partitionmanager submodule.
2015-07-23 10:50:35 +02:00
Teo Mrnjavac
b75b13b466
Make sure to update GlobalStorage on every timezone change.
2015-07-15 17:48:59 +02:00
Teo Mrnjavac
45aac4ea78
Reset filesystem combo box to current filesystem if going back to "Keep"
2015-07-15 13:35:07 +02:00
Teo Mrnjavac
49f470b503
Update non-mountable list in CreatePartitionDialog.
2015-07-15 13:26:13 +02:00
Teo Mrnjavac
2ec2b4ab86
Disallow mounting non-mountable filesystem types.
2015-07-15 13:25:52 +02:00
Teo Mrnjavac
9bc77fe386
Minimum width.
2015-07-15 13:02:42 +02:00
Teo Mrnjavac
9f2086a648
Allow changing the filesystem type when editing a partition.
2015-07-15 12:51:35 +02:00
Teo Mrnjavac
a878d9763f
Don't do grubcfg if we're not installing any boot loader.
2015-07-07 19:21:13 +02:00
Teo Mrnjavac
881bf67d22
Add a "do not install boot loader" value to the boot loader picker.
2015-07-07 19:16:22 +02:00
Teo Mrnjavac
8c537daadc
Do not try to install the bootloader if a path is not defined.
2015-07-07 19:15:48 +02:00
Teo Mrnjavac
3326ec4ace
Clear mountPoint string when selecting a non-mountable filesystem type.
...
CAL-249 #close I pushed a fix, please test and reopen if still broken.
2015-07-02 12:18:26 +02:00
Teo Mrnjavac
b85e2d777e
If we don't ask for a root password, allow going forward without it.
...
CAL-248 #close Should be fixed, please test.
2015-07-02 11:21:46 +02:00
Teo Mrnjavac
27309619d3
Optionally do not allow a swap partition smaller than physical RAM.
2015-06-26 15:49:02 +02:00
Teo Mrnjavac
35f4db9316
Read ensureSuspendToDisk from partition.conf.
2015-06-26 15:48:12 +02:00
Ramon Buldó
92736c3486
Change how swap is calculated in automatic installation.
...
It uses same values as Thus/Anaconda.
Takes into account available disk space (don't use more than 10% of it)
2015-06-26 15:36:15 +02:00
Teo Mrnjavac
683cc893e4
Remove unreachable code.
2015-06-21 01:55:15 +02:00
Teo Mrnjavac
845dd761d9
Do not dereference a nullptr.
2015-06-21 01:27:02 +02:00
Teo Mrnjavac
d96cfb725b
Do not dereference a nullptr.
2015-06-21 01:21:28 +02:00
Teo Mrnjavac
c987235bb8
Scan for type 82 partitions and clear them regardless of swapon status.
2015-06-20 20:38:40 +02:00
Teo Mrnjavac
91cf3950df
Clear swap partitions after swapoffing them.
2015-06-20 19:31:09 +02:00
Teo Mrnjavac
b636d69a45
Scale Welcome image correctly, adjust layouts throughout Welcome page.
2015-06-20 01:05:55 +02:00
Teo Mrnjavac
161046af43
Use ProductWelcome branding image, if available.
2015-06-20 00:19:12 +02:00
Teo Mrnjavac
3545e4fb86
Layout improvement.
2015-06-20 00:17:50 +02:00
Teo Mrnjavac
3bf0500f4e
Lay out optional Welcome buttons horizontally.
2015-06-19 23:24:34 +02:00
Philip
3b38aee1dd
[displaymanager] adopt to Cinnamon 2.6.8
2015-06-18 07:02:16 +02:00
Teo Mrnjavac
bd7dd43c90
Hardcode Calamares logo in About.
...
CAL-241 #close
2015-06-16 02:38:07 +02:00
Teo Mrnjavac
bc112889ea
Update submodule.
2015-06-16 02:15:00 +02:00
Gormogon
26156a242e
Rename so that the variable does not shadow the function name
2015-06-14 08:33:05 -04:00
Gormogon
9f8a8f6a64
PEP and Unused Import
2015-06-14 08:22:35 -04:00
Gormogon
bc66502fda
Some more PEP
2015-06-14 07:25:37 -04:00
Gormogon
db7577b9f8
More PEP
2015-06-14 07:04:52 -04:00
Gormogon
beb911863b
A little more PEP
2015-06-14 06:56:56 -04:00
Gormogon
99c4b59f64
Fixed GDM auto-login bug due to typo
2015-06-13 23:12:35 -04:00
Gormogon
a4a22e3ad0
PEP Cleanup
2015-06-13 23:08:52 -04:00
Teo Mrnjavac
1e5e44e01b
Merge pull request #222 from Gormogon/master
...
Small Python IO Cleanup
2015-06-14 03:35:47 +02:00
Gormogon
6a7e219021
Small Python IO Cleanup
2015-06-13 21:00:42 -04:00
Teo Mrnjavac
83e368fbc4
Initialize all the things.
2015-06-14 02:19:34 +02:00
Teo Mrnjavac
aeac85d176
Avoid keeping dead code.
2015-06-14 01:18:51 +02:00
Teo Mrnjavac
88719d961f
Initialize all members in ChoicePage.
2015-06-14 00:55:26 +02:00
Teo Mrnjavac
003f8bb956
File descriptor must be positive.
2015-06-14 00:53:35 +02:00
Teo Mrnjavac
624e4f9421
Initialize all members in PartitionModel.
2015-06-14 00:48:51 +02:00
Teo Mrnjavac
23c21074af
Initialize all the things in PartitionSplitterWidget.
2015-06-14 00:45:38 +02:00
Teo Mrnjavac
8633999997
Useless member is useless.
2015-06-14 00:33:32 +02:00
Teo Mrnjavac
94a1f44fd7
Initialize all members and use nullptr instead of 0.
2015-06-13 21:33:20 +02:00
Teo Mrnjavac
9bded2dcfc
Initialize all members.
2015-06-13 21:33:00 +02:00
Teo Mrnjavac
2a0ad54fd5
Add prettyStatusMessage to all partitioning jobs.
...
CAL-235 #comment Improved status messages for jobs while installing.
2015-06-13 02:30:09 +02:00
Teo Mrnjavac
3855998fe5
Add prettyStatusMessage to Clear* and Check* partitioning jobs.
2015-06-13 02:24:58 +02:00
Teo Mrnjavac
079fa3624b
Update pretty{Description,StatusMessage} for users module jobs.
2015-06-13 02:22:03 +02:00
Teo Mrnjavac
46e90ccda2
Add setRootPassword option to the Users module.
...
If set to true, the user must set a root password. Otherwise, the
user won't be asked and a root password will not be set.
2015-06-11 04:02:06 +02:00
Teo Mrnjavac
d6441bbcb4
LVM2 unmounting and disabling support in ClearMountsJob.
2015-06-11 03:18:22 +02:00
Teo Mrnjavac
7dd4104009
Replace Gummiboot with systemd-boot.
2015-06-11 00:32:50 +02:00
Teo Mrnjavac
617d6d018c
Clarify.
2015-06-10 00:17:59 +02:00
Teo Mrnjavac
35e859e66e
Automatically create a swap partition if there's enough space.
2015-06-10 00:06:45 +02:00
Teo Mrnjavac
adad3535a8
Use the new physical memory checker.
2015-06-10 00:06:45 +02:00
Teo Mrnjavac
43698b18f5
Rearrange WelcomePage checker layout to make more space for reports.
2015-06-09 02:35:22 +02:00
Teo Mrnjavac
02f4ab1501
Check for root privileges.
2015-06-09 02:13:22 +02:00
Teo Mrnjavac
b07fd97103
Merge pull request #220 from dgikiller/master
...
Improving support for Gentoo based distros
2015-06-08 19:34:01 +02:00
skullbocks
57406f3bc9
[modules/packages] Added support for Portage and Entropy
2015-06-08 19:29:51 +02:00
Teo Mrnjavac
320a96423f
Add a 5% grace to the RAM check because Linux MemTotal is unreliable.
2015-06-08 19:28:52 +02:00
Teo Mrnjavac
8885a7e5f6
Fix bug with KPM enum which prevented logical partition creation.
2015-06-07 03:24:00 +02:00
Teo Mrnjavac
fa2b577236
Meaningful text from BootLoaderModel.
2015-06-06 23:45:54 +02:00
Teo Mrnjavac
30408d34a1
Try to find a more reliable way to read new partition UUIDs.
2015-06-05 18:02:14 +02:00
Teo Mrnjavac
fff0f6f023
Debug output.
2015-06-05 18:02:14 +02:00
Teo Mrnjavac
cf5e137947
Correct operations order in EraseDiskPage.
2015-06-05 18:02:14 +02:00
Teo Mrnjavac
25c2b7265b
Fixup operations order when autopartitioning.
2015-06-05 18:02:14 +02:00
Teo Mrnjavac
0426d7fd35
Bump EFI system partition default size to 300M.
2015-06-05 18:02:14 +02:00
Teo Mrnjavac
7a69aae0cb
Correct operation order in EraseDiskPage for EFI.
2015-06-05 18:02:14 +02:00
Teo Mrnjavac
d499fed8a0
Add EFI detection support to Alongside page.
2015-06-05 18:02:14 +02:00
Teo Mrnjavac
e3ef61a7f2
Move onPartitionSelected into a slot instead of a huge lambda.
2015-06-05 18:02:14 +02:00
Teo Mrnjavac
195b585282
Disable alongside and replace features on EFI system without ESP.
2015-06-05 18:02:13 +02:00
Teo Mrnjavac
b507a0e2b9
Rebase ReplacePage on top of EFI support in PCM.
2015-06-05 18:02:13 +02:00
Teo Mrnjavac
f4a13b2041
Add EFI System Partition scanning support to PartitionCoreModule.
2015-06-05 18:02:13 +02:00
Teo Mrnjavac
67b96f750a
Code style.
2015-06-05 18:02:13 +02:00
Teo Mrnjavac
905835295a
Move osprober management out of ctor.
2015-06-05 18:02:13 +02:00
Teo Mrnjavac
a2f1d49983
Remove debug spam.
2015-06-05 18:02:13 +02:00
Teo Mrnjavac
a2c5bcd0ee
Fixed m_isEfi falsely false in ReplacePage.
2015-06-05 18:02:13 +02:00
Teo Mrnjavac
d54f314394
Add debug spam to ReplacePage.cpp
2015-06-05 18:02:13 +02:00
Teo Mrnjavac
18eb0c7b96
Add ESP detection and choice to ReplacePage.
2015-06-04 02:28:12 +02:00
Teo Mrnjavac
94e9c659d1
Add generic search function to iterate over partitions for convenience.
2015-06-04 02:28:12 +02:00
Teo Mrnjavac
04f977d28f
Add ESP related UI elements to ReplacePage.
2015-06-04 02:28:12 +02:00
Teo Mrnjavac
ccab867d19
Update submodule.
2015-06-04 02:27:58 +02:00
Teo Mrnjavac
d5a42a65f6
Update KPM submodule.
2015-05-20 12:13:08 +02:00
Teo Mrnjavac
994db0973f
Try removing the centered icon from CheckerWidget
2015-05-18 12:47:11 +02:00
demmm
5a07c240a9
use ShortProductName as second argument
...
choicepage.cpp has 2 instances where %2 is not defined
2015-05-16 19:43:27 +02:00
Teo Mrnjavac
235d0058c9
Set dialog title.
2015-05-16 19:42:51 +02:00
Teo Mrnjavac
e09976d91c
Add details dialog to requirements widget.
2015-05-15 18:15:22 +02:00
Teo Mrnjavac
2fd84fc9f7
Layout fixes in Welcome page.
2015-05-15 18:15:22 +02:00
Teo Mrnjavac
51f74315f6
Refactor CheckerWidget for better integration with Welcome page.
2015-05-15 18:15:22 +02:00
Teo Mrnjavac
7622abce94
Add negated text to requirement entries.
2015-05-15 18:15:22 +02:00
Teo Mrnjavac
f0dc3d5ae6
Layout fixes in welcome page.
2015-05-15 18:15:22 +02:00
Teo Mrnjavac
43992c5251
Hook up RequirementsChecker with the WelcomeViewStep.
2015-05-15 18:15:22 +02:00
Teo Mrnjavac
e19264632d
Merge prepare config file into welcome.conf.
2015-05-15 18:15:22 +02:00
Teo Mrnjavac
ceedc1166b
Merge prepare module into welcome, and repurpose it as a req checker.
2015-05-15 18:15:22 +02:00
Teo Mrnjavac
3dd1d7932f
Fix up identifiers + use QComboBox instead of QListView.
2015-05-15 18:15:22 +02:00
Teo Mrnjavac
7bcb060967
The greeting module is now welcome.
2015-05-15 18:15:22 +02:00
Ramon Buldó
049f711f7d
[displaymanager] Add i3, move openbox to the end of the list.
2015-05-15 12:50:29 +02:00
Ramon Buldó
9b7c1ff3da
[displaymanager] Add budgie and pantheon support
2015-05-15 07:07:54 +02:00
Ramon Buldó
bbe06aa587
Fix ssd detection for MMC devices.
2015-05-08 10:37:54 +02:00
Teo Mrnjavac
d1047ab76e
Use new installTranslator in GreetingPage.
2015-05-07 16:10:42 +02:00
Teo Mrnjavac
fcb6817c54
Make dummypython sleep for 30sec.
2015-05-07 16:10:42 +02:00
Daniel Hillenbrand
e4daf45c71
mount: mount efivarfs on /sys/firmware/efi/efivars
...
No need to bind sys to /sys/firmware/efi since it is already preset.
2015-05-01 10:42:06 +02:00
Daniel Hillenbrand
8612f427f1
bootloader: add --force argument for grub efi
2015-05-01 10:11:32 +02:00
Teo Mrnjavac
cf3359bdb4
Reset ReplacePage when going back from the next one.
2015-04-29 18:16:48 +02:00
Teo Mrnjavac
55b93091e6
Add reset method to ReplacePage.
2015-04-29 18:16:48 +02:00
Teo Mrnjavac
4b73d9579f
Add PartitionPreview widget to AlongsidePage.
2015-04-28 17:42:11 +02:00
Teo Mrnjavac
0d0e3bf7bc
Add hack to PCM to create a rescanned device copy to use as preview.
2015-04-28 17:40:49 +02:00
Teo Mrnjavac
6b40c8aaa1
Use a static colors cache to preserve partition colors.
2015-04-28 17:09:24 +02:00
Teo Mrnjavac
2c9d6fff17
const array is const.
2015-04-28 17:09:24 +02:00
Teo Mrnjavac
96c840e878
Use proper color for new partition in PartitionSplitterWidget.
2015-04-28 17:09:24 +02:00
Teo Mrnjavac
ae1fa0e48b
Use correct palette in new partition dialog.
2015-04-28 17:09:24 +02:00
Teo Mrnjavac
9065882da4
Either count new partitions or existing partitions for colors.
2015-04-28 17:09:23 +02:00
Teo Mrnjavac
d3f4ced8c0
Use a separate palette for newly created partitions.
2015-04-24 18:10:12 +02:00
Teo Mrnjavac
c7563af1c9
New palette + don't reset count when coloring logical partitions.
2015-04-24 18:10:12 +02:00
Teo Mrnjavac
5ab7896fca
Add the option of using PartitionIterator on a PartitionTable.
2015-04-24 18:10:12 +02:00
Teo Mrnjavac
6c62d6f6d2
Implement wrapping to new line for partition preview color labels.
2015-04-24 18:10:12 +02:00
Teo Mrnjavac
45d5c5bbde
Only show the labels section where it's relevant.
2015-04-24 18:10:12 +02:00
Teo Mrnjavac
966ccdaafc
Initial commit for adding labels to PartitionPreview.
2015-04-24 18:10:12 +02:00
Teo Mrnjavac
1ad1a64161
Code style.
2015-04-24 18:10:12 +02:00
Teo Mrnjavac
b15ccdfeef
Year too.
2015-04-16 18:20:29 +02:00
Teo Mrnjavac
b7af3cde38
Fix url.
2015-04-16 18:19:15 +02:00
Teo Mrnjavac
30559baa16
Reorder entries on ChoicePage.
2015-04-16 18:14:26 +02:00
Teo Mrnjavac
9459e67ac9
Update Blue Systems tagline.
2015-04-16 18:14:26 +02:00
Teo Mrnjavac
9058c14032
Merge pull request #205 from rshipp/packages-local-install
...
Allow local installs with the packages module
2015-04-16 11:26:37 +02:00
Teo Mrnjavac
d894638f2f
Add information about the partitioning action in the Summary page.
2015-04-15 15:36:49 +02:00
Teo Mrnjavac
06b4443e80
Const correctness.
2015-04-15 12:20:26 +02:00
Teo Mrnjavac
2846cbdcbc
Report a prettyDescription for FillGlobalStorageJob.
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
fefa736501
Use <strong> instead of <b> in all instances.
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
e2c133f329
Better Summary message in ResizePartitionJob.
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
5c8453e4bb
Better Summary message in FormatPartitionJob.
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
fa83ca4469
Better Summary message for DeletePartitionJob.
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
c56235df37
Better Summary message for CreatePartitionTableJob.
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
3140990dbc
Better Summary message for CreatePartitionJob
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
22411d2399
Never show an empty jobs label.
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
e6748f8656
Make the Summary page contents scrollable.
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
69f6a2c73c
Formatting in Summary page.
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
be2083e2bf
Add device node to Partitioning summary info objects.
2015-04-13 14:58:33 +02:00
Teo Mrnjavac
8568c2c816
Add prettyDescription to most Partitioning jobs.
2015-04-13 14:58:33 +02:00
Teo Mrnjavac
bf0296e155
Preliminary implementation of a summary queue for partitioning jobs.
2015-04-13 14:58:33 +02:00
Teo Mrnjavac
30502d49c3
Retranslate strings from uic on language change.
2015-04-09 18:16:14 +02:00
Teo Mrnjavac
1211086b33
Update URL.
2015-04-08 13:59:33 +02:00
Teo Mrnjavac
9cb5a0af18
Merge pull request #213 from calamares/grubcfg-preserve-kernel-params
...
Preserve kernel parameters that aren't handled by grubcfg.
2015-04-03 16:58:09 +02:00
Teo Mrnjavac
654bc9f471
Add debug output to SetKeyboardLayoutJob.
...
CAL-206 #comment I've just pushed some debug output to master, could you please test again and post a new log?
2015-04-03 15:04:24 +02:00
Teo Mrnjavac
6395b4c8ce
Use the new Disk and Partition icons.
2015-04-03 12:19:27 +02:00
Teo Mrnjavac
8625b8c5a9
Fix up regex in grubcfg to work with single quotes.
2015-04-02 20:25:41 +02:00
Teo Mrnjavac
ffc65fa07e
New Partitioning icons, still being fixed up.
2015-04-02 14:21:14 +02:00
Teo Mrnjavac
debd4bc352
Fix regexp in grubcfg.
...
CAL-205 #comment Done some fixing, please retest when you can.
2015-04-02 13:24:47 +02:00
Teo Mrnjavac
a977b1ea40
Make sure we write the kernel config line anyway.
2015-04-02 12:53:24 +02:00
Teo Mrnjavac
41e7a9ae3c
Preserve kernel parameters that aren't handled by grubcfg.
2015-04-02 12:53:24 +02:00
Teo Mrnjavac
9b516281d8
... and use them in the Greeting page.
2015-04-02 12:50:17 +02:00
Teo Mrnjavac
262ef38c0a
Show/hide available links based on greeting.conf and Branding.
2015-04-02 12:29:31 +02:00
Teo Mrnjavac
23ddfaae67
Read configuration map into GreetingViewStep.
2015-04-02 12:29:31 +02:00
Teo Mrnjavac
43487198a2
The greeting module now has a config file.
2015-04-02 12:29:31 +02:00
Teo Mrnjavac
a1e643044e
Make ProductUrl/ProductUrlText optional.
2015-04-01 18:11:38 +02:00
demmm
4088d9bd3b
implement http://calamares.io/bugs/browse/CAL-185
2015-04-01 17:36:51 +02:00
Ramon Buldó
a253101258
[partition] Disable bootloader disk selection when installing in a efi system.
2015-03-29 17:03:26 +02:00
Teo Mrnjavac
5a24916fd0
Make which plymouth execute in chroot.
2015-03-26 15:53:50 +01:00
Rohan Garg
44105895f8
Use 'which' to find plymouth instead of hard coding /usr/bin
...
Debian ships plymouth in /bin instead of /usr/bin, so we should use
'which' to figure out if it's installed.
2015-03-25 20:39:03 +01:00
Teo Mrnjavac
75f4f0fa04
Fix issue with splitting being allowed when it shouldn't be.
...
KPM docs misreport Partition::available to be in sectors, when it's
actually in bytes. Because of this, available space estimates were
completely off and resizing was allowed even when there's no room to
do it. This used to put the resize widget in all sorts of weird,
visually broken states.
CAL-188 #comment Does this still happen with current master?
2015-03-25 12:54:44 +01:00
Teo Mrnjavac
c7f46136fc
Do not crash.
2015-03-19 17:28:30 +01:00
demmm
d750885e75
Revert "add URL option in greeting page"
2015-03-19 10:44:34 -04:00
demmm
be29755230
add URL option in greeting page
...
URL is a variable set in branding.desc, distros cna link to a Known Issues page
text for the URL is also possible to set in branding, known issues is default
advantage is any text possible as distros see fit
disadvantage, not part of translated strings
if most agree, Known Issues can be set as hard coded text, not in branding.desc
2015-03-19 10:32:14 -04:00
Teo Mrnjavac
d0235c4e76
Improve strings for actions in ChoicePage.
2015-03-18 20:12:20 +01:00
Teo Mrnjavac
c45e757cea
Good guy clang catches lousy code.
...
CAL-212 #close Fixed.
2015-03-17 15:41:17 +01:00
Philip
a62743185a
[partition] use C++11 initialization list for mountPoints
2015-03-16 19:21:18 +01:00
Ramon Buldó
6a52811c30
Show efi mountpoint when creating/editing partitions
2015-03-16 11:50:55 +01:00
Ramon Buldó
26bb6951f1
[partition] Change comment to prevent confusions of what Manjaro uses
2015-03-16 09:06:58 +01:00
Philip
bde428d4af
[services] revert f1908eb
2015-03-13 17:49:24 +01:00
Teo Mrnjavac
4468e30317
Prevent crash when going back from EraseDiskPage and then next.
...
This was caused by an invalid reference to a device model in the
partitioning preview widget after a PCM revert.
2015-03-13 16:05:35 +01:00
Philip Müller
9fcd8113e5
[displaymanager] add pekwm
2015-03-12 21:08:23 +01:00
Philip Müller
f1908eb38d
[services] adopt cups changes
2015-03-12 21:07:41 +01:00
Teo Mrnjavac
7e7e47b6d1
Do not warn of data loss which might not happen.
...
CAL-194 #comment Fixed up warnings in ChoicePage.
2015-03-11 18:13:39 +01:00
rshipp
f3319e1ef4
Change local_install to localInstall
2015-03-04 08:19:26 -07:00
rshipp
880c19c195
Fix incorrect if statement
2015-03-01 17:34:44 -07:00
rshipp
995341e9be
Allow local installs with the packages module.
...
Courtesy of @Inkane. Adds the ability to use pacman -U to install
local packages.
2015-03-01 16:31:40 -07:00
Ramon Buldó
fb3072bbbb
/etc/mtab reports a file size of 0, so using .atEnd() may not work. Read the file until it doesn't return more data.
...
Use QTextStream because it takes care of the conversion between 8-bit and 16-bit.
http://doc.qt.io/qt-5/qfile.html#using-streams-to-read-files
2015-02-28 16:46:18 +01:00
Teo Mrnjavac
642b4be1f2
Keys are not necessarily unique, so use a QList< QPair > instead.
2015-02-27 20:43:21 +01:00
Teo Mrnjavac
20a8b222c6
Verbose debug output.
2015-02-27 20:31:17 +01:00
Teo Mrnjavac
b557961a32
New ClearTempMountsJob, to be executed before partitioning jobs.
2015-02-27 19:49:47 +01:00
Teo Mrnjavac
8a23d48d76
Merge pull request #201 from calamares/removeuser
...
removeuser job module, this time in Python.
2015-02-26 11:00:04 +01:00
Teo Mrnjavac
01e98f0c29
Merge pull request #199 from calamares/displaymanager-explicitautologin
...
[displaymanager] Explicitly unset autologin if not checked.
2015-02-26 10:59:14 +01:00
Gormogon
e2d05cb9f2
Align Pointers
2015-02-25 19:57:19 -05:00
Teo Mrnjavac
67ed53caeb
Do not try to set the username if it's None.
2015-02-25 18:01:15 +01:00
Teo Mrnjavac
b319cc1da0
[displaymanager] Explicitly unset autologin if not checked.
2015-02-25 18:00:01 +01:00
Teo Mrnjavac
5a1567f4f5
removeuser job module, this time in Python.
2015-02-25 17:37:25 +01:00
Philip
e5eee1e4dd
[unpackfs] proper sentence
2015-02-25 14:49:24 +01:00
Philip
82dc4c38f4
[unpackfs] add python doc strings
2015-02-25 14:49:24 +01:00
Philip
d22e194ee7
[umount] add python doc strings
2015-02-25 14:49:23 +01:00
Philip
be2353e54b
[packages] add python doc strings
2015-02-25 14:49:23 +01:00
Philip
016dd71db4
[mount] add python doc strings
2015-02-25 14:49:23 +01:00
Philip
d7b36e9ff7
[machineid] add python doc strings
2015-02-25 14:49:23 +01:00
Philip
fc88f1a480
[initramfs] add python doc strings
2015-02-25 14:49:23 +01:00
Philip
d677fe9d01
[initcpiocfg] add python doc strings
2015-02-25 14:49:23 +01:00
Philip
98db0b3f59
[initcpio] add python doc strings
2015-02-25 14:49:23 +01:00
Philip
06be842cfa
[grubcfg] add python doc strings
2015-02-25 14:49:23 +01:00
Philip
3d8ba2b088
[fstab] add python doc strings
2015-02-25 14:49:23 +01:00
Philip
e7a67b9c52
[dummypython] add python doc strings
2015-02-25 14:49:23 +01:00
Philip
3330df99f3
[dracut] add python doc strings
2015-02-25 14:49:23 +01:00
Philip
60927b9363
[displaymanager] add more python doc strings
2015-02-25 14:49:23 +01:00
Philip
0d8bdc6c4e
[bootloader] add python doc strings
2015-02-25 14:49:23 +01:00
Gormogon
b4db9fe64b
Fixing PEP – 257 Violations
2015-02-25 14:49:23 +01:00
Gormogon
113d9db7cb
Python Better Docstrings
2015-02-25 14:49:23 +01:00
Philip
0dadd19e51
[bootloader] use '--force' argument
...
- Note (Kevin Kofler): Grub will fall back to a LILO-style installation,
using blocklists to reference the blocks inside a larger partition,
with the same caveats LILO had (need to reinstall whenever you do
anything to the partition that will move those blocks around).
- Setting flags (EF00, EF02) or creating grub boot partition should be
handled within 'partition' module.
2015-02-23 02:35:50 +01:00
Philip
9ac0fc37b1
[bootloader] Modifications
...
- move fail-check out of loop
- add more debug lines
2015-02-22 18:06:15 +01:00
Philip
fe7c5bbe77
[bootloader] Modifications
...
- add more debug informations
- simplify gpt detection code
2015-02-22 17:34:12 +01:00
Philip
43ccfbd9bd
[bootloader] Modifications
...
- add 'bios_grub' flag when gpt table got detected
- grub: add --recheck at installation
2015-02-22 15:26:29 +01:00
Teo Mrnjavac
abeb6d9172
Run urpme noninteractive (OpenMandriva).
...
Thanks Tomasz Paweł Gajc <tpgxyz@gmail.com> for the patch.
2015-02-22 13:38:37 +01:00
Philip
6ed8b1e4a4
[bootloader] actually use get_kernel_line()
2015-02-20 18:36:20 +01:00
Teo Mrnjavac
92eae47a1d
Const correctness.
2015-02-20 16:21:30 +01:00
Teo Mrnjavac
71851ed274
Process user-visible strings in TimezoneWidget and LocalePage.
2015-02-20 16:21:30 +01:00
Gormogon
7989267e81
Unused Imports
2015-02-20 09:24:05 -05:00
Teo Mrnjavac
cf64b2ce27
Allow zone subdivisions in timezones list.
...
CAL-191 #close Please test and reopen if it's still broken.
2015-02-20 14:54:52 +01:00
Philip Müller
d55d1c2fca
[bootloader] fix typos in conf
2015-02-20 09:59:02 +01:00
Philip Müller
cb271d13ed
[bootloader] use bootloader.conf values for overrides
2015-02-19 18:10:31 +01:00
Philip Müller
035ad6cbf9
[bootloader] use bootloaderEntryName
2015-02-19 17:59:52 +01:00
Philip Müller
cf1e5a8b51
[bootloader] fix typo
2015-02-19 17:40:36 +01:00
Philip Müller
93f0de3f7f
[bootloader] make gummiboot entries more generic (use branding)
2015-02-19 17:39:11 +01:00
Philip
df9a2e38a8
[bootloader] proper arrangement
2015-02-20 01:00:31 +01:00
Philip
4759279fab
[bootloader] default to grub for efi installations
2015-02-20 00:40:24 +01:00
Philip
5043bb4e0d
[bootloader] update note regarding efiBootLoader in conf
2015-02-20 00:37:21 +01:00
Philip
c649ed4729
[bootloader] add efiBootLoader to conf
2015-02-20 00:34:56 +01:00
Philip
ebce8335bd
[bootloader] move efi_(boot_loader|directory) to proper place
2015-02-20 00:33:16 +01:00
Philip
cd3e6a97de
[bootloader] move efi_(boot_loader|directory) to proper place
2015-02-20 00:32:46 +01:00
Philip
e3a7fca6f4
[bootloader] join grub module with bootloader
2015-02-20 00:28:44 +01:00
Philip
76bfc4d96f
[grub] add sgdisk call
2015-02-19 22:40:55 +01:00
Philip
4f089185fd
[bootloader] fix 'dict' object is not callable
2015-02-19 22:32:27 +01:00
Philip
1542107d22
[bootloader] proper kernel_line in conf
2015-02-19 21:01:38 +01:00
Philip
7a10e14161
[bootloader] move values kernel_line and fallback_kernel_line up
2015-02-19 20:56:18 +01:00
Philip
cb78e74ae9
[bootloader] add quotes to config
2015-02-19 20:48:39 +01:00
Philip
6877466e28
Merge branch 'master' of github.com:calamares/calamares
2015-02-19 20:46:50 +01:00
Philip
568dd9422c
[bootloader] simplify code
...
- remove unneeded double code
- add kernel lines to config
2015-02-19 20:46:02 +01:00
Teo Mrnjavac
ee1a90d845
Add debug details to ClearMountsJob.
2015-02-19 20:25:28 +01:00
Philip
e0cccb892f
[bootloader] fix typo
2015-02-19 20:24:07 +01:00
Philip
229b9b40cd
[bootloader] make if statement more pythonic
2015-02-19 19:46:57 +01:00
Philip
b41ecf119d
[bootloader] add meaningful debug lines
2015-02-19 19:42:09 +01:00
Philip
715112261d
[bootloader] if boot_p or device is empty, break and throw an error
2015-02-19 19:09:13 +01:00
Teo Mrnjavac
d51b15a919
Fix typo. Please test your Python code, as CI won't catch it.
2015-02-18 18:46:13 +01:00
Teo Mrnjavac
23eca3db55
Only create a ClearMountsJob for dirty devices.
...
CAL-195
2015-02-18 17:41:48 +01:00
Gormogon
9ef5f581a3
Update 'kbd-model-map' from Upstream
2015-02-18 10:06:37 -05:00
Gormogon
5c1ee7bbcb
[PEP 8] General Style Part 3
2015-02-18 10:03:57 -05:00
Gormogon
09dc6bb5d7
[PEP 8] General Style Part 2
2015-02-18 09:47:24 -05:00
Gormogon
d8df3d7a59
[PEP 8] General Style Part 1
2015-02-18 09:37:03 -05:00
Gormogon
5d5519b7b0
[PEP 8] Comparison to 'False'
2015-02-18 09:22:33 -05:00
Gormogon
ebf037f247
[PEP 8] Comparison to 'None'
2015-02-18 09:21:49 -05:00
Gormogon
1b7b999449
Quick Simplification
2015-02-18 09:13:39 -05:00
Gormogon
9419d07a98
Fixed Unclosed File
2015-02-18 09:09:15 -05:00
Gormogon
8e1480431a
[PEP 263] Corrected Encoding Headers
2015-02-18 09:06:10 -05:00
Teo Mrnjavac
8ad507e379
Improve input validation in UsersPage.
...
CAL-190 #close
2015-02-17 20:20:20 +01:00
Philip Müller
ca5132f13e
[python modules] use str.format()
2015-02-17 14:38:30 +01:00
Philip Müller
6906ba0b59
[bootloader] modifications
...
- use --target=i386-pc flag for grub installs
- use str.format()
2015-02-17 13:53:51 +01:00
demmm
294b030b99
correct swap in fallback too
2015-02-14 18:03:50 -05:00
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.
2015-02-14 22:53:00 +01:00
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
2015-02-14 13:45:46 +01:00
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'
2015-02-14 13:06:05 +01:00
Philip
75857971c4
[grub] replace chroot_call with check_chroot_call
2015-02-14 10:47:05 +01:00
Teo Mrnjavac
69c9d91aa6
Remove excessive debug output.
2015-02-13 14:03:55 +01:00
Teo Mrnjavac
8b753bd65f
Reimplement ClearMountsJob without relying on PCM state.
2015-02-13 14:03:55 +01:00
Teo Mrnjavac
1eff260637
Add debug output to the ClearMountsJob code path.
2015-02-13 14:03:55 +01:00
Philip Müller
7ed0558471
[grub] add efi_directory_firmware
2015-02-10 18:30:07 +01:00
Philip Müller
1e1aa8151c
[grub] make efi_directory configurable
2015-02-10 18:20:01 +01:00
Philip Müller
a6185027f7
[grub] create boot/efi dir
...
- in some cases this directory might not be present
2015-02-10 17:28:42 +01:00
Teo Mrnjavac
dabfb68a68
Avoid constructing more temporaries than necessary.
...
Thanks Winfried Kusgörd <w.kusgoerd@arcor.de> for the patch.
2015-02-09 19:16:47 +01:00
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.
2015-02-09 19:16:46 +01:00
Teo Mrnjavac
d07dfc3eca
More debug output in partition module.
2015-02-05 13:23:41 +01:00
Philip
35a235541f
[finished] fix config file
2015-02-04 19:54:18 +01:00
Teo Mrnjavac
4e869b2211
Fix default restart command.
2015-02-04 11:26:24 +01:00
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'))
2015-01-31 15:06:54 +00:00
Teo Mrnjavac
b5f9b5a66e
New Finish view module, with restart capability.
2015-01-29 22:46:08 +01:00
Teo Mrnjavac
171248ad4f
Add isBackEnabled checks to all ViewSteps.
2015-01-29 22:46:07 +01:00
Teo Mrnjavac
2cd9c7c0fa
Improve urpmi call. Thanks Tomasz Paweł Gajc for the patch.
2015-01-27 18:38:11 +01:00
Daniel Hillenbrand
2b1a9c44fa
grub: use uefi firmware workaround
...
Source: https://wiki.archlinux.org/index.php/GRUB#UEFI_firmware_workaround
2015-01-25 18:08:15 +01:00
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.)
2015-01-19 03:06:12 +01:00
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).
2015-01-19 02:57:29 +01:00
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.
2015-01-18 14:56:46 +01:00
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.
2015-01-11 08:53:23 -05:00
Teo Mrnjavac
220ea34aeb
Fix sgdisk call
2014-12-31 19:37:07 +01:00
Teo Mrnjavac
1f9e7b5ae9
Update main.py
2014-12-31 19:33:07 +01:00
Teo Mrnjavac
7638f80373
Use UUID in resume
2014-12-31 19:30:58 +01:00
Teo Mrnjavac
5742bbd074
Fix issue with partition selection preview not being updated.
2014-12-19 15:27:46 +01:00
Teo Mrnjavac
7cd382b39c
Use osProber output in ReplacePage.
...
CAL-155 #close
2014-12-19 15:25:31 +01:00
Teo Mrnjavac
f8f005f53c
Store osprober output in GlobalStorage.
2014-12-19 15:03:27 +01:00
Teo Mrnjavac
aa70a4b2dd
Improve messages in Replace page.
...
Fixes CAL-155
2014-12-19 14:10:40 +01:00
Teo Mrnjavac
c21f426dee
Don't rely on the activated signal in ReplacePage.
2014-12-19 13:53:05 +01:00
Teo Mrnjavac
a7b4c01ec0
GB -> GiB
2014-12-19 13:53:05 +01:00
Teo Mrnjavac
0da99d0866
Hook up ReplacePage in ChoicePage and PartitionViewStep.
2014-12-19 13:53:05 +01:00
Teo Mrnjavac
2f2ef73f20
Compile ReplacePage
2014-12-19 13:53:05 +01:00
Teo Mrnjavac
8f8e1ad6d4
New ReplacePage
2014-12-19 13:53:04 +01:00
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.
2014-12-09 19:21:52 +00:00
Teo Mrnjavac
eb748cca8e
Merge pull request #180 from calamares/displaymanager-cleanups
...
displaymanager: Various fixes and cleanups.
2014-12-06 10:07:54 +01:00
Kevin Kofler
75adfa03fc
locale: timezonewidget: Use the system default font.
...
Don't hardcode the Cantarell font.
2014-12-06 00:15:55 +01:00
Kevin Kofler
2955c0a5a8
displaymanager: Also look for display managers in /usr/sbin.
2014-12-05 22:20:54 +01:00
Kevin Kofler
9b75999706
keyboard: Preselect the current keyboard layout variant.
2014-12-05 02:25:08 +01:00
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).
2014-12-05 01:03:21 +01:00
Kevin Kofler
5209af0182
unpackfs: Fix error in list_excludes.
...
I accidentally removed the initialization of lst.
2014-12-05 00:27:59 +01:00
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.
2014-12-05 00:17:33 +01:00
Kevin Kofler
20e6cd4ab0
grub/test.yaml: Simulate bootloaderEntryName instead of shortProductName.
...
That is what grub/main.py now expects in the global storage.
2014-12-05 00:08:08 +01:00
Kevin Kofler
727db05fdf
grub: Use bootloaderEntryName instead of shortProductName.
...
Use bootloaderEntryName instead of shortProductName as the
--bootloader-id.
2014-12-04 23:08:27 +01:00
Teo Mrnjavac
3984bf0634
Merge pull request #156 from calamares/grub-efi-support-rfe-110
...
grub: Add EFI support (improved).
2014-12-02 14:24:41 +01:00
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.
2014-12-01 03:30:42 +01:00
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.
2014-12-01 03:25:44 +01:00
Kevin Kofler
a0bb108486
displaymanager: Fix the use of getent in the basic setup.
...
This also matches what the original shell script from Manjaro did.
2014-12-01 03:20:55 +01:00
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").
2014-12-01 03:14:33 +01:00
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.
2014-12-01 03:03:20 +01:00
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.
2014-12-01 03:01:39 +01:00
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).
2014-11-29 17:21:36 +01:00
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.
2014-11-29 17:14:17 +01:00
Kevin Kofler
2783f98615
displaymanager: Add my copyright to main.py.
...
I have already written a bunch of code in there.
2014-11-29 16:56:43 +01:00
Kevin Kofler
a525de8f11
displaymanager: Fix typos in displaymanager.conf.
2014-11-29 16:56:16 +01:00
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?
2014-11-29 05:07:40 +01:00
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.
2014-11-28 22:32:38 +01:00
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
2014-11-28 22:12:19 +01:00
Daniel Hillenbrand
722e87fd00
packages: add --noconfirm arg for pacman, also remove unneeded deps
2014-11-28 20:54:35 +01:00
Daniel Hillenbrand
22a9fd86df
localecfg: only restore locale.gen.bak if available
2014-11-28 20:05:54 +01:00
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.
2014-11-28 18:51:08 +01:00
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".
2014-11-28 18:40:49 +01:00
Manjaro Linux
9c799b32e9
Fix autologin-routine
...
default_desktop_environment.desktop_file needs to been passed actually.
2014-11-28 18:36:18 +01:00
Kevin Kofler
36488583f7
unpackfs: Add a trailing '/' to the excludes.
2014-11-28 18:33:31 +01:00
Kevin Kofler
f0203a072c
unpackfs: Automatically detect the exclude list from the mounts.
...
See issue #173 .
2014-11-28 18:29:57 +01:00
Manjaro Linux
6a70029198
Fix commit d5d74fbdcd
...
We need to pass default_desktop_environment if we won't use automatic desktop detection.
2014-11-28 18:27:16 +01:00
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 .
2014-11-28 18:03:58 +01:00
Teo Mrnjavac
6e98f63bf3
Merge pull request #171 from calamares/machineid-module
...
Add a machineid module.
2014-11-28 16:52:08 +01:00
Teo Mrnjavac
e85b2d164f
Hook up ClearMountsJob in PartitionCoreModule.
2014-11-28 15:52:18 +01:00
Teo Mrnjavac
1de7b55c3b
ClearMountsJob: umount all partitions before making changes to a device.
...
Fixes #169
2014-11-28 15:52:18 +01:00
Manjaro Linux
ddc7a6057d
Update displaymanager.conf
...
Add an example to force Plasma5 desktop (commented out)
2014-11-28 09:11:27 +01:00
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.
2014-11-28 09:06:33 +01:00
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
2014-11-28 08:23:46 +01:00
Kevin Kofler
587e76aa56
machineid: Add modules.desc.
2014-11-27 22:18:34 +01:00
Kevin Kofler
5f99d51f80
machineid: Add missing import.
2014-11-27 21:11:56 +01:00
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.
2014-11-27 21:08:50 +01:00
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.
2014-11-27 18:36:46 +01:00
Teo Mrnjavac
0c3f88077d
More debug output in CreatePartitionTableJob
2014-11-27 14:22:00 +01:00
Rohan Garg
ac5cecee19
Clean up unused packages after installation
...
Fixes #166 .
2014-11-27 11:03:12 +01:00
Teo Mrnjavac
5b864c5dc3
Make networkmanager service example optional.
2014-11-27 10:57:09 +01:00
Teo Mrnjavac
5bb7755925
Remove unnecessary debug output.
2014-11-26 19:10:17 +01:00
Teo Mrnjavac
52a1a28696
Fix focus handling in Keyboard page.
2014-11-26 18:56:09 +01:00
Teo Mrnjavac
5fdca37db5
Focus fix in Locale page.
2014-11-26 18:52:44 +01:00
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
Aurélien Gâteau
87367d5abd
fstab: Refactor to be able to add ssd-specific options
2014-08-04 16:31:45 +02:00
Aurélien Gâteau
d175d199eb
Rough chroot call failure check
2014-08-01 17:26:18 +02:00
Teo Mrnjavac
271b0945c9
Create jobs in locale viewmodule.
2014-08-01 16:29:19 +02:00
Teo Mrnjavac
34c5ac3182
Add SetTimezoneJob to locale viewmodule.
2014-08-01 16:28:29 +02:00
Teo Mrnjavac
a311770e2f
Use libcalamares.utils.chroot_call in grub jobmodule.
2014-08-01 13:37:28 +02:00
Teo Mrnjavac
cc2e49c6ae
Store keyboard layout information in GlobalStorage.
2014-08-01 12:42:34 +02:00
Aurélien Gâteau
7680578b61
Simplify unsquash code
...
- Merged UnpackEntry and UnpackStatusEntry. Created a entry_for_source dict.
- Removed dead code (update_copy_progress)
2014-08-01 11:59:44 +02:00
Aurélien Gâteau
edc70c596b
unsquashfs: Fix installation dir
2014-08-01 11:46:29 +02:00
Teo Mrnjavac
57ee5ac26b
Add autologinUser to GlobalStorage.
2014-08-01 11:20:20 +02:00
Aurélien Gâteau
a75b1809d8
Do not make dummypython fail
2014-08-01 09:59:23 +02:00
Teo Mrnjavac
b111027d57
Add SetPasswordJob in Users module, hook it all up.
2014-07-31 19:06:31 +02:00
Teo Mrnjavac
8e3002bfbb
Add FindCrypt in the users module.
2014-07-31 19:02:50 +02:00
Teo Mrnjavac
46f5dab7fd
CreateUserJob for Users viewmodule
2014-07-31 14:53:46 +02:00
Teo Mrnjavac
fb32432548
UI for users viewmodule.
2014-07-31 14:52:40 +02:00
Aurélien Gâteau
c655c99f67
Hide disk which contains /
...
Fixes #75
2014-07-30 23:21:06 +02:00
Aurélien Gâteau
9708669ac7
Use libcalamares.utils.mount
2014-07-30 15:37:34 +02:00
Aurélien Gâteau
0946789f9e
Move mounting of special partitions from grub to mount
2014-07-30 15:37:11 +02:00
Aurélien Gâteau
8867f6bc67
Fix progress reporting
2014-07-30 15:35:51 +02:00
Aurélien Gâteau
f371ffa696
Iterate on values, not on keys
2014-07-30 15:13:34 +02:00
Aurélien Gâteau
7a0fb52c83
Damn, forgot named tuples cannot be updated. Use a class instead
2014-07-30 15:10:23 +02:00
Aurélien Gâteau
9c27add968
Use os.path.join
2014-07-30 15:06:59 +02:00
Aurélien Gâteau
22299dc585
No need for UnpackEntry.source_dir
2014-07-30 15:06:39 +02:00
Aurélien Gâteau
638a5c021c
More precise error handling
2014-07-30 15:05:44 +02:00
Aurélien Gâteau
adda405f83
Do not use os.path.join with entry["destination"]
...
if it starts with a "/" then `destination` will be equal to entry["destination"]
2014-07-30 15:05:19 +02:00
Aurélien Gâteau
ecb16dcdca
Fix line counting
2014-07-30 15:03:55 +02:00
Aurélien Gâteau
47762d3812
No more need for sourceMountPath
2014-07-30 15:02:55 +02:00
Aurélien Gâteau
75a5bdac60
Fix fuzzy edges around keys (and a warning)
2014-07-30 14:17:14 +02:00
Aurélien Gâteau
03c5a38b90
Show a summary of the partition changes on the summary page
2014-07-30 14:17:14 +02:00
Teo Mrnjavac
122a6036d5
globalStorage ==> globalstorage fix
2014-07-30 12:41:34 +02:00
Teo Mrnjavac
2232c49471
Make dummypython work with current API.
2014-07-30 12:40:09 +02:00
Teo Mrnjavac
0d3a3a0b78
Fix dummypython for recent API change.
2014-07-29 20:21:40 +02:00
Aurélien Gâteau
e3a333e6e6
Prettier PartitionPreview
2014-07-29 16:01:45 +02:00
Aurélien Gâteau
fe9e52ee0e
PartitionModel: Add IsFreeSpaceRole
2014-07-29 16:01:45 +02:00
Aurélien Gâteau
0ea6f1698b
First version of PartitionPreview
2014-07-29 16:01:45 +02:00
Aurélien Gâteau
93cb9fd426
New role for PartitionModel: SizeRole
2014-07-29 16:01:45 +02:00
Aurélien Gâteau
5fc07aad7c
Expose colors for Qt::DecorationRole
2014-07-29 16:01:45 +02:00
Aurélien Gâteau
5c1336f2d5
Turn PartitionModel into a tree model
...
Fixes #12
2014-07-29 16:01:45 +02:00
Aurélien Gâteau
e3a52745fc
Fix assert failure when recreating partition table
2014-07-29 16:01:45 +02:00
Teo Mrnjavac
4b1975d3e2
PEPify unsquashfs
2014-07-29 15:10:18 +02:00
Teo Mrnjavac
2b097e7f3c
PEPify umount
2014-07-29 14:53:07 +02:00
Teo Mrnjavac
2ba96d3b6b
PEPify mount
2014-07-29 14:45:58 +02:00
Teo Mrnjavac
585dd20a34
Update README.md
2014-07-29 14:40:56 +02:00
Teo Mrnjavac
1c984c7bf9
PEPify grub
2014-07-29 14:34:30 +02:00
Teo Mrnjavac
98b62808de
PEPify fstab
2014-07-29 14:26:19 +02:00
Teo Mrnjavac
906560ffee
PEPify dummypython
2014-07-29 14:06:58 +02:00
Teo Mrnjavac
637242776c
PEPify testmodule.py
2014-07-29 13:52:55 +02:00
Teo Mrnjavac
b988c3ad72
PEPify API fakes in testmodule.py
2014-07-29 13:17:15 +02:00
Teo Mrnjavac
5369038ed6
Add debug test to dummypython
2014-07-28 18:56:00 +02:00
Teo Mrnjavac
cb53cc41cb
Remove __init__.py from unsquashfs
2014-07-28 18:04:34 +02:00
Teo Mrnjavac
422e78236b
Make fileCopy in unsquashfs a single function
2014-07-28 17:57:53 +02:00
Teo Mrnjavac
b48a66a2e5
Improve readability.
2014-07-28 17:51:35 +02:00
Teo Mrnjavac
e937782a4e
Fix some lousy error handling
2014-07-28 17:46:56 +02:00
Teo Mrnjavac
4fc2efb7fa
Correctly report exit status from Python modules.
2014-07-28 17:40:57 +02:00
Teo Mrnjavac
25d37b57dd
Use named tuples in unsquashfs.
2014-07-28 17:40:57 +02:00
Teo Mrnjavac
1b4e56e97e
Better call to rsync in unsquashfs.
2014-07-28 17:40:57 +02:00
Teo Mrnjavac
c42d021b61
Unthreadify FileCopy in unsquashfs.
2014-07-28 17:40:57 +02:00
Teo Mrnjavac
f44b8eb758
Count the files in the squashfs image without piping to wc -l.
2014-07-28 17:40:57 +02:00
Teo Mrnjavac
cb2dcf7860
Use temp dir for mounting squashfs image.
2014-07-28 17:40:57 +02:00
Teo Mrnjavac
60dda7db49
Begin unsquashfs module, port copy operation from Thus.
2014-07-28 17:40:57 +02:00
Aurélien Gâteau
64f8748c49
Spaces fixes
2014-07-28 15:00:30 +02:00
Aurélien Gâteau
0b01c76687
Coding style
2014-07-28 15:00:17 +02:00
Aurélien Gâteau
9e8c02fa33
Basic fstab module
...
Misses the 'options' finetunes
Bug #66
2014-07-28 14:59:22 +02:00
Aurélien Gâteau
2d9142487b
FillGlobalStorageJob: Add the partition UUID to global storage
2014-07-28 14:58:06 +02:00
Aurélien Gâteau
62d706543b
Do not let the user pick a partition type when creating a partition of a GPT disk
...
Fixes #27
2014-07-28 11:45:13 +02:00
Teo Mrnjavac
beafcd9cc4
Consistency: calamares_main ==> run; global_storage => globalStorage
2014-07-25 16:46:12 +02:00
Aurélien Gâteau
fb6d80ccb6
Bring back tree view headers
2014-07-25 13:13:04 +02:00
Aurélien Gâteau
bf72672cce
Make double-clicking on a partition item in the list trigger edit/create
2014-07-25 13:07:22 +02:00
Aurélien Gâteau
cd99f64344
Add mnemonics to UI elements
2014-07-25 12:46:20 +02:00
Aurélien Gâteau
c3a91f1c8d
Implement Revert
...
Fixes #14
2014-07-24 19:28:53 +02:00
Aurélien Gâteau
675b07799b
Dead code--
2014-07-24 19:26:57 +02:00
Aurélien Gâteau
d476f9cba8
Make sure we show info of the first device in the device combo box
2014-07-24 19:26:19 +02:00
Aurélien Gâteau
cb546d02f9
Sort device in DeviceModel by device node
2014-07-24 19:24:40 +02:00
Aurélien Gâteau
20521f278c
Update doc
2014-07-24 17:51:51 +02:00
Aurélien Gâteau
0f23b8ad5c
Add basic grub module. Not enabled for now because it requires a rootfs to work
...
Fixes #26
2014-07-24 17:17:40 +02:00
Aurélien Gâteau
545eef5761
Refactor mount module to make its code easier to reuse
2014-07-24 17:14:56 +02:00
Aurélien Gâteau
96ede98f27
Update partitionmanager submodule: fix cmake warning
2014-07-24 14:00:56 +02:00
Aurélien Gâteau
92114576ce
Create umount module
2014-07-24 13:51:14 +02:00
Aurélien Gâteau
aef2b7e9e7
We can now test mount with testmodule.py: remove the test main()
2014-07-24 10:17:46 +02:00
Aurélien Gâteau
35d2a10177
Remove \t tab to avoid failure in testmodule.py
2014-07-24 10:16:51 +02:00
Aurélien Gâteau
e1877adf9c
Make testmodule.py more Pythonic
2014-07-24 10:15:16 +02:00
Aurélien Gâteau
f2ab67b28b
Create bootLoader.installPath in GlobalStorage
2014-07-23 18:16:55 +02:00
Aurélien Gâteau
06a13637b6
Store current boot loader install path in PartitionCoreModule
2014-07-23 18:15:46 +02:00
Aurélien Gâteau
ab4604258c
Rework boot loader combo box
...
List MBR of all devices
Does not loose its selection when updated
2014-07-23 18:14:27 +02:00
Aurélien Gâteau
c9c1917997
log--
2014-07-23 15:05:01 +02:00
Aurélien Gâteau
a39384eda7
Simplify
2014-07-23 15:04:40 +02:00
Aurélien Gâteau
484d7c4d15
Update partition path after partition has been created
...
Fixes #56
2014-07-23 14:34:06 +02:00
Teo Mrnjavac
da83ecfb13
libcalamares.job is of type libcalamares.Job
2014-07-23 13:02:42 +02:00
Teo Mrnjavac
ef28b7f2c1
Add job.setprogress to testmodule.py.
2014-07-23 13:01:30 +02:00
Aurélien Gâteau
89fd6a950b
Add support for per-job progress
2014-07-23 12:04:27 +02:00
Aurélien Gâteau
e9da5cb6cb
Change signature of JobQueue::progress, add finished() signal
...
Now uses a qreal for progress instead of current and total
Also added a finished() signal because determining whether the queue is
finished should not be done by comparing a qreal with 1.0 as this is not
precise.
2014-07-23 10:58:08 +02:00
Aurélien Gâteau
0234415976
Add "mount" module
2014-07-22 17:38:36 +02:00
Aurélien Gâteau
c8129898fc
Introduce FillGlobalStorageJob
2014-07-22 17:38:36 +02:00
Aurélien Gâteau
7763587c01
Move PartitionIterator to its own file
2014-07-22 17:38:36 +02:00
Teo Mrnjavac
533cba6437
[testmodule.py] File with fake global_storage contents for testing.
2014-07-22 14:22:15 +02:00
Teo Mrnjavac
4881684e18
[testmodule.py] Simulate global storage contents from a YAML file.
2014-07-22 14:22:15 +02:00
Aurélien Gâteau
1b64917385
Use findPartitionByMountPoint in updateHasRootMountPoint
2014-07-22 10:50:16 +02:00
Aurélien Gâteau
a335c1cc04
Coding style fixes
2014-07-22 10:50:16 +02:00
Aurélien Gâteau
906019facc
Add combo box to pick boot loader installation destination
2014-07-22 10:50:16 +02:00
Aurélien Gâteau
3e3329d4f2
Rework PartitionPage appearance, prior addition of boot loader UI
2014-07-22 10:50:16 +02:00
Teo Mrnjavac
81eca92418
Added testmodule.py script to test Python modules.
2014-07-21 18:34:17 +02:00
Teo Mrnjavac
73f03017fd
Spaces, not tabs.
2014-07-21 18:32:10 +02:00
Aurélien Gâteau
4c88603872
Fix bug with tiny disks and mbr partition tables
2014-07-18 18:37:44 +02:00
Aurélien Gâteau
26f6943f8a
Add support for formatting existing partitions
...
closes #24
2014-07-18 15:49:27 +02:00
Aurélien Gâteau
a5fcb9bcb9
Improve CreatePartitionJob::prettyName
2014-07-18 15:49:27 +02:00
Aurélien Gâteau
d374d8bad8
Introduce PartitionJob
2014-07-18 15:49:27 +02:00
Teo Mrnjavac
4516213b0b
Add some dummy configuration to dummypython, and then show it.
2014-07-18 14:36:30 +02:00
Aurélien Gâteau
568f2abd0b
Reproduce and fix bug #28
2014-07-18 12:26:12 +02:00
Aurélien Gâteau
99fe98a9cf
Unbreak test. Unfortunately it did not reproduce bug #28
2014-07-18 12:11:42 +02:00
Aurélien Gâteau
7e8c5a980c
Make Runner::run() returns a bool indicating success or failure
2014-07-18 11:27:03 +02:00
Aurélien Gâteau
eebc71257f
Nicer error messages
2014-07-18 11:20:13 +02:00
Aurélien Gâteau
26d0b52342
Unbreak build
2014-07-18 11:20:13 +02:00
Aurélien Gâteau
6f65a4b16c
Add a (failing for now) test for extended partitions
...
This reproduces bug #28
2014-07-18 10:51:54 +02:00
Aurélien Gâteau
43f29b8058
Start working on tests for partition jobs
2014-07-18 10:51:54 +02:00
Teo Mrnjavac
a61a36d99d
We have a Python API for jobmodules!
...
Created a Boost.Python module interface in libcalamares.
Added a PythonJob wrapper and exposed it in the Python module.
Rename target calamareslib ==> calamares so in Python it's libcalamares.
Python-related classes in libcalamares that aren't exported as C++
symbols are now in a CalamaresPrivate namespace.
Import the libcalamares python module into every Python script before
running it.
Added Python error handling to PythonJobHelper.
Added some more testing code to dummypython module.
2014-07-17 19:42:16 +02:00
Aurélien Gâteau
9c89e68672
Get rid of partview, it's no longer useful
2014-07-17 16:09:06 +02:00
Aurélien Gâteau
0d915b4995
Always delete logical partitions first when deleting an extended partition
2014-07-17 15:01:45 +02:00
Aurélien Gâteau
d7a853ee06
Scaffolding for exiting partition reformating
2014-07-17 14:59:59 +02:00
Aurélien Gâteau
4e49f59333
Turn PartitionCoreModule::refreshPartitionModel() into refresh() and make it public
2014-07-17 14:57:16 +02:00
Aurélien Gâteau
5c594f8dd7
Fix doc
2014-07-17 14:57:16 +02:00
Aurélien Gâteau
8a64dcb270
Coding style fixes
2014-07-17 14:57:16 +02:00
Aurélien Gâteau
ec6703b9cd
Start creating EditExistingPartitionDialog
2014-07-17 14:57:16 +02:00
Aurélien Gâteau
5daa1b82e8
Refactor: PartitionInfo is no longer a class
2014-07-17 14:57:16 +02:00
Aurélien Gâteau
ff5667cb73
Turn all extra PartitionInfo fields into QObject properties of Partition
2014-07-17 14:57:16 +02:00
Aurélien Gâteau
9b57b98a93
No point doing this: editing extended partitions is not supported for now
2014-07-17 09:50:07 +02:00
Teo Mrnjavac
846812f49b
Update README.md
2014-07-16 17:11:25 +02:00
Teo Mrnjavac
32beec0243
Update README.md
2014-07-16 17:08:05 +02:00
Teo Mrnjavac
2f628cd1d4
Add dummy python jobmodule.
2014-07-16 16:10:49 +02:00
Teo Mrnjavac
4712af05a0
Fix build in PartitionCoreModule.
2014-07-16 15:55:49 +02:00
Teo Mrnjavac
f2ed18ad4c
Alignment fix.
2014-07-16 15:53:43 +02:00
Aurélien Gâteau
8a7e6c9348
More readable job queue
2014-07-16 11:15:22 +02:00
Aurélien Gâteau
3fa3694f90
Fix crash when trying to delete an extended partition
2014-07-16 11:14:55 +02:00
Aurélien Gâteau
568dc4db0a
Init all fields when editing a partition. Disable editing of extended partitions for now.
2014-07-16 10:59:24 +02:00
Aurélien Gâteau
d500c7b480
Coding style fixes
2014-07-16 10:36:17 +02:00
Aurélien Gâteau
27b28a5bd1
Avoid potential rounding errors
2014-07-16 10:35:09 +02:00
Aurélien Gâteau
45dda6fa17
Factorize size computations
2014-07-16 10:34:56 +02:00
Aurélien Gâteau
a70ab4ad60
Refactor: move sector math from PartitionPage to CreatePartitionDialog
2014-07-16 10:15:57 +02:00
Aurélien Gâteau
7c1ecabd68
Drop now unused IsNewPartitionRole
2014-07-16 10:02:53 +02:00
Aurélien Gâteau
9216982859
Allow editing of partition mount points
2014-07-16 10:02:41 +02:00
Aurélien Gâteau
48c078acc5
Start implementing editing of newly-created partitions
...
This is the beginning of #19
2014-07-15 17:37:04 +02:00
Aurélien Gâteau
174114f09c
Add IsNewPartition role
2014-07-15 17:33:16 +02:00
Aurélien Gâteau
fa30fe147f
Add PMUtils::isPartitionNew()
2014-07-15 17:32:55 +02:00
Aurélien Gâteau
091c3c2757
Make CreatePartitionDialog.ui easier to read in Designer
2014-07-15 15:31:45 +02:00
Aurélien Gâteau
c30ed3c9c1
Let the user recreate the partition table (mbr or gpt)
...
Closes #20
2014-07-15 14:40:08 +02:00
Aurélien Gâteau
7096213206
Move partitionmanager code to src/modules/partition
2014-07-15 11:54:09 +02:00
Aurélien Gâteau
cbcd821943
Coding style fixes
2014-07-15 11:38:46 +02:00
Teo Mrnjavac
e3741c4d26
Make the locale viewmodule load the initial timezone from config.
2014-07-15 11:35:05 +02:00
Teo Mrnjavac
0a8aa66d58
Set initial timezone for the locale viewmodule in module.conf.
2014-07-15 11:34:36 +02:00
Teo Mrnjavac
c57d99a21c
Add CalamaresAddModuleSubdirectory, a CMake function for modules that
...
do not require building through a CMakeLists.txt.
2014-07-14 16:26:10 +02:00
Teo Mrnjavac
25f44492e9
Add dummy process job module.
2014-07-14 16:25:13 +02:00
Aurélien Gâteau
7ac6588090
Forget pending changes when the partition table is recreated
2014-07-11 17:09:11 +02:00
Aurélien Gâteau
f0dffb7400
Refactor: Introduce PartitionInfoProvider interface, and make DeviceInfo implement it
2014-07-11 17:09:11 +02:00
Aurélien Gâteau
61b17490eb
Refactor: group jobs and partitionModel for a device in a DeviceInfo struct
...
Makes it easier to clear all jobs for a specific device, which is necessary
when replacing a device partition table
2014-07-11 17:09:11 +02:00
Aurélien Gâteau
83a56a6bd3
Add the ability to (re)create partition tables
2014-07-10 19:55:16 +02:00
Aurélien Gâteau
5d6a80deae
Factorize management of m_hasRootMountPoint
2014-07-10 19:01:55 +02:00
Aurélien Gâteau
8d3f197fde
Clean up
2014-07-10 18:55:19 +02:00
Aurélien Gâteau
c11fc3a4d2
Do not crash if a device does not have a partition table
2014-07-10 18:27:51 +02:00
Aurélien Gâteau
8d01b9a6fd
assert--
2014-07-10 15:14:06 +02:00
Aurélien Gâteau
e792f4c9c5
Implement DeletePartitionJob::exec()
...
Closes #11
2014-07-10 15:07:02 +02:00
Aurélien Gâteau
7566221eff
Nicer error messages on failure
2014-07-10 14:47:06 +02:00
Teo Mrnjavac
dbadbf69ec
Const correctness.
2014-07-10 12:06:23 +02:00
Aurélien Gâteau
6881fdab6e
JobResult
2014-07-09 15:50:27 +02:00
Aurélien Gâteau
d984489eea
Implement CreatePartitionJob
2014-07-09 15:47:34 +02:00
Aurélien Gâteau
191f37f5fa
Fake CreatePartitionJob::exec() implementation
2014-07-08 19:21:55 +02:00
Teo Mrnjavac
f1ba2e1270
Add prettyStatus to Locale module.
2014-07-08 18:28:28 +02:00
Teo Mrnjavac
e622fe4f99
Add prettyStatus to Keyboard module.
2014-07-08 18:28:28 +02:00
Teo Mrnjavac
c339ac8cfc
Add status info to Summary page. Still needs work to make it nice.
...
Also added onActivate/onLeave to ViewStep and ViewManager.
2014-07-08 18:28:27 +02:00
Teo Mrnjavac
49b91608e3
Stub for Summary viewmodule.
2014-07-08 18:28:27 +02:00
Aurélien Gâteau
2f774e6c46
Implement PartitionViewStep::jobs()
2014-07-08 15:46:48 +02:00
Teo Mrnjavac
b98c071f94
Prepare for late enqueuing of jobs to the JobQueue.
2014-07-08 14:03:06 +02:00
Aurélien Gâteau
023ed99aca
Coding style
2014-07-08 14:04:57 +02:00
Aurélien Gâteau
36b3de7107
Enable/disable Next button based on whether we have a root mount point
2014-07-08 14:04:57 +02:00
demmm
c3d40b9428
add ECM to CMakeLists,
...
remove obsolete CONFIG
2014-07-05 17:28:13 -04:00
Aurélien Gâteau
15c5142d09
Redo partition type UI and enable/disable mount point UI when appropriate
2014-07-04 18:34:01 +02:00
Aurélien Gâteau
f27ff4c717
We want to format partitions we create
2014-07-04 18:34:01 +02:00
Aurélien Gâteau
467d89f56f
Remove PartitionInfo if we remove a Partition
2014-07-04 18:34:01 +02:00
Aurélien Gâteau
3ed5704818
Refactor: Move creation of CreatePartitionJob to PartitionCoreModule
2014-07-04 18:34:01 +02:00
Aurélien Gâteau
d54dfcfb78
Get rid of DeviceInfo
2014-07-04 18:34:01 +02:00
Aurélien Gâteau
f3f9bfc2a3
Introduce PartitionInfo, to store Calamares-specifc info for a partition
2014-07-04 18:34:01 +02:00
Aurélien Gâteau
1247077ccc
Pass mount point to CreatePartitionJob
2014-07-04 18:34:01 +02:00
Aurélien Gâteau
ab4e81504e
wip mount point
2014-07-04 18:34:01 +02:00
Aurélien Gâteau
a62f3daf25
Adjust logical numbers
2014-07-04 18:34:01 +02:00
Teo Mrnjavac
7a99214ddb
New keyboard viewmodule, based on the one from Manjaro's minst.
2014-07-04 15:33:59 +02:00
Teo Mrnjavac
ee485f9735
Remove keyboard related functionality from the locale viewmodule.
2014-07-04 15:31:12 +02:00
Teo Mrnjavac
e2e66e3cf7
Do not repeat repeat link libraries.
2014-07-03 18:07:02 +02:00
Teo Mrnjavac
4ec72f4afb
Refactored calamares_bin into calamares_bin and libcalamaresui.
...
Now linking with -Wl,--no-undefined!
Moved find_package KF5 from the root CMakeLists.txt to the partitioning
module where it belongs. KF5 deps should be limited to plugins.
Lots of random fixage to make stuff link.
Removed CalamaresApplication reference from Settings.
Removed the use of AbstractPage, we don't need it right now.
2014-07-03 18:00:40 +02:00
Teo Mrnjavac
1efb4f1101
Added spinner widget to the loading timezone data view.
2014-07-03 15:38:55 +02:00
Teo Mrnjavac
81eafced2f
Don't allow to go next if the timezone view hasn't loaded.
2014-07-03 13:19:32 +02:00
Teo Mrnjavac
f9aa532d77
Load timezone data asynchronously so we don't block the GUI thread on
...
startup.
2014-07-03 13:13:38 +02:00
Teo Mrnjavac
4cf6c06dda
Useless linkage is useless.
2014-07-03 13:13:06 +02:00
Teo Mrnjavac
87b009cc23
Layout fixes for LocalePage + default location.
2014-07-02 18:12:53 +02:00
Teo Mrnjavac
1ac10b40e6
Initial commit for the locale viewmodule.
2014-07-02 18:12:53 +02:00
Aurélien Gâteau
3a58e2640f
Show partition elements in separate column
2014-07-02 18:04:53 +02:00
Aurélien Gâteau
0446bb1079
More readable partition sizes
2014-07-02 18:04:53 +02:00
Aurélien Gâteau
a318ec49fc
Enqueue all partition jobs when leaving the PartitionViewStep
2014-07-02 16:06:54 +02:00
Aurélien Gâteau
4916d0cb88
crash--
2014-07-02 16:03:52 +02:00
Aurélien Gâteau
6f3ec0170e
Argh, forgot to commit those files
2014-07-02 15:59:34 +02:00
Aurélien Gâteau
d013e663b8
Implement partition removal
2014-07-02 15:49:35 +02:00
Aurélien Gâteau
f9ca45face
Mark the partition we create as "StateNew"
...
This way if user wants to remove it later we can remove the creation job
instead of queueing a delete job
2014-07-02 15:48:47 +02:00
Aurélien Gâteau
724780fb23
Coding style fixes
2014-07-02 14:12:56 +02:00
Teo Mrnjavac
20beae8f52
Minor nitpick in module.conf
2014-07-02 11:47:48 +02:00
Teo Mrnjavac
80789b6143
Added ProgressTreeModel/View, including different kinds of items.
...
Redone CalamaresWindow without UI file.
Const correctness in ViewStep and plugins.
2014-07-01 17:52:04 +02:00
Aurélien Gâteau
1421a04dd2
Support creation of extended partitions
2014-07-01 17:33:53 +02:00
Aurélien Gâteau
e3c6869fbd
Let CreatePartitionDialog create the Partition object
2014-07-01 17:09:39 +02:00
Aurélien Gâteau
90d26bfd31
Safer dialog handling
2014-07-01 16:46:33 +02:00
Aurélien Gâteau
5eafb9538e
Crude way to distinguish extended from primary partitions + show partition size
2014-07-01 16:29:26 +02:00
Aurélien Gâteau
cdfb890e17
Better way to detect free space
2014-07-01 16:29:00 +02:00
Aurélien Gâteau
5dc5b4ddc8
Add missing file
2014-07-01 10:58:54 +02:00
Aurélien Gâteau
b060f66456
Introduce CreatePartitionDialog and CreatePartitionJob
2014-06-30 18:08:13 +02:00
Aurélien Gâteau
c9409ba6b2
Start implementing support for creating partitions
2014-06-30 16:17:59 +02:00
Aurélien Gâteau
3a59cdeda9
Detect free space using the FS type
2014-06-30 16:17:59 +02:00
Aurélien Gâteau
c254fe0b2a
Enable/disable partition buttons
2014-06-30 16:17:59 +02:00
Aurélien Gâteau
2000553a10
PartitionModel: Add getter for Partition
2014-06-30 16:17:59 +02:00
Aurélien Gâteau
4429a8fd63
Introduce PMUtils
2014-06-30 16:17:59 +02:00
Aurélien Gâteau
6d0b3218f1
Move PartitionModel management from DeviceModel to PartitionCoreModule
2014-06-30 16:17:59 +02:00
Aurélien Gâteau
578f2e4baa
Instantiate DeviceModel in PartitionCoreModule
2014-06-30 16:17:59 +02:00
Aurélien Gâteau
4d2354fb56
Introduce PartitionCoreModule
...
Owner of the Qt models and PM devices
2014-06-30 16:17:59 +02:00
Aurélien Gâteau
730c3902bf
PartitionViewPlugin => PartitionViewStep
2014-06-30 13:24:59 +02:00
Aurélien Gâteau
8f474fa08f
Persistent partition model
...
This will make it possible to update the partition list on changes,
regardless of the actual device state
2014-06-30 13:15:20 +02:00
Teo Mrnjavac
c7d62300a0
Make the partition viewmodule compile with the new ViewStep interface.
2014-06-27 18:14:39 +02:00
Teo Mrnjavac
20d5a37fef
Major ViewStep additions and changes.
...
Renamed ViewPlugin to ViewStep.
Back/Next button status management.
Subpages are now under a ViewStep's jurisdiction, we only forward back/
next signals if a ViewStep says it's got more pages to show. ViewStep
exposes a QWidget* to ViewManager, this QWidget gets added to a stack.
If a ViewStep wishes to show more than one page, it must manage more
pages on its own inside its single QWidget*.
2014-06-27 18:04:53 +02:00
Aurélien Gâteau
1d0dfa5215
Clean up
2014-06-27 17:42:15 +02:00
Aurélien Gâteau
344d7ac610
Better use QItemSelectionModel to detect selection changes
2014-06-27 17:42:13 +02:00
Aurélien Gâteau
6b164a9dcf
Wrap PartitionPage building in WITH_PARTITIONMANAGER
2014-06-27 17:41:55 +02:00
Aurélien Gâteau
8d6b7672bc
Start PartitionPage
2014-06-27 17:26:31 +02:00
Teo Mrnjavac
5f883556e1
Don't use QPluginLoader's JSON metadata thing, we already have our own.
2014-06-27 15:55:24 +02:00
Teo Mrnjavac
f4b1cacc03
Prefer nullptr over 0 for null pointers.
2014-06-27 15:55:24 +02:00
Teo Mrnjavac
23e91ee475
Lots of changes. Module search+load system is now working.
...
Moved module-related classes to src/calamares/modulesystem.
Fixes to startup code path.
Made ViewPlugins load into ViewManager.
Debug code: ViewManager currently only shows a plugin's prettyName.
Added ViewModule as a subclass of Module. Other kinds of plugins should
be supported in a similar way.
2014-06-27 14:12:10 +02:00
Teo Mrnjavac
392c8ec108
PagePlugin ==> ViewPlugin
2014-06-24 12:41:58 +02:00
Teo Mrnjavac
2693f493c9
Added load entry to plugin config.
2014-06-24 12:41:26 +02:00
Teo Mrnjavac
125b7914d5
Added module metadata file to CalamaresAddPlugin macro.
...
Also improved output.
2014-06-23 17:14:55 +02:00
Teo Mrnjavac
13fcf387c7
A bunch of work on loading plugins.
...
Also switched to C++11.
2014-06-18 18:05:04 +02:00
Teo Mrnjavac
6899b1f0fa
Added CMake magic for plugin infrastructure.
...
Added ViewManager.
Added dummy Settings class.
Added dummy plugin interface (UI plugins only).
Added dummy greeting plugin.
Added DLLEXPORT macros for UI plugin interface and plugins.
2014-06-11 13:39:20 +02:00