GENERIC make buildkernel error / fails - posix_fadvise

Doug Barton dougb at FreeBSD.org
Mon Jan 23 01:08:51 UTC 2012


On 01/22/2012 11:00, cliftonr at volcano.org wrote:
> On 12.01.2012 15:52, Doug Barton wrote:
>>>> chflags -R noschg /usr/obj/usr
>>>> rm -rf /usr/obj/usr
>>
>> It's much faster to do:
>>
>> /bin/rm -rf ${obj}/* 2> /dev/null || /bin/chflags -R 0 ${obj}/* &&
>> /bin/rm -rf ${obj}/*
> 
> If I could just add one thing here, for those who might be tempted
> to immediately cut and paste that elegant command line:
> 
> Consider, how does that command evaluate if the shell variable "obj"
> is not set, and you're running that literal string as root?

It wasn't intended that anyone actually do what you're considering. I
assumed that our users are smart enough to know that they have to
substitute the actual value of /usr/obj.


Doug

-- 

	It's always a long day; 86400 doesn't fit into a short.

	Breadth of IT experience, and depth of knowledge in the DNS.
	Yours for the right price.  :)  http://SupersetSolutions.com/



More information about the freebsd-stable mailing list