Commit c44792dc authored by Ophélie Gagnard's avatar Ophélie Gagnard

notes.sh: Add handy kernel version detection commands.

parent e149a8a8
...@@ -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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment