On Oct 15, 2014, at 11:49 PM, Stefan Huchler <stefan.huch...@mail.de> wrote:

> here some infos
> 
> dnf reinstall kernel -v
> 
> http://ix.io/eMK
> 
> and my rootfs/home (btrfs) mounts:
> 
> /dev/sda on / type btrfs (rw,noatime,compress=lzo,ssd,discard,space_cache)
> /dev/sda on /home type btrfs (rw,noatime,compress=lzo,ssd,discard,space_cache)

Where is /boot? Is it a directory on /  which is on Btrfs? If so, I know what 
the problem is. Grubby doesn't understand btrfs subvolumes still, which is a 
bit baffling because GRUB2 has understood them for a long time by just treating 
them as directories. Anyway, what's really mounted at / isn't your Btrfs 
volume, but rather a subvolume named root. Same for home, the home subvolume is 
mounted at /home. So if you were to mount your Btrfs volume (without -o subvol) 
 you'd see two directories: root and home which behave like directories but 
they are really subvolumes. And grubby can't figure out that the actual path to 
finding the kernel is: /root/boot/, and finding grub stuff is: /root/boot/grub2


> I don't know how to debug that further or where are this templates
> located?

They are tests baked directly into grubby, and the message is saying that the 
test has failed so grub.cfg isn't being modified.

> 
> And is this normal?

Yes, because grubby doesn't grok Btrfs subvolumes, and the maintainer doesn't 
really see the point for /boot on Btrfs anyway. There are patches to fix this 
that appear to work but they haven't been merged yet.

So right now if you want to have /boot on a Btrfs subvolume, then you do one of 
two things: always run grub2-mkconfig after each kernel update, or use an out 
of tree grubby that understands Btrfs subvols.

http://www.redhat.com/archives/anaconda-devel-list/2014-June/msg00023.html


Chris Murphy

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