{"id":124,"date":"2024-05-03T10:01:44","date_gmt":"2024-05-03T08:01:44","guid":{"rendered":"https:\/\/tomas.varhaug.net\/?p=124"},"modified":"2024-05-03T10:01:44","modified_gmt":"2024-05-03T08:01:44","slug":"grub-remember-last-choice","status":"publish","type":"post","link":"https:\/\/tomas.varhaug.net\/?p=124","title":{"rendered":"GRUB &#8211; Remember last choice"},"content":{"rendered":"\n<p><a href=\"https:\/\/askubuntu.com\/posts\/149572\/timeline\"><\/a>All variables in&nbsp;<code>\/etc\/default\/grub<\/code>&nbsp;start with&nbsp;<code>GRUB_<\/code>, so the correct syntax is&nbsp;<code>GRUB_DEFAULT=saved<\/code>,&nbsp;<em>not<\/em>&nbsp;<code>DEFAULT=saved<\/code>. <\/p>\n\n\n\n<p>The&nbsp;<a href=\"https:\/\/www.gnu.org\/software\/grub\/manual\/grub.html#Simple-configuration\">official grub manual<\/a>&nbsp;describes this correctly.<br>Put the following in&nbsp;<code>\/etc\/default\/grub<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>GRUB_DEFAULT=saved\nGRUB_SAVEDEFAULT=true\n<\/code><\/pre>\n\n\n\n<p>Then run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo update-grub\n<\/code><\/pre>\n\n\n\n<p>Ref: <a href=\"https:\/\/askubuntu.com\/questions\/148662\/how-to-get-grub2-to-remember-last-choice\">https:\/\/askubuntu.com\/questions\/148662\/how-to-get-grub2-to-remember-last-choice<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>All variables in&nbsp;\/etc\/default\/grub&nbsp;start with&nbsp;GRUB_, so the correct syntax is&nbsp;GRUB_DEFAULT=saved,&nbsp;not&nbsp;DEFAULT=saved. The&nbsp;official grub manual&nbsp;describes this correctly.Put the following in&nbsp;\/etc\/default\/grub: Then run: Ref: https:\/\/askubuntu.com\/questions\/148662\/how-to-get-grub2-to-remember-last-choice<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[13],"class_list":["post-124","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-linux"],"_links":{"self":[{"href":"https:\/\/tomas.varhaug.net\/index.php?rest_route=\/wp\/v2\/posts\/124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tomas.varhaug.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tomas.varhaug.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tomas.varhaug.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tomas.varhaug.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=124"}],"version-history":[{"count":2,"href":"https:\/\/tomas.varhaug.net\/index.php?rest_route=\/wp\/v2\/posts\/124\/revisions"}],"predecessor-version":[{"id":126,"href":"https:\/\/tomas.varhaug.net\/index.php?rest_route=\/wp\/v2\/posts\/124\/revisions\/126"}],"wp:attachment":[{"href":"https:\/\/tomas.varhaug.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tomas.varhaug.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tomas.varhaug.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}