From 55df33a5af4953f9d087793363517437892bf754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?y=C3=BCcel?= Date: Sun, 4 Aug 2024 00:07:54 +0300 Subject: [PATCH] Update fulloto.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Elektrik kesintisi senaryoları için kaldığı yerden devam etme desteğini kaldırdım. - Disk bölümlendirme ve montaj kontrollerini kaldırarak scriptin baştan başlamasını sağladım. --- fulloto.sh | 33 +++++---------------------------- 1 file changed, 5 insertions(+), 28 deletions(-) diff --git a/fulloto.sh b/fulloto.sh index 6d76254..08adf83 100644 --- a/fulloto.sh +++ b/fulloto.sh @@ -250,28 +250,7 @@ format_disk() { swapon "${disk}2" } -check_disk_format() { - if mount | grep -q "/mnt"; then - print "Disk zaten biçimlendirilmiş ve monte edilmiş, bu adımlar atlanacak." - return 0 - else - return 1 - fi -} -mount_existing_partitions() { - local disk=$1 - print "Mevcut bölümler monte ediliyor: $disk." - mount "${disk}3" /mnt - mkdir -p /mnt/boot - mount "${disk}1" /mnt/boot - - if ! swapon --show | grep -q "${disk}2"; then - swapon "${disk}2" - else - print "Swap bölümü zaten etkin durumda, atlanıyor." - fi -} run_arch_chroot() { local disk=$1 @@ -302,13 +281,10 @@ main() { check_internet select_disk - if ! check_disk_format; then - partition_disk "$DISK" - format_disk "$DISK" - else - mount_existing_partitions "$DISK" - fi - + # Disk kontrol ve montaj adımlarını kaldırıyoruz + partition_disk "$DISK" + format_disk "$DISK" + select_kernel detect_microcode detect_virtualization @@ -338,3 +314,4 @@ main() { main +