shit
This commit is contained in:
parent
0db98f106e
commit
727c626a38
@ -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
2
debian/changelog
vendored
@ -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
|
||||
|
||||
|
@ -141,8 +141,8 @@ pub fn install_page(done_main_box: >k::Box, install_main_box: >k::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 ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user