/usr/ is empty in pfSense 2.1 ISO



  • I am planning to edit PfSense GUI 2.1, my question how can I reach intended files and then save my changes?
    What I need is to end up with an ISO file of pfSense 2.1 with my changes, so I used software like PowerISO to edit directly pfSense-LiveCD-2.1-RC0-i386-20130611-0604.iso? and then try to reach all the below intended files:

    /etc/inc/globals.inc
    /usr/local/www/javascript/sajax.js
    /usr/local/www/wizards/*
    /etc/motd
    /etc/rc (ascii art: you may wish to add your own ascii art file to /etc/ascii-art/your-file.txt)
    /tools/installer/conf/pfSense.lua (if you want the installer to display your product name)
        i386 boot files (boot loader, etc)

    I have read this from:
    http://devwiki.pfsense.org/ReBrandingSupport

    Now, I only can reach  /etc/inc/globals.inc ,where as I can see that /usr/ is empty as it appears in the attached image.

    Your help would highly be appreciated.



  • Rebel Alliance Developer Netgate

    You can't edit the ISO directly and end up with what you expect.

    If you need to edit the files on bootable media, the memstick installer would be better, though you'd have to mount/edit via FreeBSD since it is UFS. For example, put a memstick installer into a running pfsense box, and then mount it, and access the files over SCP.

    Of course the best method is to use the rebranding infrastructure and do a custom build, which our commercial support can assist with (see the link in my sig) for reseller subscribers.



  • Thanks jimp for your reply.
    But I have a question, let us assume that I mounted memstick version and made my changes, then if I install pfSense from this memstick on a machine, would the installed system be having my changes?


  • Rebel Alliance Developer Netgate

    Now that I think about it, it would have the same layout as the ISO, so you'd end up in the same situation.



  • I appreciate your response.

    What about the Nano version for embedded sys? Can I also mount it as UFS and change what I need directly?


  • Rebel Alliance Developer Netgate

    Yes, you can, just make sure to edit both OS partition/slices.



  • I have tried to mount memstick pfSense 2.1 from a USB stick, these are my steps:

    1-I wrote pfSense in a generic USB stick
    2-I used FreeBSD 9.1, where first I showed the partitions and slices on that USB using:

    #ls /dev/da0*
    

    The output was:

    /dev/da0        /dev/da0a
    

    3-Then I mounted /dev/da0a via:

    # mount -t ufs /dev/da0a /mnt
    

    4-Still I can’t see any files exists in /usr, here are the commands:

    # mount -t ufs /dev/da0a /mnt
    # cd /mnt/usr
    # ls -l
    total 0
    
    

    Any advice?


  • Rebel Alliance Developer Netgate

    That's still a memstick, you'd need NanoBSD to do that.


Log in to reply