revert edits to whitespace so that code merges cleanly
This commit is contained in:
parent
8f3bae88c4
commit
8194350ba4
1 changed files with 39 additions and 39 deletions
78
archfi
78
archfi
|
@ -971,7 +971,7 @@ archsetkeymap(){
|
||||||
|
|
||||||
archsetfont(){
|
archsetfont(){
|
||||||
items=$(find /usr/share/kbd/consolefonts/*.psfu.gz -printf "%f\n")
|
items=$(find /usr/share/kbd/consolefonts/*.psfu.gz -printf "%f\n")
|
||||||
|
|
||||||
options=()
|
options=()
|
||||||
for item in $items; do
|
for item in $items; do
|
||||||
options+=("${item%%.*}" "")
|
options+=("${item%%.*}" "")
|
||||||
|
@ -1031,8 +1031,8 @@ archsettime(){
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
items=$(ls /mnt/usr/share/zoneinfo/$timezone/)
|
items=$(ls /mnt/usr/share/zoneinfo/$timezone/)
|
||||||
options=()
|
options=()
|
||||||
for item in $items; do
|
for item in $items; do
|
||||||
|
@ -1045,12 +1045,12 @@ archsettime(){
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "ln -sf /mnt/usr/share/zoneinfo/$timezone /mnt/etc/localtime"
|
echo "ln -sf /mnt/usr/share/zoneinfo/$timezone /mnt/etc/localtime"
|
||||||
ln -sf /usr/share/zoneinfo/$timezone /mnt/etc/localtime
|
ln -sf /usr/share/zoneinfo/$timezone /mnt/etc/localtime
|
||||||
pressanykey
|
pressanykey
|
||||||
|
|
||||||
if (whiptail --backtitle "$apptitle" --title "$txtsettime" --yesno "$txtuseutcclock" 0 0) then
|
if (whiptail --backtitle "$apptitle" --title "$txtsettime" --yesno "$txtuseutcclock" 0 0) then
|
||||||
clear
|
clear
|
||||||
archchroot settimeutc
|
archchroot settimeutc
|
||||||
|
@ -1058,9 +1058,9 @@ archsettime(){
|
||||||
clear
|
clear
|
||||||
archchroot settimelocal
|
archchroot settimelocal
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pressanykey
|
pressanykey
|
||||||
|
|
||||||
}
|
}
|
||||||
archsettimeutcchroot(){
|
archsettimeutcchroot(){
|
||||||
echo "hwclock --systohc --utc"
|
echo "hwclock --systohc --utc"
|
||||||
|
@ -1223,7 +1223,7 @@ archgrubinstall(){
|
||||||
echo "pacstrap /mnt grub"
|
echo "pacstrap /mnt grub"
|
||||||
pacstrap /mnt grub
|
pacstrap /mnt grub
|
||||||
pressanykey
|
pressanykey
|
||||||
|
|
||||||
if [ "$eficomputer" == "1" ]; then
|
if [ "$eficomputer" == "1" ]; then
|
||||||
if [ "$efimode" == "1" ]||[ "$efimode" == "2" ]; then
|
if [ "$efimode" == "1" ]||[ "$efimode" == "2" ]; then
|
||||||
if (whiptail --backtitle "$apptitle" --title "${txtinstall//%1/efibootmgr}" --yesno "$txtefibootmgr" 0 0) then
|
if (whiptail --backtitle "$apptitle" --title "${txtinstall//%1/efibootmgr}" --yesno "$txtefibootmgr" 0 0) then
|
||||||
|
@ -1241,7 +1241,7 @@ archgrubinstall(){
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$luksroot" = "1" ]; then
|
if [ "$luksroot" = "1" ]; then
|
||||||
if (whiptail --backtitle "$apptitle" --title "${txtinstall//%1/grub}" --yesno "$txtgrubluksdetected" 0 0) then
|
if (whiptail --backtitle "$apptitle" --title "${txtinstall//%1/grub}" --yesno "$txtgrubluksdetected" 0 0) then
|
||||||
clear
|
clear
|
||||||
|
@ -1250,7 +1250,7 @@ archgrubinstall(){
|
||||||
pressanykey
|
pressanykey
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clear
|
clear
|
||||||
archchroot grubinstall
|
archchroot grubinstall
|
||||||
pressanykey
|
pressanykey
|
||||||
|
@ -1375,12 +1375,12 @@ archbootloadersyslinuxbmenu(){
|
||||||
}
|
}
|
||||||
archsyslinuxinstall(){
|
archsyslinuxinstall(){
|
||||||
clear
|
clear
|
||||||
|
|
||||||
if [ "$efimode" == "1" ]||[ "$efimode" == "2" ]; then
|
if [ "$efimode" == "1" ]||[ "$efimode" == "2" ]; then
|
||||||
echo "$txtsyslinuxaddefibootmgr"
|
echo "$txtsyslinuxaddefibootmgr"
|
||||||
additionalpkg=$additionalpkg"efibootmgr "
|
additionalpkg=$additionalpkg"efibootmgr "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$isnvme" = "1" ]; then
|
if [ "$isnvme" = "1" ]; then
|
||||||
if [ "$(parted ${realrootdev::(-2)} print|grep gpt)" != "" ]; then
|
if [ "$(parted ${realrootdev::(-2)} print|grep gpt)" != "" ]; then
|
||||||
echo "$txtsyslinuxaddgptfdisk"
|
echo "$txtsyslinuxaddgptfdisk"
|
||||||
|
@ -1392,7 +1392,7 @@ archsyslinuxinstall(){
|
||||||
additionalpkg=$additionalpkg"gptfdisk "
|
additionalpkg=$additionalpkg"gptfdisk "
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$bootdev" != "" ]; then
|
if [ "$bootdev" != "" ]; then
|
||||||
if [ "$(parted $bootdev print|grep fat)" != "" ]; then
|
if [ "$(parted $bootdev print|grep fat)" != "" ]; then
|
||||||
echo "$txtsyslinuxaddmtools"
|
echo "$txtsyslinuxaddmtools"
|
||||||
|
@ -1413,7 +1413,7 @@ archsyslinuxinstall(){
|
||||||
echo "sed -i \"/APPEND\ root=/c\ APPEND root=$rootdev rw\" /mnt/boot/syslinux/syslinux.cfg"
|
echo "sed -i \"/APPEND\ root=/c\ APPEND root=$rootdev rw\" /mnt/boot/syslinux/syslinux.cfg"
|
||||||
sed -i "/APPEND\ root=/c\ APPEND root=$rootdev\ rw" /mnt/boot/syslinux/syslinux.cfg
|
sed -i "/APPEND\ root=/c\ APPEND root=$rootdev\ rw" /mnt/boot/syslinux/syslinux.cfg
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pressanykey
|
pressanykey
|
||||||
}
|
}
|
||||||
archsyslinuxinstallbootloader(){
|
archsyslinuxinstallbootloader(){
|
||||||
|
@ -1487,10 +1487,10 @@ archbootloadersystemdbmenu(){
|
||||||
archsystemdinstall(){
|
archsystemdinstall(){
|
||||||
clear
|
clear
|
||||||
archchroot systemdbootloaderinstall $realrootdev
|
archchroot systemdbootloaderinstall $realrootdev
|
||||||
|
|
||||||
partuuid=$(blkid -s PARTUUID -o value $realrootdev)
|
partuuid=$(blkid -s PARTUUID -o value $realrootdev)
|
||||||
parttype=$(blkid -s TYPE -o value $rootdev)
|
parttype=$(blkid -s TYPE -o value $rootdev)
|
||||||
|
|
||||||
echo "cp /mnt/usr/share/systemd/bootctl/arch.conf /mnt/boot/loader/entries"
|
echo "cp /mnt/usr/share/systemd/bootctl/arch.conf /mnt/boot/loader/entries"
|
||||||
echo "echo \"timeout 2\" >> /mnt/boot/loader/loader.conf"
|
echo "echo \"timeout 2\" >> /mnt/boot/loader/loader.conf"
|
||||||
echo "cp /mnt/usr/share/systemd/bootctl/loader.conf /mnt/boot/loader"
|
echo "cp /mnt/usr/share/systemd/bootctl/loader.conf /mnt/boot/loader"
|
||||||
|
@ -1506,12 +1506,12 @@ archsystemdinstall(){
|
||||||
echo "cp /mnt/boot/loader/entries/arch.conf /mnt/boot/loader/entries/arch-fallback.conf"
|
echo "cp /mnt/boot/loader/entries/arch.conf /mnt/boot/loader/entries/arch-fallback.conf"
|
||||||
echo "sed -i \"s/Arch Linux/Arch Linux Fallback/\" /mnt/boot/loader/entries/arch-fallback.conf"
|
echo "sed -i \"s/Arch Linux/Arch Linux Fallback/\" /mnt/boot/loader/entries/arch-fallback.conf"
|
||||||
echo "sed -i \"s/initramfs-linux/initramfs-linux-fallback/\" /mnt/boot/loader/entries/arch-fallback.conf"
|
echo "sed -i \"s/initramfs-linux/initramfs-linux-fallback/\" /mnt/boot/loader/entries/arch-fallback.conf"
|
||||||
|
|
||||||
cp /mnt/usr/share/systemd/bootctl/loader.conf /mnt/boot/loader
|
cp /mnt/usr/share/systemd/bootctl/loader.conf /mnt/boot/loader
|
||||||
echo "timeout 2" >> /mnt/boot/loader/loader.conf
|
echo "timeout 2" >> /mnt/boot/loader/loader.conf
|
||||||
cp /mnt/usr/share/systemd/bootctl/arch.conf /mnt/boot/loader/entries
|
cp /mnt/usr/share/systemd/bootctl/arch.conf /mnt/boot/loader/entries
|
||||||
|
|
||||||
|
|
||||||
if [ "$luksroot" = "1" ]; then
|
if [ "$luksroot" = "1" ]; then
|
||||||
sed -i "s/PARTUUID=XXXX/\/dev\/mapper\/root/" /mnt/boot/loader/entries/arch.conf
|
sed -i "s/PARTUUID=XXXX/\/dev\/mapper\/root/" /mnt/boot/loader/entries/arch.conf
|
||||||
sed -i "s/XXXX/$parttype/" /mnt/boot/loader/entries/arch.conf
|
sed -i "s/XXXX/$parttype/" /mnt/boot/loader/entries/arch.conf
|
||||||
|
@ -1520,11 +1520,11 @@ archsystemdinstall(){
|
||||||
sed -i "s/PARTUUID=XXXX/PARTUUID=$partuuid/" /mnt/boot/loader/entries/arch.conf
|
sed -i "s/PARTUUID=XXXX/PARTUUID=$partuuid/" /mnt/boot/loader/entries/arch.conf
|
||||||
sed -i "s/XXXX/$parttype/" /mnt/boot/loader/entries/arch.conf
|
sed -i "s/XXXX/$parttype/" /mnt/boot/loader/entries/arch.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp /mnt/boot/loader/entries/arch.conf /mnt/boot/loader/entries/arch-fallback.conf
|
cp /mnt/boot/loader/entries/arch.conf /mnt/boot/loader/entries/arch-fallback.conf
|
||||||
sed -i "s/Arch Linux/Arch Linux Fallback/" /mnt/boot/loader/entries/arch-fallback.conf
|
sed -i "s/Arch Linux/Arch Linux Fallback/" /mnt/boot/loader/entries/arch-fallback.conf
|
||||||
sed -i "s/initramfs-linux/initramfs-linux-fallback/" /mnt/boot/loader/entries/arch-fallback.conf
|
sed -i "s/initramfs-linux/initramfs-linux-fallback/" /mnt/boot/loader/entries/arch-fallback.conf
|
||||||
|
|
||||||
pressanykey
|
pressanykey
|
||||||
}
|
}
|
||||||
archsystemdinstallchroot(){
|
archsystemdinstallchroot(){
|
||||||
|
@ -1567,13 +1567,13 @@ archbootloaderrefindmenu(){
|
||||||
}
|
}
|
||||||
archrefindinstall(){
|
archrefindinstall(){
|
||||||
clear
|
clear
|
||||||
|
|
||||||
echo "pacstrap /mnt refind-efi"
|
echo "pacstrap /mnt refind-efi"
|
||||||
echo "archchroot refindbootloaderinstall $realrootdev"
|
echo "archchroot refindbootloaderinstall $realrootdev"
|
||||||
echo "echo \"\\\"Arch Linux \\\" \\\"root=UUID=$rootuuid rw add_efi_memmap\\\"\" > /mnt/boot/refind_linux.conf"
|
echo "echo \"\\\"Arch Linux \\\" \\\"root=UUID=$rootuuid rw add_efi_memmap\\\"\" > /mnt/boot/refind_linux.conf"
|
||||||
echo "echo \"\\\"Arch Linux Fallback\\\" \\\"root=UUID=$rootuuid rw add_efi_memmap initrd=/initramfs-linux-fallback.img\\\"\" >> /mnt/boot/refind_linux.conf"
|
echo "echo \"\\\"Arch Linux Fallback\\\" \\\"root=UUID=$rootuuid rw add_efi_memmap initrd=/initramfs-linux-fallback.img\\\"\" >> /mnt/boot/refind_linux.conf"
|
||||||
echo "echo \"\\\"Arch Linux Terminal\\\" \\\"root=UUID=$rootuuid rw add_efi_memmap systemd.unit=multi-user.target\\\"\" >> /mnt/boot/refind_linux.conf"
|
echo "echo \"\\\"Arch Linux Terminal\\\" \\\"root=UUID=$rootuuid rw add_efi_memmap systemd.unit=multi-user.target\\\"\" >> /mnt/boot/refind_linux.conf"
|
||||||
|
|
||||||
pacstrap /mnt refind-efi
|
pacstrap /mnt refind-efi
|
||||||
archchroot refindbootloaderinstall $realrootdev
|
archchroot refindbootloaderinstall $realrootdev
|
||||||
rootuuid=$(blkid -s UUID -o value $realrootdev)
|
rootuuid=$(blkid -s UUID -o value $realrootdev)
|
||||||
|
@ -1687,16 +1687,16 @@ pressanykey(){
|
||||||
}
|
}
|
||||||
|
|
||||||
loadstrings(){
|
loadstrings(){
|
||||||
|
|
||||||
locale=en_US.UTF-8
|
locale=en_US.UTF-8
|
||||||
#font=
|
#font=
|
||||||
|
|
||||||
txtexit="Exit"
|
txtexit="Exit"
|
||||||
txtback="Back"
|
txtback="Back"
|
||||||
txtignore="Ignore"
|
txtignore="Ignore"
|
||||||
|
|
||||||
txtselectserver="Select source server :"
|
txtselectserver="Select source server :"
|
||||||
|
|
||||||
txtmainmenu="Main Menu"
|
txtmainmenu="Main Menu"
|
||||||
txtlanguage="Language"
|
txtlanguage="Language"
|
||||||
txtsetkeymap="Set Keyboard Layout"
|
txtsetkeymap="Set Keyboard Layout"
|
||||||
|
@ -1736,9 +1736,9 @@ loadstrings(){
|
||||||
txtluksdevicecreated="luks device created !"
|
txtluksdevicecreated="luks device created !"
|
||||||
|
|
||||||
txtinstallmenu="Install Menu"
|
txtinstallmenu="Install Menu"
|
||||||
|
|
||||||
txtarchinstallmenu="Arch Install Menu"
|
txtarchinstallmenu="Arch Install Menu"
|
||||||
|
|
||||||
txteditmirrorlist="Edit mirrorlist"
|
txteditmirrorlist="Edit mirrorlist"
|
||||||
txtinstallarchlinux="Install Arch Linux"
|
txtinstallarchlinux="Install Arch Linux"
|
||||||
txtconfigarchlinux="Config Arch Linux"
|
txtconfigarchlinux="Config Arch Linux"
|
||||||
|
@ -1748,27 +1748,27 @@ loadstrings(){
|
||||||
txtsetlocale="Set Locale"
|
txtsetlocale="Set Locale"
|
||||||
txtsettime="Set Time"
|
txtsettime="Set Time"
|
||||||
txtsetrootpassword="Set root password"
|
txtsetrootpassword="Set root password"
|
||||||
|
|
||||||
txtuseutcclock="Use UTC hardware clock ?"
|
txtuseutcclock="Use UTC hardware clock ?"
|
||||||
|
|
||||||
txtbootloader="Bootloader"
|
txtbootloader="Bootloader"
|
||||||
txtbootloadermenu="Choose your bootloader"
|
txtbootloadermenu="Choose your bootloader"
|
||||||
|
|
||||||
txtefibootmgr="efibootmgr is required for EFI computers."
|
txtefibootmgr="efibootmgr is required for EFI computers."
|
||||||
|
|
||||||
txtbootloadergrubmenu="Grub Install Menu"
|
txtbootloadergrubmenu="Grub Install Menu"
|
||||||
txtrungrubmakeconfig="Run grub-mkconfig ?"
|
txtrungrubmakeconfig="Run grub-mkconfig ?"
|
||||||
txtgrubluksdetected="Encrypted root partion !\n\nAdd cryptdevice= to GRUB_CMDLINE_LINUX in /etc/default/grub ?"
|
txtgrubluksdetected="Encrypted root partion !\n\nAdd cryptdevice= to GRUB_CMDLINE_LINUX in /etc/default/grub ?"
|
||||||
|
|
||||||
txtbootloadersyslinuxmenu="Syslinux Install Menu"
|
txtbootloadersyslinuxmenu="Syslinux Install Menu"
|
||||||
txtsyslinuxaddefibootmgr="EFI install require efibootmgr"
|
txtsyslinuxaddefibootmgr="EFI install require efibootmgr"
|
||||||
txtsyslinuxaddgptfdisk="GPT disk require gptfdisk"
|
txtsyslinuxaddgptfdisk="GPT disk require gptfdisk"
|
||||||
txtsyslinuxaddmtools="FAT boot part require mtools"
|
txtsyslinuxaddmtools="FAT boot part require mtools"
|
||||||
|
|
||||||
txtbootloadersystemdmenu="Systemd-boot Install Menu"
|
txtbootloadersystemdmenu="Systemd-boot Install Menu"
|
||||||
|
|
||||||
txtbootloaderrefindmenu="rEFInd Install Menu"
|
txtbootloaderrefindmenu="rEFInd Install Menu"
|
||||||
|
|
||||||
txtoptional="Optional"
|
txtoptional="Optional"
|
||||||
txtrecommandeasyinst="Recommanded for easy install"
|
txtrecommandeasyinst="Recommanded for easy install"
|
||||||
txtset="Set %1"
|
txtset="Set %1"
|
||||||
|
@ -1776,9 +1776,9 @@ loadstrings(){
|
||||||
txtedit="Edit %1"
|
txtedit="Edit %1"
|
||||||
txtinstall="Install %1"
|
txtinstall="Install %1"
|
||||||
txtenable="Enable %1"
|
txtenable="Enable %1"
|
||||||
|
|
||||||
txtpressanykey="Press any key to continue."
|
txtpressanykey="Press any key to continue."
|
||||||
|
|
||||||
txtarchdidesc="Full desktop install script"
|
txtarchdidesc="Full desktop install script"
|
||||||
txtinstallarchdi="Arch Linux Desktop Install (archdi) is a second script who can help you to install a full workstation.\n\nYou can just launch the script or install it. Choose in the next menu.\n\nArch Linux Desktop Install as two dependencies : wget and libnewt.\n\npacstrap wget libnewt ?"
|
txtinstallarchdi="Arch Linux Desktop Install (archdi) is a second script who can help you to install a full workstation.\n\nYou can just launch the script or install it. Choose in the next menu.\n\nArch Linux Desktop Install as two dependencies : wget and libnewt.\n\npacstrap wget libnewt ?"
|
||||||
txtarchdiinstallandlaunch="Install and run archdi"
|
txtarchdiinstallandlaunch="Install and run archdi"
|
||||||
|
|
Loading…
Reference in a new issue