Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kernel-install-poc
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
archlinux
kernel-install-poc
Commits
23450fd1
Commit
23450fd1
authored
3 months ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
Bump 2024.11.17-1
- Fix match kernels in modules directory
parent
f9fc73a8
No related branches found
No related tags found
No related merge requests found
Pipeline
#707
passed with stages
Stage: build
Stage: deploy
in 5 minutes and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
PKGBUILD
+2
-2
2 additions, 2 deletions
PKGBUILD
hook.sh
+10
-7
10 additions, 7 deletions
hook.sh
with
12 additions
and
9 deletions
PKGBUILD
+
2
−
2
View file @
23450fd1
# Maintainer: Sébastien Luttringer <seblu@seblu.net>
pkgname
=(
kernel-install-hook kernel-install-compat kernel-install-grub
)
pkgver
=
2024.1
0.0
7
pkgver
=
2024.1
1.1
7
pkgrel
=
1
arch
=(
'any'
)
url
=
'https://git.seblu.net/archlinux/kernel-install-poc'
...
...
@@ -12,7 +12,7 @@ source=('hook.sh'
'50-mkinitcpio-compat.install'
'90-loaderentry-compat.install'
'95-grub-update.install'
)
sha224sums
=(
'0
1cff51f05c8b381117a564569a68df8e4a15fbc97a7804c5f0bb99f
'
sha224sums
=(
'0
fe7665cb1b04ab3cba97388efc90cf6ac84b4373117fb8af63cffdd
'
'ae0813a7f42a11efb02c03c7ab80671ff756b17109f4481fbe756bcb'
'32fbc4e69a3c9a6d917aed2f9e3b7a05b63a1bec8bd5002e6067b731'
'caaec9eeb5d6616d2e9fcbfa4255d0fcddd7d43af19e95319a683889'
...
...
This diff is collapsed.
Click to expand it.
hook.sh
+
10
−
7
View file @
23450fd1
...
...
@@ -27,21 +27,24 @@ if (( EUID )); then
echo
'You must be root.'
>
&2
exit
1
fi
# check args count
((
$#
!=
1
))
&&
usage
while
read
-r
path
;
do
kpath
=
"/
$path
"
kver
=
"
${
path
##*/vmlinuz-
}
"
if
[[
-z
"
$kver
"
]]
;
then
echo
"Unable to guess kernel version:
$path
"
>
&2
if
[[
"
$path
"
=
~ /
([
^/]+
)
/vmlinuz
$
]]
;
then
# path looks like /usr/lib/modules/$kver/vmlinuz
kver
=
"
${
BASH_REMATCH
[1]
}
"
elif
[[
"
$path
"
=
~ /vmlinuz-
([
^/]+
)
$
]]
;
then
# path looks like usr/lib/kernel/vmlinuz-$kver
kver
=
"
${
BASH_REMATCH
[1]
}
"
else
echo
"
${
0
##*/
}
: Unsupported kernel path format:
$path
"
>
&2
continue
fi
case
"
$1
"
in
add
)
kernel-install add
"
$kver
"
"
$
k
path
"
;;
kernel-install add
"
$kver
"
"
/
$path
"
;;
remove
)
kernel-install remove
"
$kver
"
;;
*
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment