puppetlabs/Razor — pull request #82 by tjmcs (2012-06-20 16:58:00+00:00)
Title: Attempt to fix #74 (and an [unreported] bug in the Razor config file generation process)

This pull request includes the following changes:

1. Changes to the ProjectRazor::PolicyTemplate::BootMk class to add a "maxcpus=1" value to the bootargs passed into the kernel during the boot process by the iPXE boot script; this is the fix suggested in the TCL forums [here](http://forum.tinycorelinux.net/index.php?topic=12195.0) for the 'fixing recursive fault but reboot is needed' error being reported by the user in Issue #74
2. Changes to the ProjectRazor::Config::Server and ProjectRazor::PolicyTemplate::BootMk classes to add a new parameter to the Razor configuration file (rz_mk_boot_debug_level) and to give users the ability to use that (new) configuration parameter to dynamically change the "log level" used by the Microkernel during the boot process (two values are valid, 'quiet' and 'debug'; the default value is the empty string, which results in the same log level that is currently output by the Microkernel during the kernel boot process).
3. Changes to the ProjectRazor::Config::Server class to fix an unreported bug in how the IP address used in constructing the Razor configuration file (if it doesn't exist) is returned from the "get_an_ip" method in this class. Prior to the changes made a few weeks ago to add Ruby v1.8.7 compatibility to Razor, this ensured that the string that it returned was UTF-8 encoded (necessary under Ruby v1.9.x and later), but after these changes were made the code that ensured the encoding was correct was removed. This pull request adds that code back in, but in a manner that will work under both earlier (v1.8.7) and later (v1.9.x) versions of Ruby.