Skip to content

Commit

Permalink
Update fulloto.sh
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
yuceltoluyag committed Aug 3, 2024
1 parent 635f68d commit 55df33a
Showing 1 changed file with 5 additions and 28 deletions.
33 changes: 5 additions & 28 deletions fulloto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -338,3 +314,4 @@ main() {

main


0 comments on commit 55df33a

Please sign in to comment.