grub
This commit is contained in:
parent
a842ee0111
commit
fa4431b8fd
|
@ -1,6 +1,9 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
mkdir -p /boot/grub
|
||||||
if [ -f /boot/grub/grub.cfg ];then
|
if [ -f /boot/grub/grub.cfg ];then
|
||||||
mv /boot/grub/grub.cfg /boot/grub/grub.cfg.eski
|
mv /boot/grub/grub.cfg /boot/grub/grub.cfg.eski
|
||||||
fi
|
fi
|
||||||
[ ! -f /boot/grub/grub.cfg.new ] && cp /etc/default/grub/grub.cfg /boot/grub/grub.cfg.new
|
[ ! -f /boot/grub/grub.cfg.new ] && cp /etc/default/grub/grub.cfg /boot/grub/grub.cfg.new
|
||||||
|
[ ! -d /boot/grub/i386-pc ] && cp -r /usr/lib/grub/i386-pc /boot/grub/
|
||||||
|
[ ! -f /boot/grub/unicode.pf2 ] && cp /usr/share/grub/unicode.pf2 /boot/grub/
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
|
|
@ -11,9 +11,14 @@ fi
|
||||||
|
|
||||||
[ -f /usr/bin/dracut ] && dracut -N --force --xz --omit systemd --add-drivers "ahci" -f /boot/initramfs $surum-$sonek
|
[ -f /usr/bin/dracut ] && dracut -N --force --xz --omit systemd --add-drivers "ahci" -f /boot/initramfs $surum-$sonek
|
||||||
[ -f /usr/bin/os-prober ] && os-prober
|
[ -f /usr/bin/os-prober ] && os-prober
|
||||||
if [ -f /usr/bin/grub-mkconfig ];then
|
|
||||||
[ -f /boot/grub/grub.cfg ] && mv /boot/grub/grub.cfg /boot/grub/grub.cfg.eski
|
mkdir -p /boot/grub
|
||||||
[ ! -f /boot/grub/grub.cfg.new ] && cp /etc/default/grub/grub.cfg /boot/grub/grub.cfg.new
|
if [ -f /boot/grub/grub.cfg ];then
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg
|
mv /boot/grub/grub.cfg /boot/grub/grub.cfg.eski
|
||||||
fi
|
fi
|
||||||
|
[ ! -f /boot/grub/grub.cfg.new ] && cp /etc/default/grub/grub.cfg /boot/grub/grub.cfg.new
|
||||||
|
[ ! -d /boot/grub/i386-pc ] && cp -r /usr/lib/grub/i386-pc /boot/grub/
|
||||||
|
[ ! -f /boot/grub/unicode.pf2 ] && cp /usr/share/grub/unicode.pf2 /boot/grub/
|
||||||
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
|
||||||
cd -
|
cd -
|
||||||
|
|
Loading…
Reference in New Issue