diff options
author | delphij <delphij@FreeBSD.org> | 2008-03-11 17:21:14 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2008-03-11 17:21:14 +0000 |
commit | 161c933f77a5d38e1427f00a01fdf4492cb24ef9 (patch) | |
tree | 3df24ed0021ab19e431a06451f7a60dabd3f9db6 /etc/rc.d/root | |
parent | 9b64d6690d130c8396ccb26886a281d5ed0f5885 (diff) | |
download | FreeBSD-src-161c933f77a5d38e1427f00a01fdf4492cb24ef9.zip FreeBSD-src-161c933f77a5d38e1427f00a01fdf4492cb24ef9.tar.gz |
Do nextboot -D twice during boot. The first time in rc.d/root which ensures that
we can remove the file as early as possible, but shut up nextboot at this moment
if the operation is failed, because /boot is not necessarily a part of /; the
newly added second run is placed in rc.d/mountlate after all filesystems were
mounted.
Discussed at: -rc@
Suggestions from: brooks, mtm
MFC after: 1 month
Diffstat (limited to 'etc/rc.d/root')
-rwxr-xr-x | etc/rc.d/root | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/root b/etc/rc.d/root index f2131d8..6bddb17 100755 --- a/etc/rc.d/root +++ b/etc/rc.d/root @@ -34,7 +34,7 @@ root_start() # If we booted a special kernel remove the record # so we will boot the default kernel next time. if [ -x /sbin/nextboot ]; then - /sbin/nextboot -D + /sbin/nextboot -D > /dev/null 2>&1 fi } |