You are not logged in.

#1 2011-05-27 14:53:29

d2_racing
Staff
From: Québec (Canada)
Registered: 2010-10-05
Posts: 423
Website

Boot-update 1.5.2 scan command feature bug

Hi Daniel, one of my Funtoo-Quebec users(Mathieu Tarral) is testing boot-update 1.5.2 with the multi-distro support that I requested a while ago.
I found 2 bugs when I was helping him debugging his current setup.

1. The found scan doesn't mount automatically before doing the scan if necessary.
2. The linux entry is invalid when the scan fonction works, because it return the mount point instead of the / or /boot with the kernel name.

   Finally, the root param is there twice too.
His current setup : 

    /dev/sda9               none            swap            sw              0 0

    /dev/sda7               /               ext4            noatime         0 1

    /dev/sda8               /home           ext4            defaults        0 2

    /dev/cdrom              /mnt/cdrom      auto            noauto,ro       0 0

    /dev/sda5   /mnt/kubuntu        ext4    users,defaults,noauto,noatime 0 5

    /dev/sda6   /mnt/archlinux      ext4    users,defaults,noauto,noatime 0 6

    #windows 7
    /dev/sda2   /media/windows      ntfs    users,defaults,uid=1000,gid=1000        0 7

His mount after mounting his stuff :

    rootfs on / type rootfs (rw)

    /dev/sda7 on / type ext4 (rw,noatime,commit=0)

    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)

    rc-svcdir on /libexec/rc/init.d type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755)

    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)

    udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)

    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)

    shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)

    fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)

    /dev/sda8 on /home type ext4 (rw,commit=0)

    /dev/sdb1 on /media/Data type ext4 (rw,commit=0)

    usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)

    /dev/sda2 on /media/windows type ntfs (ro,noexec,nosuid,nodev,uid=1000,gid=1000)

    /dev/sdc1 on /media/Tera Externe type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)

    /dev/sda6 on /mnt/archlinux type ext4 (rw,noexec,nosuid,nodev,noatime)

    /dev/sda5 on /mnt/kubuntu type ext4 (rw,noexec,nosuid,nodev,noatime)

His /etc/boot.conf :

    boot {
            generate grub
            default "Funtoo Linux"
            timeout 10
    }

    "Funtoo Linux" {
            kernel bzImage[-v]
    }

    "Funtoo Linux genkernel" {
            kernel kernel[-v]
            initrd initramfs[-v]
            params += real_root=auto
    }
    "Windows 7" {
            type win7
            params root=/dev/sda1
    }
    "Archlinux" {
            scan /mnt/archlinux/boot
            kernel vmlinuz26[-v]
            initrd kernel26.img
            params += root=/dev/sda6

    }
    "Kubuntu" {
            scan /mnt/kubuntu/boot
            kernel vmlinuz[-v]
            initrd initrd.img[-v]
            params += root=/dev/sda5
    }

The execution :

boot-update 1.5.2 / Copyright 2009-2011 Funtoo Technologies
[use option "-l" for license info, "-h" for help]
* Generating config for grub...
* No /etc/fstab entry for /boot; not mounting.
* Validating config file /boot/grub/grub.cfg
* Backing up original config file to /boot/grub/grub.cfg.old
* Writing new config file to /boot/grub/grub.cfg
* Done.
DEFAULT > Kubuntu - vmlinuz-2.6.35-25-generic
          Kubuntu - vmlinuz-2.6.35-27-generic
           Archlinux - vmlinuz26
           Funtoo Linux genkernel - kernel-genkernel-x86_64-2.6.38-gentoo
           Windows 7
* WARN : No boot/default match found - using first boot entry by default.
* Configuration file /boot/grub/grub.cfg generated - 50 lines.
* Completed successfully with warnings.

The result :

# cat /boot/grub/grub.cfg

    set timeout=10
    menuentry "Kubuntu - vmlinuz-2.6.35-25-generic" {
    insmod part_msdos
    insmod ext2
    set root=(hd0,5)
    search --no-floppy --fs-uuid --set ea51ad64-c946-4a66-96d9-8b77929a1490
    linux /mnt/kubuntu/boot/vmlinuz-2.6.35-25-generic root=/dev/sda5 root=/dev/sda7 rootfstype=ext4
    initrd /mnt/kubuntu/boot/initrd.img-2.6.35-25-generic
    set gfxpayload=keep
    }

    menuentry "Kubuntu - vmlinuz-2.6.35-27-generic" {
    insmod part_msdos
    insmod ext2
    set root=(hd0,5)
    search --no-floppy --fs-uuid --set ea51ad64-c946-4a66-96d9-8b77929a1490
    linux /mnt/kubuntu/boot/vmlinuz-2.6.35-27-generic root=/dev/sda5 root=/dev/sda7 rootfstype=ext4
    initrd /mnt/kubuntu/boot/initrd.img-2.6.35-27-generic
    set gfxpayload=keep
    }

   menuentry "Archlinux - vmlinuz26" {
   insmod part_msdos
   insmod ext2
   set root=(hd0,6)
   search --no-floppy --fs-uuid --set 974dd00d-cc64-4976-b3b2-343c7cba5089
   linux /mnt/archlinux/boot/vmlinuz26 root=/dev/sda6 root=/dev/sda7 rootfstype=ext4
   initrd /mnt/archlinux/boot/kernel26.img
   set gfxpayload=keep
   }

  menuentry "Funtoo Linux genkernel - kernel-genkernel-x86_64-2.6.38-gentoo" {

      insmod part_msdos
      insmod ext2
      set root=(hd0,7)
      search --no-floppy --fs-uuid --set 4471030c-d546-417f-bb19-2894097bed00
      linux /boot/kernel-genkernel-x86_64-2.6.38-gentoo real_root=/dev/sda7
      initrd /boot/initramfs-genkernel-x86_64-2.6.38-gentoo
      set gfxpayload=keep

    }
 
   menuentry "Windows 7" {
   insmod part_msdos
   insmod ntfs
   set root=(hd0,1)
   search --no-floppy --fs-uuid --set c49a2d649a2d5468
   chainloader +4
   }

    set default=0
    

For his concern, he expected to have this :

    menuentry "Kubuntu - vmlinuz-2.6.35-25-generic" {
    insmod part_msdos
    insmod ext2
    set root=(hd0,5)
    linux /boot/vmlinuz-2.6.35-25-generic root=/dev/sda5 rootfstype=ext4
    initrd /boot/initrd.img-2.6.35-25-generic
    set gfxpayload=keep
   }

    menuentry "Kubuntu - vmlinuz-2.6.35-27-generic" {
    insmod part_msdos
    insmod ext2
    set root=(hd0,5)
    linux /boot/vmlinuz-2.6.35-27-generic root=/dev/sda5 rootfstype=ext4
    initrd /boot/initrd.img-2.6.35-27-generic
    set gfxpayload=keep
   }
   menuentry "Archlinux - vmlinuz26" {
   insmod part_msdos
   insmod ext2
   set root=(hd0,6)
   linux /boot/vmlinuz26 root=/dev/sda6 rootfstype=ext4
   initrd /mnt/boot/kernel26.img
   set gfxpayload=keep
 
    }

Daniel, it's not a big deal, because he changed the linux path and now it's working good, until the next time that he run boot-update tongue

Last edited by d2_racing (2011-05-27 14:53:50)

Offline

#2 2011-05-27 16:55:59

drobbins
Head Honcho
From: Albuquerque, NM, USA
Registered: 2010-10-04
Posts: 334
Website

Re: Boot-update 1.5.2 scan command feature bug

The fix for the extra root= on the kernel cmdline is to use params = instead of params =+. The other stuff, I will need to fix.

Offline

#3 2011-09-12 17:20:43

d2_racing
Staff
From: Québec (Canada)
Registered: 2010-10-05
Posts: 423
Website

Re: Boot-update 1.5.2 scan command feature bug

Any update on this one ?

Offline

Board footer

Powered by FluxBB