aboutsummaryrefslogtreecommitdiffstats
path: root/joes-arch-install-UEFI.sh
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-11-19 12:23:32 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-11-19 12:23:32 +0100
commit346c051a72180e34d694b17d800c63201b2fb982 (patch)
treea862fb1ee51438dadcdb6483a54a57d598af11ed /joes-arch-install-UEFI.sh
parentAdded REAME.org (diff)
downloadarch-installer-346c051a72180e34d694b17d800c63201b2fb982.tar.gz
arch-installer-346c051a72180e34d694b17d800c63201b2fb982.tar.bz2
arch-installer-346c051a72180e34d694b17d800c63201b2fb982.tar.xz
arch-installer-346c051a72180e34d694b17d800c63201b2fb982.tar.zst
arch-installer-346c051a72180e34d694b17d800c63201b2fb982.zip
Safety mkinicpio
Diffstat (limited to 'joes-arch-install-UEFI.sh')
-rwxr-xr-xjoes-arch-install-UEFI.sh18
1 files changed, 14 insertions, 4 deletions
diff --git a/joes-arch-install-UEFI.sh b/joes-arch-install-UEFI.sh
index a4f8140..7b381cf 100755
--- a/joes-arch-install-UEFI.sh
+++ b/joes-arch-install-UEFI.sh
@@ -510,11 +510,11 @@ pacstrap /mnt/arch cronie
pacstrap /mnt/arch grub
pacstrap /mnt/arch os-prober
pacstrap /mnt/arch efibootmgr
+pacstrap /mnt/arch mkinitcpio
if [ $ltskern -eq 1 ]; then
pacstrap /mnt/arch linux-lts
pacstrap /mnt/arch linux-lts-headers
else
- pacstrap /mnt/arch mkinitcpio
pacstrap /mnt/arch linux
pacstrap /mnt/arch linux-headers
fi
@@ -729,22 +729,32 @@ ARCH_CHROOT_CMDS
fi
sleep 2
if [ $ltskern -eq 0 ]; then
-arch-chroot /mnt/arch << ARCH_CHROOT_CMDS
+ arch-chroot /mnt/arch << ARCH_CHROOT_CMDS
clear
#===== VI. CONFIGURING BOOT ======#
# #
- # 1. Configuring GRUB #
+ # 1. Configuring the Kernel #
# #
#=================================#
mkinitcpio -p linux
ARCH_CHROOT_CMDS
+else
+ arch-chroot /mnt/arch << ARCH_CHROOT_CMDS
+ clear
+ #===== VI. CONFIGURING BOOT ======#
+ # #
+ # 1. Configuring the Kernel #
+ # #
+ #=================================#
+ mkinitcpio -p linux-lts
+ARCH_CHROOT_CMDS
fi
sleep 2
arch-chroot /mnt/arch << ARCH_CHROOT_CMDS
clear
#===== VI. CONFIGURING BOOT ======#
# #
- # 1. Configuring GRUB #
+ # 2. Configuring GRUB #
# #
#=================================#
grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi --recheck