wok-current diff tazlito/stuff/support-efi.patch @ rev 25701

Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author Stanislas Leduc <shann@slitaz.org>
date Fri Apr 19 12:48:51 2024 +0000 (2 months ago)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tazlito/stuff/support-efi.patch	Fri Apr 19 12:48:51 2024 +0000
     1.3 @@ -0,0 +1,39 @@
     1.4 +---a/tazlito
     1.5 ++++ b/tazlito
     1.6 +@@ -509,21 +509,18 @@
     1.7 + 		if [ ! -s $basedir/EFI/boot/$efifile ] &&
     1.8 + 		   [ $(get $((0x82)) "$1") = $((0x4550)) ]; then
     1.9 + 			mkdir -p $basedir/EFI/boot 2> /dev/null
    1.10 +-			ln "$1" "$basedir/EFI/boot/$efifile"
    1.11 ++			ln "$1" "$basedir/EFI/boot/vmlinuz"
    1.12 ++			## Add grub bootloader stuff
    1.13 ++			for i in "source/grub2-efi-x64-2.04/bootx64-live.efi,$efifile" "stuff/grub-live.cfg,grub.cfg"; do
    1.14 ++				ln "/home/slitaz/wok/grub2-efi-x64/${i%,*}" "$basedir/EFI/boot/${i#*,}" &&
    1.15 ++					stat -c "%s %n" "/home/slitaz/wok/grub2-efi-x64/${i%,*}"
    1.16 ++			done 2> /dev/null	
    1.17 + 			stat -c "%s %n" "$1"
    1.18 + 			for i in $basedir/boot/rootfs* ; do
    1.19 + 				ln "$i" $basedir/EFI/boot/ &&
    1.20 + 				stat -c "%s %n" "$i"
    1.21 + 			done 2> /dev/null
    1.22 +-			if [ ! -s $basedir/EFI/boot/linux.cmdline ]; then
    1.23 +-				sed 's|/|\\|g' > $basedir/EFI/boot/linux.cmdline <<EOT
    1.24 +-rw root=0x100$(sed '/bzImage/!d;s|.*root=[^ ]*||;q' $basedir/boot/isolinux/isolinux.cfg)\
    1.25 +-$( ( cd $basedir/EFI/boot ; ls -r rootfs*gz ) | while read f ; do \
    1.26 +-echo -n " initrd=/EFI/boot/$f";done)
    1.27 +-EOT
    1.28 +-				stat -c "%s %n" $basedir/EFI/boot/linux.cmdline
    1.29 + 			fi
    1.30 +-		fi
    1.31 + 		shift
    1.32 + 	done; } | sort | uniq | awk '{ n+=int(($1+2047)/2048) } END { print n }')
    1.33 + 	[ ${fclust:-0} -eq 0 ] && return
    1.34 +@@ -666,7 +663,7 @@
    1.35 + 	deduplicate
    1.36 + 	sed -i "s|20[1-9][0-9]|$(date +%Y)|" $2/README $2/index.html
    1.37 + 
    1.38 +-	[ $(ls $2/boot/grub* 2> /dev/null | wc -l) -lt 2 ] && rm -rf $2/boot/grub*
    1.39 ++#	[ $(ls $2/boot/grub* 2> /dev/null | wc -l) -lt 2 ] && rm -rf $2/boot/grub*
    1.40 + 	make_bzImage_hardlink $2/boot
    1.41 + 	alloc_uefi_part $(ls -r $2/boot/vmlinuz*slitaz*)
    1.42 +