uefili.iso

This commit is contained in:
mahmutov 2016-08-03 20:01:54 +00:00
parent 2cff35e35c
commit 363fc17817
2 changed files with 13 additions and 10 deletions

View File

@ -27,20 +27,20 @@ fi
if [ cpuid -l ]; then if [ cpuid -l ]; then
menuentry "@@BOOT_TITLE@@ @@KERNVER@@ (@@ARCH@@)" { menuentry "@@BOOT_TITLE@@ @@KERNVER@@ (@@ARCH@@)" {
set gfxpayload="keep" set gfxpayload="keep"
linux (${milislive})/boot/vmlinuz \ linux (${milislive})/boot/kernel \
root=live:CDLABEL=MILIS_LIVE ro \ root=live:CDLABEL=MILIS_LIVE ro \
rd.luks=0 rd.md=0 rd.dm=0 loglevel=4 gpt add_efi_memmap \ rd.luks=0 rd.md=0 rd.dm=0 loglevel=4 gpt add_efi_memmap \
vconsole.unicode=1 vconsole.keymap=@@KEYMAP@@ \ vconsole.unicode=1 vconsole.keymap=@@KEYMAP@@ \
locale.LANG=@@LOCALE@@ @@BOOT_CMDLINE@@ locale.LANG=@@LOCALE@@ @@BOOT_CMDLINE@@
initrd (${milislive})/boot/initrd initrd (${milislive})/boot/initramfs
} }
menuentry "@@BOOT_TITLE@@ @@KERNVER@@ (@@ARCH@@) (RAM)" { menuentry "@@BOOT_TITLE@@ @@KERNVER@@ (@@ARCH@@) (RAM)" {
set gfxpayload="keep" set gfxpayload="keep"
linux (${milislive})/boot/vmlinuz \ linux (${milislive})/boot/kernel \
root=live:CDLABEL=MILIS_LIVE ro \ root=live:CDLABEL=MILIS_LIVE ro \
rd.luks=0 rd.md=0 rd.dm=0 loglevel=4 gpt add_efi_memmap \ rd.luks=0 rd.md=0 rd.dm=0 loglevel=4 gpt add_efi_memmap \
vconsole.unicode=1 vconsole.keymap=@@KEYMAP@@ \ vconsole.unicode=1 vconsole.keymap=@@KEYMAP@@ \
locale.LANG=@@LOCALE@@ @@BOOT_CMDLINE@@ rd.live.ram locale.LANG=@@LOCALE@@ @@BOOT_CMDLINE@@ rd.live.ram
initrd (${milislive})/boot/initrd initrd (${milislive})/boot/initramfs
} }
fi fi

View File

@ -1093,20 +1093,23 @@ grub_efi_boot(){
cp -a $IMAGEDIR/boot $LFS cp -a $IMAGEDIR/boot $LFS
chroot $LFS grub-mkstandalone -- \ echo "chroot gir"
--directory="/usr/lib/grub/x86_64-efi" \
--format="x86_64-efi" \ chroot "$LFS" /usr/bin/env -i grub-mkstandalone --directory="/usr/lib/grub/x86_64-efi" --format="x86_64-efi" --output="/tmp/bootx64.efi" "ayarlar/grub/grub.cfg"
--output="/tmp/bootx64.efi" \
"boot/grub/grub.cfg" echo "chroot cik"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
umount "$GRUB_EFI_TMPDIR" umount "$GRUB_EFI_TMPDIR"
losetup --detach "${LOOP_DEVICE}" losetup --detach "${LOOP_DEVICE}"
echo "EFI yukleyici olusturulması basarısız!" echo "EFI yukleyici olusturulması basarısız!"
exit 1 exit 1
fi fi
echo "${GRUB_EFI_TMPDIR} silinecek"
mkdir -p ${GRUB_EFI_TMPDIR}/EFI/BOOT mkdir -p ${GRUB_EFI_TMPDIR}/EFI/BOOT
cp -f $LFS/tmp/bootx64.efi ${GRUB_EFI_TMPDIR}/EFI/BOOT/BOOTX64.EFI cp -f $LFS/tmp/bootx64.efi ${GRUB_EFI_TMPDIR}/EFI/BOOT/BOOTX64.EFI
umount "$GRUB_EFI_TMPDIR" umount "$GRUB_EFI_TMPDIR"
echo " ${LOOP_DEVICE} silinecek"
losetup --detach "${LOOP_DEVICE}" losetup --detach "${LOOP_DEVICE}"
rm -rf $GRUB_EFI_TMPDIR rm -rf $GRUB_EFI_TMPDIR