[darwinbuild] Building xnu
Shantonu Sen
ssen at opendarwin.org
Fri Aug 5 20:20:35 PDT 2005
By the way, the console message you're thinking of from Panther was
totally fake, that's why it was removed:
<http://darwinsource.opendarwin.org/10.3.9/network_cmds-176.4.1/
syslogd.tproj/syslogd.c>
#ifdef __APPLE__
/* We lack getbootfile() 3187949 and 3187947 */
(void)strlcpy(bootfile, "/mach_kernel", sizeof("/mach_kernel"));
#else
(void)strlcpy(bootfile, getbootfile(), sizeof(bootfile));
#endif
Shantonu
On Aug 5, 2005, at 8:09 PM, Shantonu Sen wrote:
> same way you set it:
> "nvram boot-file"
>
> As long as you don't change it, it will reflect the last value you
> set it to.
>
> Shantonu
>
> On Aug 5, 2005, at 7:55 PM, Alastair Rankine wrote:
>
>
>> Mark Pauley wrote:
>>
>>
>>
>>>> I say probably because there doesn't seem to be any way to
>>>> determine which kernel I'm booting from. The older (7.x) xnu
>>>> kernels reported the kernel file path in their dmesg output -
>>>> the 8.x series don't seem to. Not in the sysctl MIB either. Is
>>>> there any way to retrieve this information do you know?
>>>>
>>>>
>>>>
>>>
>>> Have you tried uname -a? It should tell you the kernel version
>>> you're using...
>>>
>>>
>>
>> Thanks, but that wasn't what I was after. I want to know the
>> filename of the kernel. On most darwin systems it is /mach_kernel.
>> I want a way to determine whether I am booting off /mach_kernel
>> or /mach_kernel.new or whatever
>>
>> _______________________________________________
>> darwinbuild mailing list
>> darwinbuild at opendarwin.org
>> http://www.opendarwin.org/mailman/listinfo/darwinbuild
>>
>>
>
> _______________________________________________
> darwinbuild mailing list
> darwinbuild at opendarwin.org
> http://www.opendarwin.org/mailman/listinfo/darwinbuild
>
More information about the darwinbuild-dev
mailing list