mirror of
https://abf.rosa.ru/djam/livecd-tools.git
synced 2025-02-24 08:02:58 +00:00
123 lines
4.9 KiB
Diff
123 lines
4.9 KiB
Diff
From 91741ac9c6e726e2c104c15a79aaad76a3457595 Mon Sep 17 00:00:00 2001
|
|
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
|
|
Date: Thu, 28 May 2020 14:40:47 +0300
|
|
Subject: [PATCH] Port ROSA theme
|
|
|
|
Ported from livecd-tools-21.1.efi.grub.cfg.patch
|
|
Update for 28.0 (Survolog)
|
|
|
|
---
|
|
|
|
diff -ur livecd-tools-livecd-tools-28.0/imgcreate/live.py livecd-tools-livecd-tools-28.0_patched/imgcreate/live.py
|
|
--- livecd-tools-livecd-tools-28.0/imgcreate/live.py 2021-05-20 15:36:20.672080771 +0300
|
|
+++ livecd-tools-livecd-tools-28.0_patched/imgcreate/live.py 2021-05-20 15:41:31.292795808 +0300
|
|
@@ -722,8 +722,10 @@
|
|
("/boot/efi/EFI/*/shimia32.efi", "/EFI/BOOT/BOOTIA32.EFI", False),
|
|
("/boot/efi/EFI/*/gcdia32.efi", "/EFI/BOOT/grubia32.efi", False),
|
|
("/boot/grub2/fonts/unicode.pf2", "/EFI/BOOT/fonts/", True),
|
|
+ ("/boot/grub2/themes/rosa/*", "/EFI/BOOT/themes/rosa/", True),
|
|
]
|
|
makedirs(isodir+"/EFI/BOOT/fonts/")
|
|
+ makedirs(isodir+"/EFI/BOOT/themes/rosa/")
|
|
for src, dest, required in files:
|
|
src_glob = glob.glob(self._instroot+src)
|
|
if not src_glob:
|
|
@@ -741,23 +743,33 @@
|
|
function load_video {
|
|
insmod efi_gop
|
|
insmod efi_uga
|
|
- insmod video_bochs
|
|
- insmod video_cirrus
|
|
- insmod all_video
|
|
}
|
|
|
|
load_video
|
|
set gfxpayload=keep
|
|
insmod gzio
|
|
insmod part_gpt
|
|
+insmod part_msdos
|
|
insmod ext2
|
|
+insmod iso9660
|
|
+
|
|
+set gfxmode=1024x768,1024x600,800x600,640x480
|
|
+insmod gfxterm
|
|
+insmod gettext
|
|
+terminal_output gfxterm
|
|
+insmod gfxmenu
|
|
+loadfont /EFI/BOOT/themes/rosa/dejavu_sans_bold_14.pf2
|
|
+loadfont /EFI/BOOT/themes/rosa/dejavu_sans_mono_11.pf2
|
|
+loadfont /EFI/BOOT/themes/rosa/terminal_font_11.pf2
|
|
+insmod png
|
|
+set theme=/EFI/BOOT/themes/rosa/theme.txt
|
|
+export theme
|
|
+background_image -m stretch /EFI/BOOT/themes/rosa/terminal_background.png
|
|
|
|
set timeout=%(timeout)d
|
|
-### END /etc/grub.d/00_header ###
|
|
|
|
search --no-floppy --set=root -l '%(isolabel)s'
|
|
|
|
-### BEGIN /etc/grub.d/10_linux ###
|
|
""" %args
|
|
|
|
def __get_efi_image_stanza(self, **args):
|
|
@@ -765,7 +777,7 @@
|
|
args["rootlabel"] = "live:LABEL=%(fslabel)s" % args
|
|
else:
|
|
args["rootlabel"] = "CDLABEL=%(fslabel)s" % args
|
|
- return """menuentry '%(long)s' --class fedora --class gnu-linux --class gnu --class os {
|
|
+ return """menuentry '%(long)s' --class rosa --class gnu-linux --class gnu --class os {
|
|
linuxefi /isolinux/vmlinuz%(index)s root=%(rootlabel)s %(liveargs)s %(extra)s
|
|
initrdefi /isolinux/initrd%(index)s.img
|
|
}
|
|
@@ -779,30 +791,33 @@
|
|
|
|
cfg = ""
|
|
|
|
+ if os.path.exists(self._instroot + "/etc/system-release"):
|
|
+ long = subprocess.check_output("echo -n `sed 's, release .*$,,g' /etc/system-release`", shell=True)
|
|
+ else:
|
|
+ long = self.product
|
|
+
|
|
for index in range(0, 9):
|
|
# we don't support xen kernels
|
|
if os.path.exists("%s/EFI/BOOT/xen%d.gz" %(isodir, index)):
|
|
continue
|
|
+ cfg += """menuentry 'Boot from local drive' {
|
|
+ reboot
|
|
+}
|
|
+"""
|
|
+
|
|
cfg += self.__get_efi_image_stanza(fslabel = self.fslabel,
|
|
liveargs = kernel_options,
|
|
long = "Start " + self.product,
|
|
- extra = "", index = index)
|
|
- if checkisomd5:
|
|
- cfg += self.__get_efi_image_stanza(fslabel = self.fslabel,
|
|
- liveargs = kernel_options,
|
|
- long = "Test this media & start " + self.product,
|
|
- extra = "rd.live.check",
|
|
- index = index)
|
|
- cfg += """
|
|
-submenu 'Troubleshooting -->' {
|
|
-"""
|
|
+ extra = "rhgb splash=silent logo.nologo", index = index)
|
|
cfg += self.__get_efi_image_stanza(fslabel = self.fslabel,
|
|
liveargs = kernel_options,
|
|
- long = "Start " + self.product + " in basic graphics mode",
|
|
- extra = "nomodeset", index = index)
|
|
+ long = "Install " + self.product,
|
|
+ extra = "install rhgb splash=silent logo.nologo", index = index)
|
|
+ cfg += self.__get_efi_image_stanza(fslabel = self.fslabel,
|
|
+ liveargs = kernel_options,
|
|
+ long = "Install " + self.product + " in basic graphics mode",
|
|
+ extra = "install nomodeset plymouth.enable=0", index = index)
|
|
|
|
- cfg+= """}
|
|
-"""
|
|
break
|
|
|
|
return cfg
|
|
--
|
|
2.25.1
|
|
|