Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
archutils
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
archutils
Commits
e21b6776
Commit
e21b6776
authored
4 months ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
kernel-reinstall: use kernel-install add-all
parent
258ba506
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kernel-reinstall
+1
-17
1 addition, 17 deletions
kernel-reinstall
with
1 addition
and
17 deletions
kernel-reinstall
+
1
−
17
View file @
e21b6776
...
...
@@ -19,20 +19,4 @@
# Check running systemd services for binary update
# Convenient way to restart updated systemd service after upgrade
# from now, we need to be root
((
$UID
!=
0
))
&&
echo
'You need to be root'
&&
exit
1
read
machineid < /etc/machine-id
echo
"Your machine-id is
$machineid
"
cd
"/usr/lib/kernel"
for
_k
in
*
;
do
[[
-d
"
$_k
"
]]
&&
continue
[[
"
$(
file
-b
"
$_k
"
)
"
=
~ ^
"Linux kernel"
]]
||
continue
ver
=
${
_k
#*-
}
if
[[
-d
"/boot/
$machineid
/
$ver
"
]]
;
then
kernel-install remove
"
$ver
"
fi
kernel-install add
"
$ver
"
"/usr/lib/kernel/
$_k
"
done
exec
kernel-install add-all
"
$@
"
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