uefili.iso

This commit is contained in:
mahmutov 2016-08-03 16:46:17 +00:00
parent 0e9120b76f
commit cfd6be3921
3 changed files with 13 additions and 9 deletions

View File

@ -11,3 +11,6 @@ insmod ntfs
insmod hfsplus insmod hfsplus
insmod linux insmod linux
insmod chain insmod chain
search --file --no-floppy --set=milislive "/boot/grub/grub_milis.cfg"
source "(${milislive})/boot/grub/grub_milis.cfg"

View File

@ -1,5 +1,6 @@
set pager="1" set pager="1"
set locale_dir="/boot/grub/locale" set locale_dir="(${milislive})/boot/grub/locale"
if [ -e "${prefix}/${grub_cpu}-${grub_platform}/all_video.mod" ]; then if [ -e "${prefix}/${grub_cpu}-${grub_platform}/all_video.mod" ]; then
insmod all_video insmod all_video
@ -12,7 +13,7 @@ fi
insmod font insmod font
if loadfont "/boot/grub/fonts/unicode.pf2" ; then if loadfont "(${milislive})/boot/grub/fonts/unicode.pf2" ; then
insmod gfxterm insmod gfxterm
set gfxmode="auto" set gfxmode="auto"
@ -20,26 +21,26 @@ if loadfont "/boot/grub/fonts/unicode.pf2" ; then
terminal_output gfxterm terminal_output gfxterm
insmod png insmod png
background_image "/boot/isolinux/@@SPLASHIMAGE@@" background_image "(${milislive})/boot/isolinux/@@SPLASHIMAGE@@"
fi 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 /boot/kernel \ linux (${milislive})/boot/vmlinuz \
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 /boot/initramfs initrd (${milislive})/boot/initrd
} }
menuentry "@@BOOT_TITLE@@ @@KERNVER@@ (@@ARCH@@) (RAM)" { menuentry "@@BOOT_TITLE@@ @@KERNVER@@ (@@ARCH@@) (RAM)" {
set gfxpayload="keep" set gfxpayload="keep"
linux /boot/kernel \ linux (${milislive})/boot/vmlinuz \
root=live:CDLABEL=MILIS_LIVE ro init=/sbin/init \ 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 /boot/initramfs initrd (${milislive})/boot/initrd
} }
fi fi

View File

@ -1126,7 +1126,6 @@ squashfs_olustur(){
rm -r iso_icerik/LiveOS rm -r iso_icerik/LiveOS
cp $LFS/boot/kernel-* iso_icerik/boot/kernel cp $LFS/boot/kernel-* iso_icerik/boot/kernel
cp $LFS/boot/initramfs* iso_icerik/boot/initramfs cp $LFS/boot/initramfs* iso_icerik/boot/initramfs
cp $LFS/usr/lib/syslinux/isohdpfx.bin iso_icerik/boot/isolinux/isohdpfx.bin
anayer=$(du -sm "$LFS"|awk '{print $1}') anayer=$(du -sm "$LFS"|awk '{print $1}')
fazladan="$((anayer))" fazladan="$((anayer))"
mkdir -p tmp mkdir -p tmp
@ -1159,6 +1158,7 @@ iso_olustur(){
} }
iso_olustur_efili() { iso_olustur_efili() {
cp $LFS/usr/lib/syslinux/isohdpfx.bin iso_icerik/boot/isolinux/isohdpfx.bin
xorriso -as mkisofs \ xorriso -as mkisofs \
-iso-level 3 -rock -joliet \ -iso-level 3 -rock -joliet \
-max-iso9660-filenames -omit-period \ -max-iso9660-filenames -omit-period \