Ubuntu Pastebin

Paste from curtis at Thu, 27 Oct 2016 15:40:29 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
I want to set grub to boot the older 3.19.0-66-generic kernel need by
virsh on ppc64el.

$ egrep 'menuentry |submenu ' /boot/grub/grub.cfg
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b48ceb0e-0652-4830-b2ae-96fcc1509519' {
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-b48ceb0e-0652-4830-b2ae-96fcc1509519' {
    menuentry 'Ubuntu, with Linux 4.4.0-45-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-45-generic-advanced-b48ceb0e-0652-4830-b2ae-96fcc1509519' {
    menuentry 'Ubuntu, with Linux 4.4.0-45-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-45-generic-recovery-b48ceb0e-0652-4830-b2ae-96fcc1509519' {
    menuentry 'Ubuntu, with Linux 3.19.0-66-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-66-generic-advanced-b48ceb0e-0652-4830-b2ae-96fcc1509519' {
    menuentry 'Ubuntu, with Linux 3.19.0-66-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-66-generic-recovery-b48ceb0e-0652-4830-b2ae-96fcc1509519' {

I changed /etc/default/grub to:
GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 3.19.0-66-generic"

I ran:
$ sudo update-grub

I checked:
$ egrep 'default=' /boot/grub/grub.cfg
   set default="${next_entry}"
   set default="Advanced options for Ubuntu>Ubuntu, with Linux 3.19.0-66-generic"

I rebooted
$ sudo reboot -n

But I see the newer kernel was used:
$ uname -a
Linux borbein 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:13:11 UTC 2016 ppc64le ppc64le ppc64le GNU/Linux
Download as text