Changing 2.3 product name -> fs set read-only?


  • Hello,

    I discovered that in version 2.3 changing
    $g["product_name"] in the file "/etc/inc/globals.inc"  (or in file "globals_override.inc")
    to any other value than "pfSense"…

    ...results in root fs beeing re-mounted as read-only!?

    /dev/da0s1a on / (ufs, local, noatime, read-only, synchronous)
    

    is this a bug or a feature?


    Regards
    Dennis


  • Feature - there are lots of tests through the system that work out what the system is running as and do something (pfSense full install, nanoBSD, the old Live CD and so on). If you edit globals.inc to tell it tha it is not "pfSense" then I guess there are a lot of tests that no longer think you are on a full install. For some unknown string, the test is going to go down some path - seems it goes down the nanoBSD path for your case.

  • Rebel Alliance Developer Netgate

    Usually the platform (full vs NanoBSD) keys off platform name in /etc/platform which is not the same as $g["product_name"]. Perhaps you also changed /etc/platform and didn't notice until after you changed $g["product_name"] ?


  • Same discovered here  8)