{"id":11765,"date":"2024-06-23T22:51:27","date_gmt":"2024-06-23T20:51:27","guid":{"rendered":"https:\/\/monodes.com\/predaelli\/?p=11765"},"modified":"2024-06-23T22:51:29","modified_gmt":"2024-06-23T20:51:29","slug":"which-kernel-version-will-be-booted-next-time","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2024\/06\/23\/which-kernel-version-will-be-booted-next-time\/","title":{"rendered":"Which kernel version will be booted next time?"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>One approach is to parse the default kernel from GRUB configurations. The default GRUB menu entry can be detected, for example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">grep GRUB_DEFAULT \/etc\/default\/grub | cut -d &#039;=&#039; -f 2<\/code><\/pre>\n\n\n\n<p>Then get the menu entries from GRUB config, like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">grep -A 15 &#039;^menuentry&#039; \/boot\/grub\/grub.cfg | grep -o -P &#039;vmlinuz-\\S+&#039;<\/code><\/pre>\n<\/blockquote>\n\n\n\n<p>Source: <em><a href=\"https:\/\/unix.stackexchange.com\/questions\/556304\/how-to-get-the-kernel-version-of-the-next-boot-from-a-script\">How to get the kernel version of the next boot from a script &#8211; Unix &amp; Linux Stack Exchange<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">Source: How to get the kernel version of the next boot from a script &#8211; Unix &amp; Linux Stack Exchange<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2024\/06\/23\/which-kernel-version-will-be-booted-next-time\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"quote","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federated","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1,278],"tags":[],"class_list":["post-11765","post","type-post","status-publish","format-quote","hentry","category-senza-categoria","category-tricks","post_format-post-format-quote"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-33L","jetpack-related-posts":[{"id":981,"url":"https:\/\/monodes.com\/predaelli\/2016\/02\/01\/cryptography-linux-and-me-grub2-a-rundown\/","url_meta":{"origin":11765,"position":0},"title":"Cryptography, Linux, and me: GRUB2 &#8211; A Rundown","author":"Paolo Redaelli","date":"2016-02-01","format":false,"excerpt":"Useful stuffs to manage GRUB:\u00a0 Cryptography, Linux, and me: GRUB2 - A Rundown I've spent an inordinate amount of time today going over GRUB2 for my upcoming\u00a0RHCSA exam. I probably went overboard. If you are like me (scratching your head at GRUB2 wishing it would go back to \"the way\u2026","rel":"","context":"In &quot;GNU\/Linux&quot;","block_context":{"text":"GNU\/Linux","link":"https:\/\/monodes.com\/predaelli\/category\/gnulinux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2174,"url":"https:\/\/monodes.com\/predaelli\/2017\/02\/19\/how-to-install-ubuntu-on-computer-with-uefi\/","url_meta":{"origin":11765,"position":1},"title":"How to install Ubuntu on computer with UEFI","author":"Paolo Redaelli","date":"2017-02-19","format":false,"excerpt":"How to install Ubuntu on computer with UEFI Nice! I may just need it soon. My wife asked for a new laptop. But while she finds Linux great - I've been exclusively using Linux since 1997 - some software requires for schooling out children sadly runs only on Windows. So\u2026","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7730,"url":"https:\/\/monodes.com\/predaelli\/2020\/11\/05\/7730\/","url_meta":{"origin":11765,"position":2},"title":"View this gist on GitHub\u2026","author":"Paolo Redaelli","date":"2020-11-05","format":false,"excerpt":"View this gist on GitHub Nel caso vada fuori linea vedi pagina 2 Signing VirtualBox Kernel Modules These are the steps I followed enable VirtualBox on my laptop without disabling UEFI Secure Boot. They're nearly identical to the process described on \u00d8yvind Stegard's blog, save for a few key details.\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"sparkles","src":"https:\/\/i0.wp.com\/github.githubassets.com\/images\/icons\/emoji\/unicode\/2728.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":11581,"url":"https:\/\/monodes.com\/predaelli\/2024\/04\/08\/5-tips-to-speed-up-linux-software-raid-rebuilding-and-re-syncing-nixcraft\/","url_meta":{"origin":11765,"position":3},"title":"5 Tips To Speed Up Linux Software Raid Rebuilding And Re-syncing &#8211; nixCraft","author":"Paolo Redaelli","date":"2024-04-08","format":false,"excerpt":"Speed Up Linux Software Raid: Various commands tips to increase the speed of Linux Software RAID 0\/1\/5\/6\/10 reconstruction and rebuild time Source: 5 Tips To Speed Up Linux Software Raid Rebuilding And Re-syncing - nixCraft 5 Tips To Speed Up Linux Software Raid Rebuilding And Re-syncing Author:Vivek GiteLast updated:April 7,\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6167,"url":"https:\/\/monodes.com\/predaelli\/2019\/10\/09\/android-is-not-open-source\/","url_meta":{"origin":11765,"position":4},"title":"Android is NOT open source","author":"Paolo Redaelli","date":"2019-10-09","format":false,"excerpt":"Now I know I've done the-right-thing supporting Librem5. I knew that almost all phones comes with a proprietary OS, either the prison-ware iOS or proprietary derivative of Android. Yet I wasn't aware that the situation is SO bad. Read this. Android is not open source - The Quantified VC -\u2026","rel":"","context":"In &quot;Ethics&quot;","block_context":{"text":"Ethics","link":"https:\/\/monodes.com\/predaelli\/category\/ethics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2019\/10\/x3mo7R1b52BI_whuA_YLXQ-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2019\/10\/x3mo7R1b52BI_whuA_YLXQ-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2019\/10\/x3mo7R1b52BI_whuA_YLXQ-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2019\/10\/x3mo7R1b52BI_whuA_YLXQ-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":13816,"url":"https:\/\/monodes.com\/predaelli\/2025\/07\/22\/stop-gnome-software-background\/","url_meta":{"origin":11765,"position":5},"title":"Stop GNOME Software Background","author":"Paolo Redaelli","date":"2025-07-22","format":false,"excerpt":"To avoid GNOME Software from running in the background, you can take several approaches based on the solutions discussed in the context. One effective method is to disable the autostart entry for GNOME Software. This can be done by copying the file \/etc\/xdg\/autostart\/gnome-software-service.desktop to ~\/.config\/autostart and adding X-GNOME-Autostart-enabled=false at the\u2026","rel":"","context":"In &quot;Tricks&quot;","block_context":{"text":"Tricks","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/tricks\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/11765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=11765"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/11765\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=11765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=11765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=11765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}