Commit Graph

577 Commits

Author SHA1 Message Date
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
249a28910a Make it possible to update message and details fields of a JobResult 2014-08-05 17:37:24 +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
Teo Mrnjavac
84ec430729 Add some Python API docs. 2014-08-05 13:23:04 +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
Teo Mrnjavac
01efeda801 Utils, not util. 2014-08-04 17:06:16 +02:00
Teo Mrnjavac
c964093d7c Make libcalamares a proper package and utils a proper submodule. 2014-08-04 17:05:00 +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
Teo Mrnjavac
c64e229142 By default, chrootCall should never time out. 2014-08-04 16:23:12 +02:00
Teo Mrnjavac
45ac91c784 Add check_chroot_call to libcalamares Python interface. 2014-08-04 16:06:29 +02:00
Aurélien Gâteau
26e5500e33 chrootCall: Log messages on failure, as well as command outputs 2014-08-01 17:26:18 +02:00
Aurélien Gâteau
6376e1daef Start the process before calling waitForStarted() 2014-08-01 17:26:18 +02:00
Aurélien Gâteau
70a13fc588 Make logging more useful
- Do not log progress percent but log job names.
- Log install failures.
2014-08-01 17:26:18 +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
Aurélien Gâteau
45101d15b0 Store log in ~/.cache by default 2014-08-01 11:36:22 +02:00
Teo Mrnjavac
57ee5ac26b Add autologinUser to GlobalStorage. 2014-08-01 11:20:20 +02:00
Aurélien Gâteau
1b695b7355 Fix crash when logging at exit time 2014-08-01 10:56:30 +02:00
Aurélien Gâteau
5126458040 Disable "Next" button if isNextEnabled() of first step returns false 2014-08-01 10:29:41 +02:00