Re: OFFLIST Re: [opensuse-es] Leap 42.1 y algunos problemitas
El día 2 de diciembre de 2015, 10:35, Carlos E. R. <robin.listas@telefonica.net> escribió:
On 2015-12-02 00:02, Juan Erbes wrote:
El día 1 de diciembre de 2015, 12:28, Carlos E. R. <robin.listas@telefonica.net> escribió:
A ver si con eso puedes arreglarlo :-)
Intenté, pero nada!
Va nuevo informe!
El /etc/grub.d/30_os-prober no ha cambiado, ese es el problema. Ese script es el que se encarga de buscar otros sistemas para arrancar, y si sólo tiene escrito buscar al Windows, pues eso es lo que hace.
No me has mandado el "/etc/default/grub"
Otra posibilidad es editar /etc/grub.d/40_custom:
He encontrado un ejemplo de un post que buscaban cómo arrancar el DVD directamente (y no recuerdo si funcionó), que te puede dar una idea de por donde van los hilos:
menuentry "*openSUSE 12.3 DVD*" { set isofile=*/openSUSE-12.3-DVD-x86_64.iso* set root=(*hd0,1*) loopback loop $isofile linux (loop)/boot/*x86_64*/loader/linux install=hd:$isofile initrd (loop)/boot/*x86_64*/loader/initrd }
En este caso sería usar set root, linux, initrd, para arrancar directamente otro kernel (y cuando actualizas, puede dejar de funcionar). Pero tiene que haber otra fórmula para cargar otro grub - a ver si la encuentro.
Otros ejemplos:
menuentry 'miniSUSE' { set root=(hd0,9) linux /boot/linux.vmx quiet splash=silent initrd /boot/initrd.vmx }
### entry to boot DOS 7 on "/dev/sda1" menuentry "Boot DOS 7 on /dev/sda1" { set root=(hd0,1) chainloader +1 }
menuentry "Mac OS Yosemite" { insmod chain insmod hfsplus set root='hd0,msdos3' chainloader +1 }
A ver. Esta se acerca a lo que busco:
menuentry "configfile for Arch on /dev/sda4" { set bootdir='hd1,gpt4' search --fs-uuid --set=bootdir cb44c7f1-143f-41ee-b24d-034a528ca6d2 configfile (${bootdir})/boot/grub/grub.cfg }
En tu caso, podrías poner algo como (en el del leap, sda1):
menuentry "configfile for oldlinux on /dev/sdb1" { set bootdir='hd1,msdos1' search --fs-uuid --set=bootdir d829a0d3-2166-4a6c-8836-0cba393b74a1 configfile (${bootdir})/boot/grub/grub.cfg }
Y luego tienes que ejecutar "grub2-mkconfig -o /boot/grub2/grub.cfg" para activarlo.
Ignoro si funcionaría.
Te hice caso solamente en parte. Opté por copiar la seccion principal de la otra partición linux con 13.2 del archivo: /boot/grub/grub.cfg Dentro de /etc/grub.d/40_custom El cual quedó así: #!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. Opensuse 13.2 menuentry 'openSUSE 13.2' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-d829a0d3-2166-4a6c-8836-0cba393b74a1' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod btrfs set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd0,msdos1' d829a0d3-2166-4a6c-8836-0cba393b74a1 else search --no-floppy --fs-uuid --set=root d829a0d3-2166-4a6c-8836-0cba393b74a1 fi echo 'Cargando Linux 3.16.7-29-desktop...' linux /boot/vmlinuz-3.16.7-29-desktop root=UUID=d829a0d3-2166-4a6c-8836-0cba393b74a1 ${extra_cmdline} resume=/dev/disk/by-uuid/b72cc926-db3a-427b-8aad-bdc1e812bb6b splash=silent quiet showopts echo 'Cargando imagen de memoria inicial...' initrd /boot/initrd-3.16.7-29-desktop } Luego de lo cual ejecuté, tal como me indicaste: "grub2-mkconfig -o /boot/grub2/grub.cfg" Funciona perfecto, aunque es un método un poco sucio, porque si actualizo el kernel de la otra partición, ya no va a funcionar. Tendría que probar y depurar una versión mas generica, como me sugeriste tu, que no estipule la versión del kernel y nada de seteos especificos. Salu2 -- USA LINUX OPENSUSE QUE ES SOFTWARE LIBRE, NO NECESITAS PIRATEAR NADA Y NI TE VAS A PREOCUPAR MAS POR LOS VIRUS Y SPYWARES: http://www.opensuse.org/es/ Puedes visitar mi blog en: http://jerbes.blogspot.com.ar/ -- Para dar de baja la suscripción, mande un mensaje a: opensuse-es+unsubscribe@opensuse.org Para obtener el resto de direcciones-comando, mande un mensaje a: opensuse-es+help@opensuse.org
participants (1)
-
Juan Erbes