Andrius Štikonas
76934a0cba
Add forgotten luks2 files.
2017-12-15 19:35:30 +00:00
Andrius Štikonas
3a691edb4a
Do not install copy source/target device headers.
2017-12-15 19:33:11 +00:00
Andrius Štikonas
7aa77f489d
Add FileSystem::Luks2 child class.
2017-12-14 02:08:32 +00:00
Andrius Štikonas
8c030baf3e
Switch file system detection code to udevadm.
2017-12-14 01:14:45 +00:00
Andrius Štikonas
3f562ab0f0
Allow reading LUKS label.
2017-12-13 00:07:55 +00:00
Andrius Štikonas
fdf6e19de0
Remove another workaround which hopefully is no longer necessary.
2017-12-10 19:56:04 +00:00
Andrius Štikonas
8264c87ab8
Cleanup unnecessary includes.
2017-12-10 18:44:54 +00:00
Andrius Štikonas
27462bcddb
Remove workaround to access user dbus session as root.
2017-12-10 18:09:03 +00:00
Andrius Štikonas
4cc07d2366
Adapt ntfs updateBootSector changes to kauth branch.
2017-12-10 17:37:10 +00:00
Andrius Štikonas
192305c1d5
Close write channel after writing to QProcess.
2017-12-10 17:36:39 +00:00
Andrius Štikonas
906a89c16d
Use ExternalCommand to copy fstab file to its final location.
2017-12-10 17:36:39 +00:00
Andrius Štikonas
d2f13ff4cc
QFile->QTemporaryFile.
2017-12-10 17:36:39 +00:00
Andrius Štikonas
47429dd1bf
Proof of concept attempt to implement KAuth.
2017-12-10 17:36:39 +00:00
Andrius Štikonas
e7b0192630
Merge branch 'master' into sfdisk
2017-12-10 17:35:35 +00:00
Andrius Štikonas
e49a266922
ntfs: update backup boot sector too
...
When moving NTFS partition to a new location we need to update its boot sector
as well as backup boot sector. Otherwise ntfslabel --new-serial won't work.
2017-12-10 17:34:07 +00:00
Andrius Štikonas
def62c975d
Replace ntfs with ntfs-3g in lsblk file system detection code.
2017-12-09 23:31:31 +00:00
Andrius Štikonas
c3827b0c60
Call kpartx to reread partition table.
2017-12-09 23:29:18 +00:00
Andrius Štikonas
e3d01cf25f
Do not attempt to set empty partition type.
2017-12-09 19:19:36 +00:00
Andrius Štikonas
cd33592501
Bump soversion in sfdisk branch.
2017-12-07 23:25:50 +00:00
Andrius Štikonas
4c2efe8c52
Add partition type map.
2017-12-07 23:24:03 +00:00
Andrius Štikonas
55b8cd3e6b
sfdisk: store a pointer to the device in SfdiskPartitionTable class.
2017-12-07 20:50:54 +00:00
Andrius Štikonas
45f4e6525d
Bump version to 3.3.0
2017-12-07 14:33:03 +00:00
Andrius Štikonas
41473119b1
backend: provide more information about backend device.
...
Pass Device object, not just deviceNode string when opening Core Backend Device
2017-12-06 21:33:31 +00:00
Andrius Štikonas
0bfb7094df
Merge branch 'master' into sfdisk
2017-12-06 00:41:19 +00:00
Andrius Štikonas
e66fb4b95e
Do not attempt to set partition flags that were not changed.
2017-12-06 00:27:02 +00:00
Andrius Štikonas
d27455b6f0
Avoid unnecessary QString encoding/decoding.
...
CCBUG: 384321
2017-12-04 21:19:11 +00:00
Andrius Štikonas
8afe33a4a4
Allow setting label for inner LUKS file system during the initial creation.
2017-12-03 16:28:16 +00:00
Andrius Štikonas
f09cb6435e
Fix conversion to/from QByteArray in sfdisk backend.
...
CCBUG: 384321
2017-12-03 12:40:57 +00:00
Andrius Štikonas
6996687123
Merge branch 'master' into sfdisk
2017-12-03 12:38:43 +00:00
Andrius Štikonas
4bf5bb467f
Fix conversion to/from QString/QByteArray
...
BUG: 384321
2017-12-03 12:37:21 +00:00
Andrius Štikonas
f1a695bdac
Add support for growing f2fs file system.
2017-11-13 19:34:52 +00:00
Andrius Štikonas
be7ba11f17
Remove unnecessary semicolons.
2017-11-12 14:55:55 +00:00
Andrius Štikonas
fad8a3568e
Fix the previous commit.
...
FileSystem::create is never called if createWithLabel is available.
2017-11-12 14:45:49 +00:00
Andrius Štikonas
58f2decdf8
Support newer f2fs-tools versions.
...
BUG: 386771
2017-11-12 13:07:48 +00:00
Andrius Štikonas
fcfd78cdc4
Add support for fatresize program.
2017-11-09 23:14:52 +00:00
Andrius Štikonas
d3cde41df0
Allow setting boot, esp and bios-grub flags in sfdisk backend.
2017-11-08 00:01:24 +00:00
Andrius Štikonas
80de99fc73
Move setFlags function from CoreBackendPartition to CoreBackendPartitionTable.
...
setFlags function now takes additional argument const Partition& partition.
This allows us to completely remove CoreBackendPartition class.
Remove getPartitionBySector and getExtendedPartitions.
These functions were designed around libparted API and are not very convenient
with other backends.
2017-11-07 22:55:28 +00:00
Andrius Štikonas
0d88e26c8c
Add an experimental sfdisk backend.
2017-11-07 22:51:29 +00:00
Andrius Štikonas
a6415561ae
SetPartFlagsJob should return error when it is unable to find partition.
2017-11-07 03:07:51 +00:00
Andrius Štikonas
89a5308686
btrfs: implement updateUUID.
2017-11-05 20:42:40 +00:00
Andrius Štikonas
9ea983654c
Do not export symbols of CopySource(Target)Device
...
Calamares resize jobs was ported to ResizeOperation, so this is no longer
necessary.
2017-11-01 20:11:38 +00:00
Andrius Štikonas
87e210432d
Merge branch '3.2'
2017-10-31 16:16:36 +00:00
Andrius Štikonas
3cb1eeef80
Bump version to 3.2.1
2017-10-30 15:59:35 +00:00
Andrius Štikonas
8909dd87d0
Add a workaround for device not ready error.
...
In rare cases after moving file system to a new location file system check
fails on the first try. As a temporary workaround, wait a bit and try again.
2017-10-30 15:59:05 +00:00
Andrius Štikonas
55e445b069
More user friendly copying direction message in the log.
2017-10-30 14:24:55 +00:00
Andrius Štikonas
72dfbe480a
Replace readSectors/writeSectors backend functions.
...
New alternatives use QByteArray to store data and use bytes, not sectors.
2017-10-28 18:07:44 +01:00
Andrius Štikonas
6c7c636572
Bump kpmcore version and soversion.
2017-10-13 14:41:54 +01:00
Andrius Štikonas
e4c125c519
Do not over encapsulate Partition methods.
...
This caused more trouble than helped. There is no reason not to allow
e.g. settings new flags on partition or changing it's path.
2017-10-09 21:13:58 +01:00
Andrius Štikonas
d741fe4a00
Fix a typo in a comment.
2017-10-09 17:37:16 +01:00
Andrius Štikonas
9f3b2b8fd4
Use qOverload in Qt signal/slots.
2017-10-09 13:39:34 +01:00