Skip to content

Commit

Permalink
Prepare support for other backends (#737)
Browse files Browse the repository at this point in the history
Co-authored-by: Danielle Foré <[email protected]>
  • Loading branch information
meisenzahl and danirabbit authored Oct 3, 2024
1 parent 6337c27 commit c35927a
Show file tree
Hide file tree
Showing 12 changed files with 769 additions and 614 deletions.
49 changes: 47 additions & 2 deletions common/DBusStructures.vala
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,58 @@ public enum InstallerDaemon.FileSystem {
}
}

public struct InstallerDaemon.PartitionUsage {
/**
* None = 0; Some(usage) = 1;
*/
public uint8 tag;
/**
* The size, in sectors, that a partition is used.
*/
public uint64 value;
}

public enum InstallerDaemon.PartitionTable {
NONE,
GPT,
MSDOS;
}

public enum InstallerDaemon.Step {
BACKUP,
INIT,
PARTITION,
EXTRACT,
CONFIGURE,
BOOTLOADER;
}

public struct InstallerDaemon.Status {
Step step;
int percent;
}

public enum InstallerDaemon.LogLevel {
TRACE,
DEBUG,
INFO,
WARN,
ERROR;
}

public struct InstallerDaemon.Error {
Step step;
int err;
}

public struct InstallerDaemon.Partition {
string device_path;

FileSystem filesystem;

uint64 start_sector;
uint64 end_sector;
Distinst.PartitionUsage sectors_used;
PartitionUsage sectors_used;
string? current_lvm_volume_group;
}

Expand All @@ -95,7 +139,8 @@ public struct InstallerDaemon.InstallConfig {
string keyboard_layout;
string keyboard_variant;
string lang;
uint8 flags;
bool modify_boot_order;
bool install_drivers;
}

[Flags]
Expand Down
Loading

0 comments on commit c35927a

Please sign in to comment.