[Bug 271361] hostid_save runs to early (before ountcritlocal)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 11 May 2023 12:18:31 UTC

            Bug ID: 271361
           Summary: hostid_save runs to early (before ountcritlocal)
           Product: Base System
           Version: 13.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: Meyser@xenet.de

#> ls -la /etc/machine-id
lrwxr-xr-x  1 root  wheel  20 Feb 19 19:00 /etc/machine-id ->

rcorder /etc/rc.d/* (exerpt):


after making /etc/machine-id a symlink to /var/db/machine-id
hostid_save can not write to /etc/machine-id as /var is not yet mounted.

I think in hostid_save

# REQUIRE: hostid root

should be replaced by

# REQUIRE: hostid mountcritlocal

You are receiving this mail because:
You are the assignee for the bug.