Bug 1467939
Summary: | Fatal error during installation after setting /var as a mountpoint | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Michael Nguyen <mnguyen> | ||||
Component: | systemd | Assignee: | systemd-maint | ||||
Status: | CLOSED WONTFIX | QA Contact: | qe-baseos-daemons | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 7.4 | CC: | jlebon, miabbott, systemd-maint-list, walters | ||||
Target Milestone: | rc | Keywords: | Extras | ||||
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: | 2021-01-15 07:39:19 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
Michael Nguyen
2017-07-05 14:45:28 UTC
Created attachment 1294657 [details]
/tmp/anaconda.log file
I noticed while debugging this that the systemd-tmpfiles we have is sort of ignoring `--prefix`; I get a bunch of files created if I do `--prefix=/var/home`. But, things do succeed if I entirely drop `--prefix`. The systemd in e.g. F26 works correctly with this. I also confirmed that the RHEL 7.3 systemd-tmpfiles honors --prefix correctly. So this patch gets us past the bug: diff --git a/pyanaconda/packaging/rpmostreepayload.py b/pyanaconda/packaging/rpmostreepayload.py index da7650d3b..003f3a05f 100644 --- a/pyanaconda/packaging/rpmostreepayload.py +++ b/pyanaconda/packaging/rpmostreepayload.py @@ -300,8 +300,12 @@ class RPMOSTreePayload(ArchivePayload): # matching NSS configuration inside Anaconda, and we can't "chroot" to # get it because that would require mounting the API filesystems in the # target. - for varsubdir in ('home', 'roothome', 'lib/rpm', 'opt', 'srv', - 'usrlocal', 'mnt', 'media', 'spool/mail'): + # Note this version differs from Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1467939 + rpmdblink = iutil.getSysroot() + '/var/lib/rpm' + iutil.mkdirChain(os.path.dirname(rpmdblink)) + os.symlink('../../usr/share/rpm', rpmdblink) + for varsubdir in ('home', 'roothome', 'opt', 'srv', + 'usrlocal', 'mnt', 'media'): self._safeExecWithRedirect("systemd-tmpfiles", ["--create", "--boot", "--root=" + iutil.getSysroot(), "--prefix=/var/" + varsubdir]) But...it reveals other bugs in Anaconda here; this bug seems worse in RHEL: https://github.com/rhinstaller/anaconda/issues/1007#issuecomment-302184250 The kickstart workaround isn't bad, but the UX if you go through the interactive path is awful since, well, you can't log in to fix it (without init=/bin/sh). So big picture, I think this is going to need a round of fixes in Fedora and we should try 7.5. After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. |