2020-05-28 15:11:09 +03:00
|
|
|
From cf8fde7dd772cbe13cf232098314d04416f8a3de Mon Sep 17 00:00:00 2001
|
2020-05-28 14:57:19 +03:00
|
|
|
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
|
|
|
|
Date: Thu, 28 May 2020 14:51:06 +0300
|
|
|
|
Subject: [PATCH] Add start up in basic graphics mode without plymouth, move
|
|
|
|
booting from local drive to end of menu and make it not default
|
|
|
|
|
|
|
|
---
|
|
|
|
imgcreate/live.py | 20 ++++++++------------
|
|
|
|
1 file changed, 8 insertions(+), 12 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/imgcreate/live.py b/imgcreate/live.py
|
2020-05-28 15:11:09 +03:00
|
|
|
index 181353c..6226440 100644
|
2020-05-28 14:57:19 +03:00
|
|
|
--- a/imgcreate/live.py
|
|
|
|
+++ b/imgcreate/live.py
|
|
|
|
@@ -747,7 +747,7 @@ menu end
|
|
|
|
|
|
|
|
def __get_basic_efi_config(self, **args):
|
|
|
|
return """
|
|
|
|
-set default="1"
|
|
|
|
+set default="0"
|
|
|
|
|
|
|
|
function load_video {
|
|
|
|
insmod efi_gop
|
|
|
|
@@ -809,23 +809,19 @@ search --no-floppy --set=root -l '%(isolabel)s'
|
|
|
|
# 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,
|
Fix python syntax
```
Traceback (most recent call last):
File "/usr/bin/livecd-creator", line 258, in <module>
sys.exit(main())
File "/usr/bin/livecd-creator", line 232, in main
creator.configure()
File "/usr/lib/python3.8/site-packages/imgcreate/creator.py", line 802, in configure
self._create_bootconfig()
File "/usr/lib/python3.8/site-packages/imgcreate/live.py", line 259, in _create_bootconfig
self._configure_bootloader(self.__ensure_isodir())
File "/usr/lib/python3.8/site-packages/imgcreate/live.py", line 852, in _configure_bootloader
self._configure_efi_bootloader(isodir)
File "/usr/lib/python3.8/site-packages/imgcreate/live.py", line 838, in _configure_efi_bootloader
cfg += self.__get_efi_image_stanzas(isodir, self.name)
File "/usr/lib/python3.8/site-packages/imgcreate/live.py", line 815, in __get_efi_image_stanzas
long = "Start " + long,
TypeError: can only concatenate str (not "bytes") to str
```
2020-05-28 15:57:01 +03:00
|
|
|
long = "Start " + self.product,
|
2020-05-28 14:57:19 +03:00
|
|
|
extra = "rhgb splash=silent logo.nologo", index = index)
|
|
|
|
cfg += self.__get_efi_image_stanza(fslabel = self.fslabel,
|
|
|
|
liveargs = kernel_options,
|
Fix python syntax
```
Traceback (most recent call last):
File "/usr/bin/livecd-creator", line 258, in <module>
sys.exit(main())
File "/usr/bin/livecd-creator", line 232, in main
creator.configure()
File "/usr/lib/python3.8/site-packages/imgcreate/creator.py", line 802, in configure
self._create_bootconfig()
File "/usr/lib/python3.8/site-packages/imgcreate/live.py", line 259, in _create_bootconfig
self._configure_bootloader(self.__ensure_isodir())
File "/usr/lib/python3.8/site-packages/imgcreate/live.py", line 852, in _configure_bootloader
self._configure_efi_bootloader(isodir)
File "/usr/lib/python3.8/site-packages/imgcreate/live.py", line 838, in _configure_efi_bootloader
cfg += self.__get_efi_image_stanzas(isodir, self.name)
File "/usr/lib/python3.8/site-packages/imgcreate/live.py", line 815, in __get_efi_image_stanzas
long = "Start " + long,
TypeError: can only concatenate str (not "bytes") to str
```
2020-05-28 15:57:01 +03:00
|
|
|
- long = "Install " + self.product,
|
2020-05-28 14:57:19 +03:00
|
|
|
- extra = "install rhgb splash=silent logo.nologo", index = index)
|
|
|
|
- cfg += self.__get_efi_image_stanza(fslabel = self.fslabel,
|
|
|
|
- liveargs = kernel_options,
|
Fix python syntax
```
Traceback (most recent call last):
File "/usr/bin/livecd-creator", line 258, in <module>
sys.exit(main())
File "/usr/bin/livecd-creator", line 232, in main
creator.configure()
File "/usr/lib/python3.8/site-packages/imgcreate/creator.py", line 802, in configure
self._create_bootconfig()
File "/usr/lib/python3.8/site-packages/imgcreate/live.py", line 259, in _create_bootconfig
self._configure_bootloader(self.__ensure_isodir())
File "/usr/lib/python3.8/site-packages/imgcreate/live.py", line 852, in _configure_bootloader
self._configure_efi_bootloader(isodir)
File "/usr/lib/python3.8/site-packages/imgcreate/live.py", line 838, in _configure_efi_bootloader
cfg += self.__get_efi_image_stanzas(isodir, self.name)
File "/usr/lib/python3.8/site-packages/imgcreate/live.py", line 815, in __get_efi_image_stanzas
long = "Start " + long,
TypeError: can only concatenate str (not "bytes") to str
```
2020-05-28 15:57:01 +03:00
|
|
|
- long = "Install " + self.product + " in basic graphics mode",
|
2020-05-28 14:57:19 +03:00
|
|
|
- extra = "install nomodeset plymouth.enable=0", index = index)
|
|
|
|
-
|
Fix python syntax
```
Traceback (most recent call last):
File "/usr/bin/livecd-creator", line 258, in <module>
sys.exit(main())
File "/usr/bin/livecd-creator", line 232, in main
creator.configure()
File "/usr/lib/python3.8/site-packages/imgcreate/creator.py", line 802, in configure
self._create_bootconfig()
File "/usr/lib/python3.8/site-packages/imgcreate/live.py", line 259, in _create_bootconfig
self._configure_bootloader(self.__ensure_isodir())
File "/usr/lib/python3.8/site-packages/imgcreate/live.py", line 852, in _configure_bootloader
self._configure_efi_bootloader(isodir)
File "/usr/lib/python3.8/site-packages/imgcreate/live.py", line 838, in _configure_efi_bootloader
cfg += self.__get_efi_image_stanzas(isodir, self.name)
File "/usr/lib/python3.8/site-packages/imgcreate/live.py", line 815, in __get_efi_image_stanzas
long = "Start " + long,
TypeError: can only concatenate str (not "bytes") to str
```
2020-05-28 15:57:01 +03:00
|
|
|
+ long = "Start " + self.product + "in basic graphics mode",
|
2020-05-28 14:57:19 +03:00
|
|
|
+ extra = "nomodeset plymouth.enable=0", index = index)
|
|
|
|
+ cfg += """menuentry 'Boot from local drive' {
|
|
|
|
+ reboot
|
|
|
|
+}
|
|
|
|
+"""
|
|
|
|
break
|
|
|
|
|
|
|
|
return cfg
|
|
|
|
--
|
|
|
|
2.25.1
|
|
|
|
|