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:
    [CODE]xz --decompress init.xz[/CODE]

    and the following command line seems to successfully re-compress it:
    [CODE]xz --compress init[/CODE]

    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:
    [CODE]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”[/CODE]



  • 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:
    [CODE]xz -z -9 -C crc32 init[/CODE]
    hope this helps others!



  • …specific message im getting during PXE boot is:
    [CODE]Input was encoded with settings that are not supported by this XZ encoder[/CODE]

    thanks in advance!


Log in to reply
 

412
Online

39.3k
Users

11.0k
Topics

104.6k
Posts

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