This commit is contained in:
Ward from fusion-voyager-3 2024-01-30 17:40:27 +03:00
parent 0db98f106e
commit 727c626a38
3 changed files with 7 additions and 7 deletions

View File

@ -18,8 +18,8 @@ then
parted -s -a optimal /dev/${DISK} mklabel gpt \
mkpart "linux-efi" 1MiB 513Mib \
mkpart "linux-boot" 513Mib 1537Mib \
mkpart "linux-root" 1537Mib "$(p3_size)"Mib \
mkpart "linux-home" "$(p3_size)"Mib 100% \
mkpart "linux-root" 1537Mib "$p3_size"Mib \
mkpart "linux-home" "$p3_size"Mib 100% \
print
# add p to partition if it's nvme
if echo ${DISK} | grep -i "nvme"
@ -68,8 +68,8 @@ else
parted -s -a optimal /dev/${DISK} mklabel gpt \
mkpart "linux-efi" 1MiB 513Mib \
mkpart "linux-boot" 513Mib 1537Mib \
mkpart "linux-root" 1537Mib "$(p3_size)"Mib \
mkpart "linux-home" "$(p3_size)"Mib 100% \
mkpart "linux-root" 1537Mib "$p3_size"Mib \
mkpart "linux-home" "$p3_size"Mib 100% \
print
# add p to partition if it's nvme
if echo ${DISK} | grep -i "nvme"

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
pika-installer-gtk4 (1.0.0-100pika6) pikauwu; urgency=low
pika-installer-gtk4 (1.0.0-100pika8) pikauwu; urgency=low
* First release

View File

@ -141,8 +141,8 @@ pub fn install_page(done_main_box: &gtk::Box, install_main_box: &gtk::Box ,conte
let mut target_p3_size = 0.0;
if (target_size * 40.0) / 100.0 >= 150000000000.0 {
target_p3_size = 150000000000.0 ;
} else if (target_size * 40.0) / 100.0 <= 42949672960.0 {
target_p3_size = 42949672960.0 ;
} else if (target_size * 40.0) / 100.0 <= 36507222016.0 {
target_p3_size = 36507222016.0 ;
} else {
target_p3_size = (target_size * 40.0) / 100.0 ;
}