Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 May 2023 12:18:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 271361] hostid_save runs to early (before ountcritlocal)
Message-ID:  <bug-271361-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271361

            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 ->
../var/db/machine-id

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

[.....]
/etc/rc.d/zvol
/etc/rc.d/root
/etc/rc.d/hostid_save
/etc/rc.d/mdconfig
/etc/rc.d/serial
/etc/rc.d/sppp
/etc/rc.d/growfs_fstab
/etc/rc.d/mountcritlocal
/etc/rc.d/zfsbe
/etc/rc.d/var_run
/etc/rc.d/tmp
/etc/rc.d/zfs
[.....]

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271361-227>