changes and fixes.

This commit is contained in:
Patrick 2024-11-11 17:30:12 +01:00
parent 71c9178747
commit a05e697db6
16 changed files with 20 additions and 10 deletions

View file

@ -23,16 +23,14 @@ mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
if chroot /mnt /bin/bash -c "command -v grub2-mkconfig &>/dev/null;" then
if chroot /mnt /bin/bash -c "command -v grub2-mkconfig &>/dev/null"; then
chroot /mnt /bin/bash -c "grub2-mkconfig -o /boot/grub/grub.cfg"
elif chroot /mnt /bin/bash -c "command -v grub-mkconfig &>/dev/null;" then
elif chroot /mnt /bin/bash -c "command -v grub-mkconfig &>/dev/null"; then
chroot /mnt /bin/bash -c "grub-mkconfig -o /boot/grub/grub.cfg"
fi
if chroot /mnt /bin/bash -c "command -v grub2-install &>/dev/null;" then
if chroot /mnt /bin/bash -c "command -v grub2-install &>/dev/null"; then
chroot /mnt /bin/bash -c "grub2-install /dev/sda"
elif chroot /mnt /bin/bash -c "command -v grub-install &>/dev/null;" then
elif chroot /mnt /bin/bash -c "command -v grub-install &>/dev/null"; then
chroot /mnt /bin/bash -c "grub-install /dev/sda"
fi

0
configs/scripts/server.sh Normal file → Executable file
View file

0
configs/scripts/user.sh Normal file → Executable file
View file