• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    XZ compression command line - init.xz

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    5
    2.8k
    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.
    • C
      clubhighfive
      last edited by

      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]

      1 Reply Last reply Reply Quote 0
      • C
        clubhighfive
        last edited by

        …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!

        1 Reply Last reply Reply Quote 0
        • C
          clubhighfive
          last edited by

          …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!

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            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.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            1 Reply Last reply Reply Quote 0
            • A
              albion
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              151

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project