'make installkernel' succeeding on read-only fs?
Denise H. G.
darcsis at gmail.com
Sun Nov 20 10:22:34 UTC 2011
On 2011/11/19 at 19:24, Alexander Best <arundel at freebsd.org> wrote:
>
> hi there,
> just stumbled upon this little detail:
>
> 1) have "/" mounted read-only
> 2) 'make buildkernel'
> 3) 'make installkernel && echo "success"'
> -> this will fail
> 4) 'mount -uw /'
> 5) 'make installkernel && echo "success"'
> -> this will succeed
> 6) 'mount -ur /'
> 7) 'make installkernel && echo "success"'
> -> this will succeed. why?
According to mount(8), 'mount -ur /' will fail if / is already mounted
read-write with any files currently opened by some processes. I think
this might be your case.
>
> cheers.
> alex
> ................
--
If you've got them by the balls,
their hearts and minds will follow.
More information about the freebsd-toolchain
mailing list