Bug 238518 - make buildkernel fails due to a symlink (and/or zfs)
Summary: make buildkernel fails due to a symlink (and/or zfs)
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.0-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-12 09:39 UTC by Lorenzo Salvadore
Modified: 2023-09-11 06:20 UTC (History)
0 users

See Also:


Attachments
log of make buildkernel (9.29 KB, text/plain)
2019-06-12 09:39 UTC, Lorenzo Salvadore
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenzo Salvadore freebsd_committer freebsd_triage 2019-06-12 09:39:33 UTC
Created attachment 205004 [details]
log of make buildkernel

Here is the setting:

- a ZFS filesystem zroot/usr/src-stable is mounted at /usr/src and contains sources for 12-STABLE r348980;
- a ZFS filesystem /zroot/usr/obj/usr/src-stable is mounted at /usr/obj/usr/src-stable;
- the file /usr/obj/usr/src is a symlink to /usr/obj/usr/src-stable.

make buildkernel fails with the error message reported in the attachement.

It might be useful to know that this setting is the result of the following old setting:

- a ZFS filesystem zroot/usr/src-stable is mounted at /usr/src-stable and contains sources for 12-STABLE, whatever revision;
- a ZFS filesystem /zroot/usr/obj/usr/src-stable is mounted at /usr/obj/usr/src-stable.

Getting back to the old setting solves the problem, but of course we should try to get the new setting to work too.
Moreover, using the old setting, if a softlink /usr/src to /usr/src-stable is created, I can execute make buildkernel successfully both from /usr/src and /usr/src-stable. If I execute it from /usr/src, I can read lines such as "Building /usr/obj/usr/src-stable..."
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2023-09-11 06:20:21 UTC
Overcome by events?