XZ compression command line - init.xz



  • I’m trying to modify the Init Image on a new 1.0.0 installation, and trying to accomodate for the new XZ compression method. I managed to use the following command line to extract it successfully:

    xz --decompress init.xz
    

    and the following command line seems to successfully re-compress it:

    xz --compress init
    

    however when i try to PXE boot, i get an error that the XZ compression method used is not supported. can you tell me the correct way to extract/compress the new init.xz image in the 1.0.0 distribution?

    here is my entire init-modifying script:

    cd /var/www/fog/service/ipxe
    xz --decompress init.xz
    mkdir initmountdir
    mount -o loop init initmountdir
    nano initmountdir/usr/share/fog/lib/funcs.sh
    cd /var/www/fog/service/ipxe
    umount initmountdir/
    rmdir initmountdir
    xz --compress init
    chown fog:www-data init.xz
    echo "repacked, ready for client deployment"
    


  • This post is deleted!

  • Senior Developer

    That is correct.

    Sorry I didn’t get a chance to be of assistance, and I will have to create a WIKI to add these minor changes.

    XZ requires a small portion of encryption.



  • …i think i figured it out! after some googling, i added the CRC32 check and it seems to work normally. here is my whole command line:

    xz -z -9 -C crc32 init
    

    hope this helps others!



  • …specific message im getting during PXE boot is:

    Input was encoded with settings that are not supported by this XZ encoder
    

    thanks in advance!


Log in to reply
 

487
Online

38916
Users

10687
Topics

101371
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.