Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@runtime:/home/vagrant#
- root@runtime:/home/vagrant# apt-get install grub-common
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- grub-common is already the newest version (2.02~beta3-4ubuntu2.2).
- 0 upgraded, 0 newly installed, 0 to remove and 141 not upgraded.
- root@runtime:/home/vagrant# grub2-editenv list
- No command 'grub2-editenv' found, did you mean:
- Command 'grub-editenv' from package 'grub-common' (main)
- grub2-editenv: command not found
- root@runtime:/home/vagrant# grub2-editenv list^C
- root@runtime:/home/vagrant# grub-editenv
- You need to specify at least one command.
- Usage: grub-editenv [OPTION...] FILENAME COMMAND
- Try 'grub-editenv --help' or 'grub-editenv --usage' for more information.
- root@runtime:/home/vagrant# grub-editenv list
- saved_entry=3
- root@runtime:/home/vagrant# awk -F\' '/menuentry / {print $2}' /boot/grub/grub.cfg
- Ubuntu
- Ubuntu, with Linux 4.10.0-38-generic
- Ubuntu, with Linux 4.10.0-38-generic (recovery mode)
- Ubuntu, with Linux 4.10.0-19-generic
- Ubuntu, with Linux 4.10.0-19-generic (recovery mode)
- Ubuntu, with Linux 4.9.68-040968-generic
- Ubuntu, with Linux 4.9.68-040968-generic (recovery mode)
- root@runtime:/home/vagrant# grub-editenv list^C
- root@runtime:/home/vagrant# uname -a
- Linux runtime 4.10.0-38-generic #42-Ubuntu SMP Tue Oct 10 13:24:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
- root@runtime:/home/vagrant# awk -F\' '/menuentry / {print $2}' /boot/grub/grub.cfg
- Ubuntu
- Ubuntu, with Linux 4.10.0-38-generic
- Ubuntu, with Linux 4.10.0-38-generic (recovery mode)
- Ubuntu, with Linux 4.10.0-19-generic
- Ubuntu, with Linux 4.10.0-19-generic (recovery mode)
- Ubuntu, with Linux 4.9.68-040968-generic
- Ubuntu, with Linux 4.9.68-040968-generic (recovery mode)
- root@runtime:/home/vagrant# grub-editenv list
- saved_entry=3
- root@runtime:/home/vagrant# apt-get install grub-commongrub2-set-default 'Fedora Linux, with Linux 3.1.2-1.fc16.x86_64'^C
- root@runtime:/home/vagrant# grub-set-default 'Fedora Linux, with Linux 3.1.2-1.fc16.x86_64'
- Searching for GRUB installation directory ... found: /boot/grub
- root@runtime:/home/vagrant# grub-set-default 'Fedora Linux, with Linux 3.1.2-1.fc16.x86_64^C
- root@runtime:/home/vagrant# vim /boot/
- abi-4.10.0-19-generic config-4.10.0-19-generic grub/ initrd.img-4.9.68-040968-generic System.map-4.9.68-040968-generic vmlinuz-4.9.68-040968-generic
- abi-4.10.0-38-generic config-4.10.0-38-generic initrd.img-4.10.0-19-generic System.map-4.10.0-19-generic vmlinuz-4.10.0-19-generic
- abi-4.9.68-040968-generic config-4.9.68-040968-generic initrd.img-4.10.0-38-generic System.map-4.10.0-38-generic vmlinuz-4.10.0-38-generic
- root@runtime:/home/vagrant# vim /boot/grub/
- default fonts/ gfxblacklist.txt grub.cfg grubenv i386-pc/ locale/ menu.lst menu.lst~ unicode.pf2
- root@runtime:/home/vagrant# vim /boot/grub/menu.lst
- root@runtime:/home/vagrant# ^C
- root@runtime:/home/vagrant# grub-editenv list
- saved_entry=Fedora Linux, with Linux 3.1.2-1.fc16.x86_64
- root@runtime:/home/vagrant#
Add Comment
Please, Sign In to add comment