Building Custom ISO from Source stucks



  • Hello Team,

    I am trying to make the custom build iso with custom logos and a different product name.

    what i did,

    1. root@test:/ # cd /usr && git clone -b RELENG_2_3_4 https://github.com/pfsense/pfsense.git MYPRODUCT

    I replaced the logo files.
    Below are the outputs of some the commands,

    2._root@test:/ # cd /usr/MYPRODUCT/ && time ./build.sh -u iso

    Operation ./build.sh has started at Mon Jun 26 13:15:31 IST 2017
    Building image type(s): iso
    Cleaning up previous build environment…Please wait!
    Cleaning build directories: final-dir Done!
    Cleaning previously built images...Done!
    Cleaning previous builder logs...Done!
    Cleaning of builder environment has finished.
    Obtaining FreeBSD sources RELENG_2_3_4...Done!
    Last known commit jim-p - e7908ab5ceb775daa3dbc17778152a7262e6e661
    Obtaining FreeBSD sources RELENG_2_3_4...Done!
    ERROR: It was not possible to find pkg conf template /usr/MYPRODUCT/tools/templates/pkg_repos/MYPRODUCT-repo.conf

    ####################################
    Something went wrong, check errors!
    ####################################

    NOTE: a lot of times you can run './build.sh --clean-builder' to resolve._

    3. root@test:/ # cd /usr/MYPRODUCT/ && time ./build.sh –no-cleanobjdir --build-kernels
    _>>> Obtaining FreeBSD sources RELENG_2_3_4…Done!

    Building MYPRODUCT kernel.
    ERROR: Could not find /usr/MYPRODUCT/tmp/FreeBSD-src/sys/amd64/conf/MYPRODUCT_

    I have attached the build.conf for your reference.

    I did not found any document or procedure online where clear steps are provided. Request you guys to help me.

    Thank you.

    build.txt



  • Hi, is there any procedure to correctly build an iso from scratch using custom product name. Please share any link.

    Thanks.


  • Developer Netgate



  • Thanks, Steve. All of the solutions are working around with the older version of pfSense. It's not working for me.



  • OK, I believe I am at the last state of building the iso. Please help what's wrong, I am getting this error..

    _====>> Compressing kernel

    Cloning everything to /usr/MYPRODUCT/tmp/stage-dir staging area…mv: rename /usr/MYPRODUCT/tmp/stage-dir/usr/local/sbin/pfSense-upgrade to /usr/MYPRODUCT/tmp/stage-dir/usr/local/sbin/MYPRODUCT-upgrade: No such file or directory
    mtree: /usr/MYPRODUCT/tmp/stage-dir/var: No such file or directory
    ====>> Copying metadata for package rc
    ====>> Creating core package rc
    pkg: Unable to access file /usr/MYPRODUCT/tmp/stage-dir/etc/rc:No such file or directory
    ====>> ERROR: Execution of 'pkg create -o /usr/MYPRODUCT/tmp/MYPRODUCT_master_amd64-core/.real_20170704-0418/All -p /tmp/rc.fBwqdvV/rc_plist -r /usr/MYPRODUCT/tmp/stage-dir -m /tmp/rc.fBwqdvV/rc_metadir' failed (rc = 70)
    ====>> Removing immutable flags from /tmp/rc.fBwqdvV
    ====>> Removing recursively /tmp/rc.fBwqdvV

    ####################################
    Something went wrong, check errors!
    ####################################_