Skip to content

Commit e5d532a

Browse files
committed
partitions: Use ≥ for min partition size
Otherwise, we will be unable to install it in GNOME Boxes with the default NixOS hardware preset of 20 GiB.
1 parent edaa74a commit e5d532a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui/pages/partitions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,9 @@ impl FactoryComponent for WholeDisk {
549549
#[watch]
550550
// Translators: Do NOT translate the '{}'
551551
// The string reads "{/dev/sdX} (20 GB minimum needed)" indicating that the given disk is not large enough
552-
set_subtitle: &if self.size > 21_474_836_480 { size::Size::from_bytes(self.size).to_string() } else { i18n_f("{} (20 GB minimum needed)", &[&size::Size::from_bytes(self.size).to_string()]) },
552+
set_subtitle: &if self.size >= 21_474_836_480 { size::Size::from_bytes(self.size).to_string() } else { i18n_f("{} (20 GB minimum needed)", &[&size::Size::from_bytes(self.size).to_string()]) },
553553
set_activatable: true,
554-
set_sensitive: self.size > 21_474_836_480, // 20GB
554+
set_sensitive: self.size >= 21_474_836_480, // 20GB
555555
#[name(checkbtn)]
556556
add_suffix = &gtk::CheckButton {
557557
set_group: Some(&self.group),

0 commit comments

Comments
 (0)