Path: csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod From: Dejan Jocic Newsgroups: linux.debian.user Subject: Re: System broken after yesterday's upgrade Date: Thu, 13 Apr 2017 11:20:02 +0200 Message-ID: References: X-Original-To: debian-user@lists.debian.org X-Mailbox-Line: From debian-user-request@lists.debian.org Thu Apr 13 09:12:46 2017 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.699 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FOURLA=0.1, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -7 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=CwkF6eDskBOIXSJ9TmCrHKHP5z/a9QgBoWVKxJzZI0Y=; b=S/tnY1s7fcc/+/UQDtnwD3uqAMsPdCWD8gFIAlIo1vqc0FepRZDSSbr0LOedCNm2W+ ZC7p6ovuHoBlua/jLDAbOJMz9D8R0ckceWKfQ6Jpmlfq/a19bvikpWZQr+cbfVPt6BIN rPnGc+xRgZPnlsOzsriF6uZ7M1suYMBX6IG8+iMCDn+ruGzDwuMbsGEmm+31zRANeVqs iwlz7QIO8cXsasAfovmZs/5UpzXbhuA6bLBuhHbkyMmti1NA5+YyQfVRPK1b+M0OgE2g 1UIzbmbbhmLbY+bXkFrw5uOuRzUua08X+XUmdyWKbpTiRXVHOxgD6YCfW3cd9r2FD+BX rFvw== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=CwkF6eDskBOIXSJ9TmCrHKHP5z/a9QgBoWVKxJzZI0Y=; b=P+GzjgowMd+YZHmwrHCOLUifFEvrV0lS+5R9B+OStRXjOLj+lkVsVGXt7Pq3+a5h/0 cgH4KAgbg7t39ik4qFEFuaAr+n4/B25H1x2Q1/Gy8A3URVe4kjcGOkaT5RpYzjhLGna9 I+ZdFKmuuEPFK2RuvKam5CcjQE/lajkzLAmnHCBMHQRlRwPmFB5bcKGM2IHF8CsRkVQS eMokUjH4lwPT4vcJRamedbE4hDpTm3VW2bfXFi2ojAVYYi8lm9S2YJ2H0cogkZ57+CeA PzeuA8cZnTxhq4uGX1BXvoHcQWoGzNHAqkDKnTXCH8EqLW1IPPJiLS5JjDVSvLzVu3Lh fxLw== X-Gm-Message-State: AN3rC/47ckDoKO7RQaYwDiQblMLsdXWbnpvKBcjL6+kTUdR/4TwUT1+B 82ziJ4e8IiLM6Qbd X-Received: by 10.28.88.129 with SMTP id m123mr2403030wmb.28.1492074752259; Thu, 13 Apr 2017 02:12:32 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) X-Mailing-List: archive/latest/719670 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20170413091229.n3k6vdupwxazeqzm@ddeb.ddeb.net Approved: robomod@news.nic.it Lines: 51 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 13 Apr 2017 11:12:29 +0200 X-Original-Message-ID: <20170413091229.n3k6vdupwxazeqzm@ddeb.ddeb.net> X-Original-References: <3737524.eWTDcC6USI@alan> <2556331.nQvLYWRtmO@alan> <20170413075305.5fcwppbkx2km65v3@ddeb.ddeb.net> <16397820.Zg3W7yiWEa@alan> Xref: csiph.com linux.debian.user:180054 On 13-04-17, solitone wrote: > On Thursday, 13 April 2017 09:53:05 CEST Dejan Jocic wrote: > > If you have old kernel, you do not have to choose it in the GRUB menu during > > boot, you can set up your GRUB to boot from it automatically. > > I have a submenu entry in my grub.cfg: > > solitone@alan:~$ grep --color menu /boot/grub/grub.cfg > [...] > menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu -- > class os $menuentry_id_option 'gnulinux-simple-7f537d3b-e578-4cd3-8583- > f3a2281f7d01' { > submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option > 'gnulinux-advanced-7f537d3b-e578-4cd3-8583-f3a2281f7d01' { > menuentry 'Debian GNU/Linux, with Linux 4.9.0-2-amd64' --class debian > --class gnu-linux --class gnu --class os $menuentry_id_option > 'gnulinux-4.9.0-2-amd64-advanced-7f537d3b-e578-4cd3-8583-f3a2281f7d01' { > menuentry 'Debian GNU/Linux, with Linux 4.9.0-2-amd64 (systemd)' -- > class debian --class gnu-linux --class gnu --class os $menuentry_id_option > 'gnulinux-4.9.0-2-amd64-init-systemd-7f537d3b-e578-4cd3-8583-f3a2281f7d01' { > menuentry 'Debian GNU/Linux, with Linux 4.9.0-2-amd64 (recovery mode)' > --class debian --class gnu-linux --class gnu --class os $menuentry_id_option > 'gnulinux-4.9.0-2-amd64-recovery-7f537d3b-e578-4cd3-8583-f3a2281f7d01' { > menuentry 'Debian GNU/Linux, with Linux 4.9.0-1-amd64' --class debian > --class gnu-linux --class gnu --class os $menuentry_id_option > 'gnulinux-4.9.0-1-amd64-advanced-7f537d3b-e578-4cd3-8583-f3a2281f7d01' { > menuentry 'Debian GNU/Linux, with Linux 4.9.0-1-amd64 (systemd)' -- > class debian --class gnu-linux --class gnu --class os $menuentry_id_option > 'gnulinux-4.9.0-1-amd64-init-systemd-7f537d3b-e578-4cd3-8583-f3a2281f7d01' { > menuentry 'Debian GNU/Linux, with Linux 4.9.0-1-amd64 (recovery mode)' > --class debian --class gnu-linux --class gnu --class os $menuentry_id_option > 'gnulinux-4.9.0-1-amd64-recovery-7f537d3b-e578-4cd3-8583-f3a2281f7d01' { > > To automatically load 'Debian GNU/Linux, with Linux 4.9.0-1-amd64' I need to > set : > GRUB_DEFAULT="1>3" > in /etc/default/grub? > > Cheers, > Davide > You can set it with numbers, but you can set it also with quotes, like for example: GRUB_DEFAULT='gnulinux-4.9.0-1-amd64-advanced-7f537d3b-e578-4cd3-8583-f3a2281f7d01' Which should be kind of more secure way if you do not to want to miss what you exactly want with numbers. Anyway, however that you do it, after that you will need to run # update-grub.