Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
eepm
Commits
bc1f0adf
Commit
bc1f0adf
authored
Sep 12, 2025
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Sep 15, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-kernel_update: added limine support
https://codeberg.org/Limine/Limine
Signed-off-by:
Boris Yumankulov
<
boria138@altlinux.org
>
parent
d038cc3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
epm-kernel_update
bin/epm-kernel_update
+18
-2
No files found.
bin/epm-kernel_update
View file @
bc1f0adf
...
...
@@ -39,6 +39,10 @@ elif [ -f "$EFI/refind_linux.conf" ]; then
entry_file
=
"
$EFI
/refind_linux.conf"
options
=
"Boot with standard options"
bootloader
=
"refind"
elif
[
-f
"
$EFI
/limine.conf"
]
;
then
entry_file
=
"
$EFI
/limine.conf"
options
=
"kernel_cmdline:"
bootloader
=
"limine"
fi
epm_kernel_update
()
...
...
@@ -108,6 +112,12 @@ esac
kernel_options_list
()
{
if
[
"
$bootloader
"
=
"refind"
]
;
then
grep
"^
\"
$options
\"
"
"
$entry_file
"
|
sed
's/^\"'
"
$options
"
'" //'
|
sed
's/\s*$//'
|
tr
' '
'\n'
elif
[
"
$bootloader
"
=
"limine"
]
;
then
echo
"=== All kernel command lines in Limine config ==="
grep
"^[[:space:]]*
$options
"
"
$entry_file
"
|
while
read
-r
line
;
do
echo
"
$line
"
|
sed
"s/^[[:space:]]*
${
options
}
[[:space:]]*//"
|
tr
' '
'\n'
echo
"---"
done
else
grep
"^
$options
"
"
$entry_file
"
|
sed
's/^"'
$options
'" //'
|
sed
's/\s*$//'
|
tr
' '
'\n'
fi
...
...
@@ -120,8 +130,10 @@ kernel_options_add () {
else
echo
"The string '
$search_string
' is not present in
$entry_file
"
echo
"Updating
$entry_file
"
if
[
$bootloader
=
"systemd"
]
;
then
if
[
"
$bootloader
"
=
"systemd"
]
;
then
sed
-i
"/^
$options
/ s~
\$
~
$search_string
~"
"
$entry_file
"
elif
[
"
$bootloader
"
=
"limine"
]
;
then
sed
-i
"/^[[:space:]]*
$options
/ s~
\$
~
$search_string
~"
"
$entry_file
"
else
sed
-i
"s|
\(
^
$options
[
\"
']
\)\(
.*
\)\(
[
\"
']
\)
|
\1\2
$search_string
\3
|"
"
$entry_file
"
fi
...
...
@@ -133,8 +145,12 @@ kernel_options_add () {
kernel_options_remove
()
{
for
remove_string
in
"
$@
"
;
do
if
grep
-qF
"
$remove_string
"
"
$entry_file
"
;
then
sed
-i
"s~
$remove_string
~~"
"
$entry_file
"
echo
"Removed '
$remove_string
' from the kernel parameters in
$entry_file
"
if
[
"
$bootloader
"
=
"limine"
]
;
then
sed
-i
"/^[[:space:]]*
$options
/ s~
$remove_string
~~g"
"
$entry_file
"
else
sed
-i
"s~
$remove_string
~~g"
"
$entry_file
"
fi
else
echo
"The string '
$remove_string
' is not present in
$entry_file
"
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment