Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Sep 2023 08:21:39 -0500
From:      Jason Bacon <bacon4000@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Single-user actions on reboot
Message-ID:  <b70d24e3-ce25-f2fb-1f0f-9526f16173b0@gmail.com>

next in thread | raw e-mail | index | archive | help

I'm wondering if there's a canonical way to schedule a command to run 
automatically during the next boot cycle, but before going multiuser.

This would be useful, for example, to run certain tunefs commands on /, 
which can only be done in single-user mode, on remotely managed systems.

Running things after going multiuser is easy, of course, but not 
sufficient for tunefs commands that cannot be performed on a filesystem 
mounted rw.

Thanks...

-- 
Life is a game.  Play hard.  Play fair.  Have fun.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b70d24e3-ce25-f2fb-1f0f-9526f16173b0>