Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    2.7.2 Fresh install fails: "Failed to run the post installation script"

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    51 Posts 6 Posters 4.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nalims
      last edited by

      Wonderful, thank you very much!

      1 Reply Last reply Reply Quote 1
      • F
        Frequency
        last edited by

        Hello,

        Thank you for the help so far. I've also got a similar issue, a Protectli FW4C device with Coreboot bios which finished it's installation with the same error message "Failed to run post installation script".
        'Install error.jpg

        I am using the default required boot option, ZFS so doubt its a UEFI issue.

        I have managed to boot the machine by exiting from the pfsense autoselect options and then running Stephenw10's commands as per Using boot commands provided.jpg

        When editing the /boot/loader.conf to add the two lines below or as suggested in the /default/loader.conf file, creating a new /boot/loader.conf.local file with just the two lines the Normal reboot still fails to autoboot to pfsense and gets stuck on Mountroot>

        Reboot even with loader.conf file settings set.jpg

        opensolaris_load="YES"
        zfs_load="YES"
        

        Happy to provide any log files required, unfortunately I cannot find the install-log.txt file in the /tmp/ directory now pfsense is installed, hence the screenshots.

        Am I editing the wrong file, or missing something? Adding the two lines hasn't fixed the automatic boot to pfsense.

        Thank you

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Do you see it loading those modules at boot? Should show at the console before the kernel loads.

          F 1 Reply Last reply Reply Quote 0
          • F
            Frequency @stephenw10
            last edited by

            @stephenw10 This is what I see at boot - Kernel and Solaris.ko seem to be there, but not ZFS_ ?

            Boot modules.jpg

            F 1 Reply Last reply Reply Quote 0
            • F
              Frequency @Frequency
              last edited by

              OK I shall admit the problem is between the chair and the keyboard. Happy Monday.

              Looked at the zfs line, and had _Load instead of _load.

              Capital latter=problem in linux world. Excuse my windows background ;-)

              Thanks @stephenw10 !

              1 Reply Last reply Reply Quote 1
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Cool. Easy fix! 😉

                1 Reply Last reply Reply Quote 0
                • R
                  robboroom @stephenw10
                  last edited by

                  @stephenw10 said in 2.7.2 Fresh install fails: "Failed to run the post installation script":

                  Ok check the file: /boot/loader.conf

                  Those values may already have been added by pfSense when it booted. It should contain the lines:

                  opensolaris_load="YES"
                  zfs_load="YES"
                  

                  If not add them there.

                  Hi, new here, exact same problem as topic starter, also on protectli vault.
                  Apparently the new installer isn't here.

                  I am a n00b at Pfsense, just getting my feet wet, so please forgive my noobness.
                  But how do I edit the /boot/loader.conf file?

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by stephenw10

                    Once it has booted you can use Diag > Edit File.

                    At the command line you can use the Easy Editor, ee. So:
                    ee /boot/loader.conf

                    Steve

                    R 1 Reply Last reply Reply Quote 0
                    • R
                      robboroom @stephenw10
                      last edited by

                      @stephenw10 Thank you, but still a couple of questions.

                      I end up at the command prompt in the mountroot directory
                      mountroot>

                      When I enter ee /bootloader.conf I get:
                      "Invalid file system specification"

                      When I enter Diag I get the same.

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        To make it boot initially you have to set the values at the bootloader (OK>) prompt as I showed here: https://forum.netgate.com/post/1173457

                        Only once it has booted fully can you edit the loader.conf file.

                        F R 2 Replies Last reply Reply Quote 0
                        • F
                          Frequency @stephenw10
                          last edited by

                          Just to add to this thread, I'm sure I tried using vi to edit the conf file and although it looked edited, it didn't work. Instead after I managed to boot into pfsense by running the commands Stephen10 suggested

                          load /boot/kernel/kernel
                          load /boot/kernel/opensolaris.ko
                          load /boot/kernel/zfs.ko
                          boot

                          I was able to connect to the pfsense device using winSCP on the same network via my windows laptop (or SCP for non windows) and created the /boot/loader.conf.local file with the two entries:

                          opensolaris_load="YES"
                          zfs_load="YES"

                          Hope this helps someone who might use this route.

                          1 Reply Last reply Reply Quote 0
                          • stephenw10S
                            stephenw10 Netgate Administrator
                            last edited by

                            This is one of the only situations where I would recommend putting them in loader.conf directly. That is where they would normally be.

                            However putting them in loader.conf.local won't hurt anything.

                            1 Reply Last reply Reply Quote 0
                            • R
                              robboroom @stephenw10
                              last edited by

                              @stephenw10 said in 2.7.2 Fresh install fails: "Failed to run the post installation script":

                              To make it boot initially you have to set the values at the bootloader (OK>) prompt as I showed here: https://forum.netgate.com/post/1173457

                              Only once it has booted fully can you edit the loader.conf file.

                              Ok, but after I enter the lines at the ok prompt and I boot, I get to a screen with 17 options (0-16):
                              0) Logout

                              1. Assign interfaces
                              2. Set interface IP address
                                etc.

                              No possible option to enter ee /bootloader.conf

                              Again, so sorry for my ultimate noobness

                              1 Reply Last reply Reply Quote 0
                              • stephenw10S
                                stephenw10 Netgate Administrator
                                last edited by

                                Use option 8 there to reach the command line first.

                                R 1 Reply Last reply Reply Quote 1
                                • R
                                  robboroom @stephenw10
                                  last edited by

                                  @stephenw10 said in 2.7.2 Fresh install fails: "Failed to run the post installation script":

                                  Use option 8 there to reach the command line first.

                                  Ah, THANK YOU, that worked.
                                  It appeared I didn't have a bootloader.conf file, so I created a new one with the two lines.

                                  After that I rebooted. Problem then was I still didn't autoboot to pfsense, but I managed to change the boot order and now it loads pfsense immediately and I end up at the command line to the mountroot> prompt.

                                  Is this correct?

                                  1 Reply Last reply Reply Quote 0
                                  • stephenw10S
                                    stephenw10 Netgate Administrator
                                    last edited by stephenw10

                                    Ah, looks like you created a file in the wrong location. The file definitely exists but the correct command is:
                                    ee /boot/loader.conf

                                    ...which it looks like I typo'd above.

                                    R 1 Reply Last reply Reply Quote 0
                                    • R
                                      robboroom @stephenw10
                                      last edited by

                                      @stephenw10 said in 2.7.2 Fresh install fails: "Failed to run the post installation script":

                                      Ah, looks like you created a file in the wrong location. The file definitely exists but the correct command is:
                                      ee /boot/loader.conf

                                      ...which it looks like I typo'd above.

                                      lol, ok.
                                      I will redo. Should I delete the other? And if so, how?

                                      stephenw10S 1 Reply Last reply Reply Quote 0
                                      • stephenw10S
                                        stephenw10 Netgate Administrator @robboroom
                                        last edited by

                                        It doesn't matter the file will be ignored.

                                        But you can remove it with rm /bootloader.conf

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          doncarajo
                                          last edited by

                                          @stephenw10 said in 2.7.2 Fresh install fails: "Failed to run the post installation script":

                                          https://forum.netgate.com/post/1173457

                                          I am having similar problems to original poster on a Protectli VP2420. Trying to install pfsense plus. I have the same "efgi_get_Variable: Bad address" problem. Doing the following

                                          load /boot/kernel/kernel
                                          load /boot/kernel/opensolaris.ko
                                          load /boot/kernel/zfs.ko
                                          boot

                                          doesn't get me very far just to a screen of text. I can not access the pfsense webpage. I am not overly familiar with what is going on or why there is an error but I'm pulling my hair out. All I'm trying to do is upgrade my hardware. What is the issue? How do I fix it? How do I know if pfsense is "booting"? What is the screen supposed to show?

                                          D 1 Reply Last reply Reply Quote 0
                                          • D
                                            doncarajo @doncarajo
                                            last edited by

                                            @doncarajo I should I add I contacted Netgate support as I paid for pfsense plus and they cannot help with protectli hardware. They suggested I run the BIOS in legacy mode but Coreboot doesn't have an option for that. Ideas?

                                            D 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.