Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refind hook fixed #5

Merged
merged 2 commits into from
Apr 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion refind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ arch-chroot /mnt /bin/bash -e <<EOF

echo "Sistem Saati Senkronize Ediliyor."
hwclock --systohc
timedatectl set-ntp true

echo "Dil Dosyaları oluşturuluyor."
locale-gen
Expand Down Expand Up @@ -383,7 +384,7 @@ menuentry "Arch Linux" {
EOF

# Setting up pacman hooks.
print "Refind Hook Sisteme Ekleniyor."
print " /boot Yedeklenmesi Otomotikleştiriliyor"
mkdir /mnt/etc/pacman.d/hooks
cat > /mnt/etc/pacman.d/hooks/50-bootbackup.hook <<EOF
[Trigger]
Expand All @@ -398,7 +399,10 @@ Depends = rsync
Description = Backing up /boot...
When = PostTransaction
Exec = /usr/bin/rsync -a --delete /boot /.bootbackup
EOF

print "Refind Güncelleme İşlemleri Otomatikleştiriliyor"
cat > /mnt/etc/pacman.d/hooks/refind.hook <<EOF
[Trigger]
Operation=Upgrade
Type=Package
Expand All @@ -412,6 +416,7 @@ EOF




# Pacman eye-candy features.
print "Pacman'da renk, animasyon ve paralel indirme etkinleştiriliyor."
sed -i 's/#Color/Color\nILoveCandy/;s/^#ParallelDownloads.*$/ParallelDownloads = 10/' /mnt/etc/pacman.conf
Expand Down