mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-02-02 22:07:13 +08:00
🧹 gucc: rearrange and explicitly initialize Partition members
This commit is contained in:
parent
42138cf365
commit
42f3e18ca6
@ -7,17 +7,15 @@
|
|||||||
namespace gucc::fs {
|
namespace gucc::fs {
|
||||||
|
|
||||||
struct Partition final {
|
struct Partition final {
|
||||||
std::string fstype;
|
std::string fstype{};
|
||||||
std::string mountpoint;
|
std::string mountpoint{};
|
||||||
std::string uuid_str;
|
std::string uuid_str{};
|
||||||
std::string device;
|
std::string device{};
|
||||||
|
|
||||||
// mount points that will be written in fstab,
|
// mount points that will be written in fstab,
|
||||||
// excluding subvol={subvol name}
|
// excluding subvol={subvol name}
|
||||||
// if device is ssd, mount options for ssd should be appended
|
// if device is ssd, mount options for ssd should be appended
|
||||||
std::string mount_opts;
|
std::string mount_opts{};
|
||||||
std::optional<std::string> luks_mapper_name;
|
|
||||||
std::optional<std::string> luks_uuid;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// subvolumes per partition
|
// subvolumes per partition
|
||||||
@ -25,7 +23,12 @@ struct Partition final {
|
|||||||
std::optional<std::vector<BtrfsSubvolume>> subvols;
|
std::optional<std::vector<BtrfsSubvolume>> subvols;
|
||||||
*/
|
*/
|
||||||
// subvolume name if the partition is btrrfs subvolume
|
// subvolume name if the partition is btrrfs subvolume
|
||||||
std::optional<std::string> subvolume;
|
std::optional<std::string> subvolume{};
|
||||||
|
|
||||||
|
/// LUKS data
|
||||||
|
std::optional<std::string> luks_mapper_name{};
|
||||||
|
std::optional<std::string> luks_uuid{};
|
||||||
|
std::optional<std::string> luks_passphrase{};
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace gucc::fs
|
} // namespace gucc::fs
|
||||||
|
Loading…
Reference in New Issue
Block a user