Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
initramfs-with-mca
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
initramfs-with-mca
Commits
c44792dc
Commit
c44792dc
authored
Feb 24, 2023
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notes.sh: Add handy kernel version detection commands.
parent
e149a8a8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
notes.sh
notes.sh
+8
-0
No files found.
notes.sh
View file @
c44792dc
...
@@ -8,3 +8,11 @@ xfs_admin -l /dev/sda2
...
@@ -8,3 +8,11 @@ xfs_admin -l /dev/sda2
# set label to ROOT
# set label to ROOT
xfs_admin
-L
"ROOT"
/dev/sda2
xfs_admin
-L
"ROOT"
/dev/sda2
# get the package version of the next installation candidate
# (replace "Candidate" with "Installed" to get the current package version)
apt-cache policy linux-image-amd64 |
grep
Candidate |
awk
'{print $2}'
# get the current kernel revision and version
kernel_revision
=
$(
uname
-r
)
;
echo
${
kernel_revision
%-*
}
kernel_version
=
$(
uname
-v
|
cut
-d
' '
-f4
)
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