mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-01-23 14:32:22 +08:00
🚧 utils: fix partition dump for nullopt subvol
This commit is contained in:
parent
d99d0fe272
commit
724ece39d6
@ -218,7 +218,7 @@ void dump_partition_to_log(const gucc::fs::Partition& partition) noexcept {
|
|||||||
|
|
||||||
spdlog::debug("[DUMP] {}: fs='{}';mountpoint='{}';uuid_str='{}';device='{}';mount_opts='{}';subvolume='{}'",
|
spdlog::debug("[DUMP] {}: fs='{}';mountpoint='{}';uuid_str='{}';device='{}';mount_opts='{}';subvolume='{}'",
|
||||||
part_tag,
|
part_tag,
|
||||||
partition.fstype, partition.mountpoint, partition.uuid_str, partition.device, partition.mount_opts, *partition.subvolume);
|
partition.fstype, partition.mountpoint, partition.uuid_str, partition.device, partition.mount_opts, (!partition.subvolume.has_value()) ? "(NONE)"sv : *partition.subvolume);
|
||||||
}
|
}
|
||||||
|
|
||||||
void dump_partitions_to_log(const std::vector<gucc::fs::Partition>& partitions) noexcept {
|
void dump_partitions_to_log(const std::vector<gucc::fs::Partition>& partitions) noexcept {
|
||||||
|
Loading…
Reference in New Issue
Block a user