Bug 289654 - 15.0-ALPHA2 packages: no /proc directory
Summary: 15.0-ALPHA2 packages: no /proc directory
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 16.0-CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: Lexi Winter
URL: https://reviews.freebsd.org/D52622
Keywords: install, pkgbase
Depends on:
Blocks: 15.0-metabug
  Show dependency treegraph
 
Reported: 2025-09-16 20:29 UTC by devnull
Modified: 2025-09-20 22:42 UTC (History)
3 users (show)

See Also:


Attachments
Screenshot: /etc/rc.local not found, post-installation of sysutils/desktop-installer (141.89 KB, image/png)
2025-09-16 22:14 UTC, devnull
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description devnull freebsd_committer freebsd_triage 2025-09-16 20:29:06 UTC
1. FreeBSD-15.0-ALPHA2-amd64-20250914-da62a299de31-280122-disc1.iso

2. choose packages, ZFS, perform a minimal installation

No /proc
Comment 1 devnull freebsd_committer freebsd_triage 2025-09-16 20:31:24 UTC
The absence of /proc was discovered through a failed run of 

desktop-installer

<https://www.freshports.org/sysutils/desktop-installer/>
Comment 2 devnull freebsd_committer freebsd_triage 2025-09-16 22:03:07 UTC
Also (not particularly surprising): /proc is not gained through a pkgbase major upgrade to 16.0-CURRENT.
Comment 3 devnull freebsd_committer freebsd_triage 2025-09-16 22:14:23 UTC
Created attachment 263865 [details]
Screenshot: /etc/rc.local not found, post-installation of sysutils/desktop-installer

Is the absence of /etc/rc.local an issue with base, or should there be a change to sysutils/desktop-installer/pkg-install for this scenario?

<https://github.com/freebsd/freebsd-ports/blob/ebcd0ef0f84f0c1ccec9e7a3541fbcf6cd0ef1ae/sysutils/desktop-installer/pkg-install#L4>

<https://www.freshports.org/sysutils/desktop-installer/>

/etc/rc.local is not in hier(7), 
<https://man.freebsd.org/cgi/man.cgi?query=hier&sektion=7&manpath=freebsd-current>
Comment 4 Mark Johnston freebsd_committer freebsd_triage 2025-09-19 15:56:32 UTC
/proc is created by installworld and in the traditional distsets, but not by pkgbase.  I'm not sure which package should be responsible for that.
Comment 5 commit-hook freebsd_committer freebsd_triage 2025-09-19 16:40:16 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=b3468202994f6856c5c49f3365e05f4f8017d680

commit b3468202994f6856c5c49f3365e05f4f8017d680
Author:     Lexi Winter <ivy@FreeBSD.org>
AuthorDate: 2025-09-19 16:38:24 +0000
Commit:     Lexi Winter <ivy@FreeBSD.org>
CommitDate: 2025-09-19 16:39:04 +0000

    mtree: Add package tags to some root directories

    This ensures the normally-empty directories /proc, /net, /media and /mnt
    are created on a fresh pkgbase install.

    Put /proc, /mnt and /media in -runtime since those are basic directories
    that should always exist.  /net is only used by the automounter, so put
    that in -autofs.  While here, also tag /rescue in -rescue, since nothing
    else installs there.

    Reported by:    Graham Perrin <grahamperrin@gmail.com>
    PR:             289654
    MFC after:      3 days
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D52622

 etc/mtree/BSD.root.dist | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
Comment 6 commit-hook freebsd_committer freebsd_triage 2025-09-19 16:44:17 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=724972790e8c862dd8f4b42622000cd879392936

commit 724972790e8c862dd8f4b42622000cd879392936
Author:     Lexi Winter <ivy@FreeBSD.org>
AuthorDate: 2025-09-19 16:38:24 +0000
Commit:     Lexi Winter <ivy@FreeBSD.org>
CommitDate: 2025-09-19 16:42:54 +0000

    mtree: Add package tags to some root directories

    This ensures the normally-empty directories /proc, /net, /media and /mnt
    are created on a fresh pkgbase install.

    Put /proc, /mnt and /media in -runtime since those are basic directories
    that should always exist.  /net is only used by the automounter, so put
    that in -autofs.  While here, also tag /rescue in -rescue, since nothing
    else installs there.

    After discussion with cperciva, this is being MFC'd early so we can land
    it in the 15.0-ALPHA3 build.

    Reported by:    Graham Perrin <grahamperrin@gmail.com>
    PR:             289654
    MFC after:      3 days
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D52622

    (cherry picked from commit b3468202994f6856c5c49f3365e05f4f8017d680)

 etc/mtree/BSD.root.dist | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
Comment 7 Lexi Winter freebsd_committer freebsd_triage 2025-09-19 16:45:11 UTC
this will be fixed for ALPHA3, thanks for the report.
Comment 8 devnull freebsd_committer freebsd_triage 2025-09-20 22:42:44 UTC
Thanks 👍

I'll take the question in comment 3 to the maintainer of the port.