Como adicionar uma entrada de menu para testar o kernel no GRUB2?

0

Instalei o Ubuntu em uma unidade USB e minha tabela de partições é

Disk /dev/sdb: 14.5 GiB, 15514730496 bytes, 30302208 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xb643db4f

 Device     Boot    Start      End  Sectors  Size Id     Type
/dev/sdb1  *        2048 20537343 20535296  9.8G  83     Linux
/dev/sdb2       20539390 30300159  9760770  4.7G   5     Extended
/dev/sdb5       20539392 30300159  9760768  4.7G  82     Linux swap / Solaris

Eu criei meu kernel seguindo este link link

quando eu adiciono menuentry em etc / default / grub (grub.cfg)

menuentry 'mykernel' {
    set root='(hd1,msdos1)'
    multiboot /boot/mykernel-01 ro
}

e quando executar o comando

update-grub
isso dá erro
/usr/sbin/grub-mkconfig: 6: /etc/default/grub: menuentry: not found

Como posso resolver este problema?

    
por suleman 11.03.2017 / 17:28

0 respostas