Re: update grub2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK,

Thank you.

I understand the mistake:
in /etc/fstab, there is
/dev/mapper/VolGrpSys_DK0-root /                       ext4    defaults        1 1
instead of:
/dev/mapper/VolGrpSys_DK1-root /                       ext4    defaults        1 1
However,
mount gives:
/dev/mapper/VolGrpSys_DK1-root on / type ext4 (rw,relatime,seclabel,stripe=2,data=ordered)

How is it possible?
Is / mounted before the reading of /etc/fstab (ie from grub2)?
And then because / is already mounted, it cannot be mounted again, then
why mount / in fstab then?

I am missing something.


> 
> 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@xxxxxxxxxxxxxxxxxxxxxxx
> 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


===========================================================================
 Patrick DUPRÉ                                 | | email: pdupre@xxxxxxx
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale           | |
 Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
===========================================================================
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
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




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux