Bug 1382873
Summary: | F25 workstation ostree boot fails, fstab incorrectly mounts home LV to /home instead of /var/home | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Chris Murphy <bugzilla> | ||||||
Component: | anaconda | Assignee: | Anaconda Maintenance Team <anaconda-maint-list> | ||||||
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 25 | CC: | anaconda-maint-list, dustymabe, g.kaviyarasu, jlebon, jonathan, mkolman, vanmeeuwen+fedora, vponcova, walters | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2017-12-12 11:05:25 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Chris Murphy
2016-10-08 00:15:19 UTC
Created attachment 1208281 [details]
virsh console
Added parameters: systemd.log_level=debug systemd.log_target=console console=ttyS0,38400
Captured with virsh console.
Created attachment 1208282 [details]
journal, systemd debug
Bad virsh console capture, replacing original attachment.
lines 2149-2184 in attachement seem to show ostree-prepare-root-service works, although there are some confusing messages in there. But then home.mount: Mount on symlink /home not allowed. home.mount: Failed to run 'mount' task: Too many levels of symbolic links home.mount: Changed dead -> failed home.mount: Job home.mount/start finished, result=failed [FAILED] Failed to mount /home. The /etc/fstab contains: /dev/mapper/fedora-home /home ext4 defaults 1 2 Isn't it supposed to get mounted at /var/home first, and then ostree bind mounts that to /home? OK so comment that out. And now I don't get an emergency mode boot, it boots pretty much all the way then abruptly reboots and I'm back at GRUB... Sounds to me like assembly problems. Yeah so it looks like /dev/mapper/fedora-home is being mounted *after* ostree has setup the virtual root we see (rather than the one on the drive). lrwxrwxrwx. 1 root root 8 Oct 7 16:09 home -> var/home And that means stepping on a symlink which isn't allowed. So this is an ostree+anaconda bug, the fstab should be mounting /dev/mapper/fedora-home to /var/home. Yep, making that change and now the system boots, and I get to gdm/login screen. I was thinking about this more, and one thing that would help this a lot is to teach systemd-fstab-generator to follow symlinks when generating the mount units. Given that symlinks in /etc/fstab worked in RHEL7 (and older), this seems like it would be very much in line with increasing compatibility, while keeping mount units clean. *** Bug 1290888 has been marked as a duplicate of this bug. *** The systemd change is in rawhide. Related Anaconda changeset: https://github.com/rhinstaller/anaconda/pull/1124 This message is a reminder that Fedora 25 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '25'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 25 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. This should be fixed now in f27 Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |