brickerz Posted May 17, 2014 Share Posted May 17, 2014 I went into safe mode once because I was having problems with a kext, and now whenever I start up I have to remove the boot flag. Can anyone tell me how to get rid of this permanently?Screenshot attached Link to comment https://www.insanelymac.com/forum/topic/298085-boot-flag-saving/ Share on other sites More sharing options...
RehabMan Posted May 17, 2014 Share Posted May 17, 2014 I went into safe mode once because I was having problems with a kext, and now whenever I start up I have to remove the boot flag. Can anyone tell me how to get rid of this permanently? Screenshot attached This is a bug in Chameleon. Clearly boot args typed at the bootloader prompt should not be stored in nvram for future boots. But that's what is happening. You can clear it: # in Terminal sudo nvram -d boot-args You can also use a LaunchDaemon to delete boot-args from nvram automatically. To do so, create a plist file and place in /Library/LaunchDaemons. Something like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>org.rehabman.delete-boot-args</string> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <false/> <key>ProgramArguments</key> <array> <string>/usr/sbin/nvram</string> <string>-d</string> <string>boot-args</string> </array> </dict> I call mine /Library/LaunchDaemons/org.rehabman.delete-boot-args.plist Note: This daemon does not run in safe mode, so it will not be able to clear -x. If someone knows how to mark a LaunchDaemon so it runs in safe mode, I'd appreciate hearing the answer. 1 Link to comment https://www.insanelymac.com/forum/topic/298085-boot-flag-saving/#findComment-2020166 Share on other sites More sharing options...
Recommended Posts