On Sun, 18 May 2014 18:09:32 +0200, Patrick Dupre wrote:

> OK, I understand, my point is that the inserted part is wrong!
> This is wrong:
>  linux   /vmlinuz-3.14.3-200.fc20.x86_64 root=/dev/mapper/VolGrpSys_DK0-root
> 
> It should be DK1 (not DK0). How does it get this information?

/sbin/new-kernel-pkg is a shell script. It is run from within the kernel
package scriptlets (via /bin/kernel-install). One part of it is:

    # get the root filesystem to use
    rootdevice=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' 
/etc/fstab 2>/dev/null)
    if [ "$rootdevice" = "" ];
    then
            rootdevice=`grep -o -P "(?<=root=)\S+" /proc/cmdline`
    fi

It passes on this device to grubby.
A little bit of debugging might lead to something.
What is found in /etc/fstab and /proc/cmdline for your machine?
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to