Fixed copying files

This commit is contained in:
eichehome 2023-03-29 16:58:05 +02:00
parent baed5aee22
commit 7e0b10bc71

14
base.sh
View file

@ -169,12 +169,12 @@ fi
bootctl install bootctl install
# Bootloaderconfig # Bootloaderconfig
$loader_conf=$(find / -type f -name loader.conf | grep configs) loader_conf=$(find / -type f -name loader.conf | grep configs)
cp $loader_conf /boot/loader/ cp $loader_conf /boot/loader/
if [[ $kernel == 1 || $kernel == 2 || $kernel == 3 || $kernel == 4 ]]; then if [[ $kernel == 1 || $kernel == 2 || $kernel == 3 || $kernel == 4 ]]; then
# Entry Arch # Entry Arch
$arch_conf=$(find / -type f -name arch.conf | grep configs) arch_conf=$(find / -type f -name arch.conf | grep configs)
cp $arch_conf /boot/loader/entries/ cp $arch_conf /boot/loader/entries/
if [[ $vendor == 1 ]]; then if [[ $vendor == 1 ]]; then
sed -i 's/#AMD//' /boot/loader/entries/arch.conf sed -i 's/#AMD//' /boot/loader/entries/arch.conf
@ -184,7 +184,7 @@ if [[ $kernel == 1 || $kernel == 2 || $kernel == 3 || $kernel == 4 ]]; then
if [[ $kernel == 2 || $kernel == 4 || $kernel == 5 ]]; then if [[ $kernel == 2 || $kernel == 4 || $kernel == 5 ]]; then
# Entry Arch LTS # Entry Arch LTS
$arch_lts_conf=$(find / -type f -name arch-lts.conf | grep configs) arch_lts_conf=$(find / -type f -name arch-lts.conf | grep configs)
cp $arch_lts_conf /boot/loader/entries/ cp $arch_lts_conf /boot/loader/entries/
if [[ $vendor == 1 ]]; then if [[ $vendor == 1 ]]; then
sed -i 's/#AMD//' /boot/loader/entries/arch-lts.conf sed -i 's/#AMD//' /boot/loader/entries/arch-lts.conf
@ -195,7 +195,7 @@ fi
if [[ $kernel == 3 || $kernel == 4 || $kernel == 5 ]]; then if [[ $kernel == 3 || $kernel == 4 || $kernel == 5 ]]; then
# Entry Arch Zen # Entry Arch Zen
$arch_zen_conf=$(find / -type f -name arch-zen.conf | grep configs) arch_zen_conf=$(find / -type f -name arch-zen.conf | grep configs)
cp $arch_zen_conf /boot/loader/entries/ cp $arch_zen_conf /boot/loader/entries/
if [[ $vendor == 1 ]]; then if [[ $vendor == 1 ]]; then
sed -i 's/#AMD//' /boot/loader/entries/arch-zen.conf sed -i 's/#AMD//' /boot/loader/entries/arch-zen.conf
@ -206,7 +206,7 @@ fi
if [[ $kernel == 1 || $kernel == 2 || $kernel == 3 || $kernel == 4 ]]; then if [[ $kernel == 1 || $kernel == 2 || $kernel == 3 || $kernel == 4 ]]; then
# Entry Arch Fallback # Entry Arch Fallback
$arch_fallback_conf=$(find / -type f -name arch-fallback.conf | grep configs) arch_fallback_conf=$(find / -type f -name arch-fallback.conf | grep configs)
cp ./configs/arch-fallback.conf /boot/loader/entries/ cp ./configs/arch-fallback.conf /boot/loader/entries/
if [[ $vendor == 1 ]]; then if [[ $vendor == 1 ]]; then
sed -i 's/#AMD//' /boot/loader/entries/arch-fallback.conf sed -i 's/#AMD//' /boot/loader/entries/arch-fallback.conf
@ -217,7 +217,7 @@ fi
if [[ $kernel == 2 || $kernel == 4 || $kernel == 5 ]]; then if [[ $kernel == 2 || $kernel == 4 || $kernel == 5 ]]; then
# Entry Arch LTS Fallback # Entry Arch LTS Fallback
$arch_lts_fallback_conf=$(find / -type f -name arch-lts-fallback.conf | grep configs) arch_lts_fallback_conf=$(find / -type f -name arch-lts-fallback.conf | grep configs)
cp $arch_lts_fallback_conf /boot/loader/entries/ cp $arch_lts_fallback_conf /boot/loader/entries/
if [[ $vendor == 1 ]]; then if [[ $vendor == 1 ]]; then
sed -i 's/#AMD//' /boot/loader/entries/arch-lts-fallback.conf sed -i 's/#AMD//' /boot/loader/entries/arch-lts-fallback.conf
@ -228,7 +228,7 @@ fi
if [[ $kernel == 3 || $kernel == 4 || $kernel == 5 ]]; then if [[ $kernel == 3 || $kernel == 4 || $kernel == 5 ]]; then
# Entry Arch Zen Fallback # Entry Arch Zen Fallback
$arch_zen_fallback_conf=$(find / -type f -name arch-zen-fallback.conf | grep configs) arch_zen_fallback_conf=$(find / -type f -name arch-zen-fallback.conf | grep configs)
cp $arch_zen_fallback_conf /boot/loader/entries/ cp $arch_zen_fallback_conf /boot/loader/entries/
if [[ $vendor == 1 ]]; then if [[ $vendor == 1 ]]; then
sed -i 's/#AMD//' /boot/loader/entries/arch-zen-fallback.conf sed -i 's/#AMD//' /boot/loader/entries/arch-zen-fallback.conf