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 +