3

Is there some way to know the arguments passed to xnu at boot from within the system?

2 Answers 2

2

You can use the nvram utility.

Open Terminal.app and run nvram -p to see all the boot parameters. You can also run man nvram to see all the options. Note that to set any parameters you will have to use sudo if you are not logged in as root.

3
  • But that only tells what is in nvram (which may have been changed since boot), right?
    – jhfrontz
    Commented Jan 8, 2016 at 16:10
  • @jhfrontz the contents of the NVRAM don't change radically from boot time to the time you login. If you read the contents its mostly just various states the system wants to maintain between boots. The biggest changes occur when you start changing the system configuration.
    – CyberSkull
    Commented Jan 8, 2016 at 16:17
  • right; I'm just thinking of the /proc/cmdline feature of linux (askubuntu.com/questions/32654/…) where you can get the arguments that were in effect at boot time (even if the boot configuration was changed subsequent to the last reboot -- something that happens a lot in my environment). I'm assuming there is something similar for MacOS but I'm having trouble finding it.
    – jhfrontz
    Commented Jan 10, 2016 at 22:18
1
sysctl kern.bootargs

is what you're looking for!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .