Dracut is unable to mount /usr if on separate partition, because it adds double quotes to the initramfs fstab: mount: special device /dev/disk-by-uuid/"041af...." does not exist. The same error also appears during boot. The system is able to mount / of course, but it fails anything else, because it adds quotes in the access path.
Created attachment 407572 [details] Picture of laptop screen unable to boot because of faulty Dracut.
*** Bug 555854 has been marked as a duplicate of this bug. ***
Please don't CC "random" teams in bugs.
(In reply to Jorge Manuel B. S. Vicetto from comment #3) > Please don't CC "random" teams in bugs. I apologise, I didn't know what that was for. I thought that I had to select the arch I was using.
Do you have quotation marks around UUID in the fstab on the real root? E.g. UUID="041af...."
(In reply to Alexander Tsoy from comment #5) > Do you have quotation marks around UUID in the fstab on the real root? E.g. > UUID="041af...." No. The quotation marks were added automatically only in the initramfs file, by Dracut. I managed to manually edit the initramfs and it booted, but I doubt it won't happen again next time I have to compile a kernel and generate a new initramfs.
(In reply to Alexander Tsoy from comment #5) > Do you have quotation marks around UUID in the fstab on the real root? E.g. > UUID="041af...." Oh, wait. That may be the case, I forgot, but the system boots just fine. There are quotation marks around the UUID of the root partition as well, but Dracut only adds marks in the wrong place only to the /usr partition in the initramfs fstab.
Created attachment 407686 [details] Contents of /etc/fstab Current fstab configuration. Dracut adds the root partition without any problems, but adds quotation marks in the wrong place to the /usr partition. For the moment, it is necessary to edit the fstab in the initramfs after it has been generated by Dracut.
Created attachment 407766 [details, diff] usrmount-remove-quotes-from-label-and-uuid.patch (In reply to Dumitru Ionica from comment #8) > Dracut adds the root partition without any problems, but adds quotation > marks in the wrong place to the /usr partition. It is because fstab entry for the root partition is generated from the kernel cmdline (root=...) and fstab entry for the /usr partition is generated from /sysroot/etc/fstab. Please try attached patch.
(In reply to Alexander Tsoy from comment #9) > Created attachment 407766 [details, diff] [details, diff] > usrmount-remove-quotes-from-label-and-uuid.patch > > (In reply to Dumitru Ionica from comment #8) > > Dracut adds the root partition without any problems, but adds quotation > > marks in the wrong place to the /usr partition. > It is because fstab entry for the root partition is generated from the > kernel cmdline (root=...) and fstab entry for the /usr partition is > generated from /sysroot/etc/fstab. > > Please try attached patch. I do not know where to apply the patch. In any case, I have modified the /etc/fstab on /sysroot to contain /dev/disk/by-uuid/* instead of UUID="*", and now Dracut is able to properly generate the initramfs image. Still, please tell me where to apply your suggested patch.
Put the patch into the directory "/etc/portage/patches/sys-kernel/dracut" and reemerge dracut. File name must end in ".patch".