try fixing autoscroll & and failure on auto parting when parts are mounted
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 2m15s
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 2m15s
This commit is contained in:
parent
f8f51e6fee
commit
f3c2580c0e
2
.github/release-nest-v3
vendored
2
.github/release-nest-v3
vendored
@ -1 +1 @@
|
||||
3
|
||||
4
|
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -1,4 +1,4 @@
|
||||
pika-installer-gtk4 (2.0.0-101pika2) pika; urgency=low
|
||||
pika-installer-gtk4 (2.0.0-101pika3) pika; urgency=low
|
||||
|
||||
* First Release of new installer
|
||||
|
||||
|
@ -125,7 +125,7 @@ pub fn installation_progress_page(
|
||||
installation_progress_log_scroll,
|
||||
move |_|
|
||||
{
|
||||
if installation_progress_log_scroll.vadjustment().upper() - installation_progress_log_scroll.vadjustment().value() < (installation_progress_log_scroll.size(gtk::Orientation::Vertical) as f64 * 1.2 ) {
|
||||
if installation_progress_log_scroll.vadjustment().upper() - installation_progress_log_scroll.vadjustment().value() < (installation_progress_log_scroll.size(gtk::Orientation::Vertical) as f64 * 1.35 ) {
|
||||
installation_progress_log_scroll.vadjustment().set_value(installation_progress_log_scroll.vadjustment().upper())
|
||||
}
|
||||
}
|
||||
|
@ -4,13 +4,30 @@ echo 'PARTING' | nc -U $SOCKET_PATH || true
|
||||
|
||||
PIKA_INSTALL_AUTO_TARGET_DISK={AUTO_INSTALL_TARGET_DISK}
|
||||
|
||||
for part in $(/usr/lib/pika/pika-installer-gtk4/scripts/partition-utility.sh get_partitions | grep "$PIKA_INSTALL_AUTO_TARGET_DISK"); do
|
||||
PARTITION="/dev/$part"
|
||||
swapoff $PARTITION || true
|
||||
done
|
||||
# Unmount host partitions from chroot
|
||||
umount "$PIKA_INSTALL_CHROOT_PATH/media/cdrom" || umount -lf "$PIKA_INSTALL_CHROOT_PATH/media/cdrom" || true
|
||||
umount "$PIKA_INSTALL_CHROOT_PATH/dev" || umount -lf "$PIKA_INSTALL_CHROOT_PATH/dev" || true
|
||||
umount "$PIKA_INSTALL_CHROOT_PATH/run" || umount -lf "$PIKA_INSTALL_CHROOT_PATH/run" || true
|
||||
umount "$PIKA_INSTALL_CHROOT_PATH/proc" || umount -lf "$PIKA_INSTALL_CHROOT_PATH/proc" || true
|
||||
umount "$PIKA_INSTALL_CHROOT_PATH/sys" || umount -lf "$PIKA_INSTALL_CHROOT_PATH/sys" || true
|
||||
|
||||
if echo "$PIKA_INSTALL_AUTO_TARGET_DISK" | grep -i "nvme"
|
||||
then
|
||||
for part in $(/usr/lib/pika/pika-installer-gtk4/scripts/partition-utility.sh get_partitions | grep "$PIKA_INSTALL_AUTO_TARGET_DISK")p; do
|
||||
PARTITION="/dev/$part"
|
||||
swapoff $PARTITION || true
|
||||
umount -l $PARTITION || true
|
||||
done
|
||||
else
|
||||
for part in $(/usr/lib/pika/pika-installer-gtk4/scripts/partition-utility.sh get_partitions | grep "$PIKA_INSTALL_AUTO_TARGET_DISK"); do
|
||||
PARTITION="/dev/$part"
|
||||
swapoff $PARTITION || true
|
||||
umount -l $PARTITION || true
|
||||
done
|
||||
fi
|
||||
|
||||
wipefs -af /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK"
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK"
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK" || systemctl restart systemd-udevd.service
|
||||
|
||||
"###;
|
||||
|
||||
|
@ -6,7 +6,7 @@ mkpart "linux-boot" 500Mib 1500Mib \
|
||||
mkpart "linux-root" 1500Mib 100%Mib \
|
||||
print
|
||||
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK"
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK" || systemctl restart systemd-udevd.service
|
||||
|
||||
if echo "$PIKA_INSTALL_AUTO_TARGET_DISK" | grep -i "nvme"
|
||||
then
|
||||
@ -68,7 +68,7 @@ mkpart "linux-boot" 500Mib 1500Mib \
|
||||
mkpart "linux-root" 1500Mib 100%Mib \
|
||||
print
|
||||
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK"
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK" || systemctl restart systemd-udevd.service
|
||||
|
||||
# add p to partition if it's nvme
|
||||
if echo "$PIKA_INSTALL_AUTO_TARGET_DISK" | grep -i "nvme"
|
||||
@ -137,7 +137,7 @@ mkpart "linux-root" 1500Mib "$PIKA_INSTALL_AUTO_ROOT_SIZE"Mib \
|
||||
mkpart "linux-home" "$PIKA_INSTALL_AUTO_ROOT_SIZE"Mib 100% \
|
||||
print
|
||||
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK"
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK" || systemctl restart systemd-udevd.service
|
||||
|
||||
if echo "$PIKA_INSTALL_AUTO_TARGET_DISK" | grep -i "nvme"
|
||||
then
|
||||
@ -209,7 +209,7 @@ mkpart "linux-root" 1500Mib "$PIKA_INSTALL_AUTO_ROOT_SIZE"Mib \
|
||||
mkpart "linux-home" "$PIKA_INSTALL_AUTO_ROOT_SIZE"Mib 100% \
|
||||
print
|
||||
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK"
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK" || systemctl restart systemd-udevd.service
|
||||
|
||||
# add p to partition if it's nvme
|
||||
if echo "$PIKA_INSTALL_AUTO_TARGET_DISK" | grep -i "nvme"
|
||||
@ -287,7 +287,7 @@ mkpart "linux-boot" 500Mib 1500Mib \
|
||||
mkpart "linux-root" 1500Mib 100%Mib \
|
||||
print
|
||||
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK"
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK" || systemctl restart systemd-udevd.service
|
||||
|
||||
if echo "$PIKA_INSTALL_AUTO_TARGET_DISK" | grep -i "nvme"
|
||||
then
|
||||
@ -343,7 +343,7 @@ mkpart "linux-boot" 500Mib 1500Mib \
|
||||
mkpart "linux-root" 1500Mib 100%Mib \
|
||||
print
|
||||
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK"
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK" || systemctl restart systemd-udevd.service
|
||||
|
||||
# add p to partition if it's nvme
|
||||
if echo "$PIKA_INSTALL_AUTO_TARGET_DISK" | grep -i "nvme"
|
||||
|
@ -10,7 +10,7 @@ mkpart "linux-root" 1500Mib "$PIKA_INSTALL_AUTO_ROOT_SIZE"Mib \
|
||||
mkpart "linux-home" "$PIKA_INSTALL_AUTO_ROOT_SIZE"Mib 100% \
|
||||
print
|
||||
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK"
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK" || systemctl restart systemd-udevd.service
|
||||
|
||||
if echo "$PIKA_INSTALL_AUTO_TARGET_DISK" | grep -i "nvme"
|
||||
then
|
||||
@ -66,7 +66,7 @@ mkpart "linux-root" 1500Mib "$PIKA_INSTALL_AUTO_ROOT_SIZE"Mib \
|
||||
mkpart "linux-home" "$PIKA_INSTALL_AUTO_ROOT_SIZE"Mib 100% \
|
||||
print
|
||||
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK"
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK" || systemctl restart systemd-udevd.service
|
||||
|
||||
# add p to partition if it's nvme
|
||||
if echo "$PIKA_INSTALL_AUTO_TARGET_DISK" | grep -i "nvme"
|
||||
@ -128,7 +128,7 @@ mkpart "linux-boot" 500Mib 1500Mib \
|
||||
mkpart "linux-root" 1500Mib 100%Mib \
|
||||
print
|
||||
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK"
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK" || systemctl restart systemd-udevd.service
|
||||
|
||||
if echo "$PIKA_INSTALL_AUTO_TARGET_DISK" | grep -i "nvme"
|
||||
then
|
||||
@ -176,7 +176,7 @@ mkpart "linux-boot" 500Mib 1500Mib \
|
||||
mkpart "linux-root" 1500Mib 100%Mib \
|
||||
print
|
||||
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK"
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK" || systemctl restart systemd-udevd.service
|
||||
|
||||
# add p to partition if it's nvme
|
||||
if echo "$PIKA_INSTALL_AUTO_TARGET_DISK" | grep -i "nvme"
|
||||
|
@ -11,7 +11,7 @@ mkpart "linux-root" 1500Mib "$PIKA_INSTALL_AUTO_ROOT_SIZE"Mib \
|
||||
mkpart "linux-home" "$PIKA_INSTALL_AUTO_ROOT_SIZE"Mib 100% \
|
||||
print
|
||||
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK"
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK" || systemctl restart systemd-udevd.service
|
||||
|
||||
if echo "$PIKA_INSTALL_AUTO_TARGET_DISK" | grep -i "nvme"
|
||||
then
|
||||
@ -67,7 +67,7 @@ mkpart "linux-root" 1500Mib "$PIKA_INSTALL_AUTO_ROOT_SIZE"Mib \
|
||||
mkpart "linux-home" "$PIKA_INSTALL_AUTO_ROOT_SIZE"Mib 100% \
|
||||
print
|
||||
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK"
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK" || systemctl restart systemd-udevd.service
|
||||
|
||||
# add p to partition if it's nvme
|
||||
if echo "$PIKA_INSTALL_AUTO_TARGET_DISK" | grep -i "nvme"
|
||||
@ -129,7 +129,7 @@ mkpart "linux-boot" 500Mib 1500Mib \
|
||||
mkpart "linux-root" 1500Mib 100%Mib \
|
||||
print
|
||||
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK"
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK" || systemctl restart systemd-udevd.service
|
||||
|
||||
if echo "$PIKA_INSTALL_AUTO_TARGET_DISK" | grep -i "nvme"
|
||||
then
|
||||
@ -177,7 +177,7 @@ mkpart "linux-boot" 500Mib 1500Mib \
|
||||
mkpart "linux-root" 1500Mib 100%Mib \
|
||||
print
|
||||
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK"
|
||||
blockdev --rereadpt /dev/"$PIKA_INSTALL_AUTO_TARGET_DISK" || systemctl restart systemd-udevd.service
|
||||
|
||||
# add p to partition if it's nvme
|
||||
if echo "$PIKA_INSTALL_AUTO_TARGET_DISK" | grep -i "nvme"
|
||||
|
Loading…
Reference in New Issue
Block a user