changes and fixes.
This commit is contained in:
parent
71c9178747
commit
a05e697db6
16 changed files with 20 additions and 10 deletions
|
@ -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
0
configs/scripts/server.sh
Normal file → Executable file
0
configs/scripts/user.sh
Normal file → Executable file
0
configs/scripts/user.sh
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue