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

1.3.5 RC13 Error in Fog script when attempting to expand partitions

Scheduled Pinned Locked Moved Solved
Bug Reports
3
9
2.1k
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.
  • F
    Frank
    last edited by Mar 14, 2017, 7:42 AM

    Server
    • FOG Version: 1.35.RC13
    • OS: Ubuntu 14.04
    Client
    • Service Version: 0.9.12
    • OS: Windows
    Description

    While deploying image, on expand/fill partitions phase the following error rises:
    “* Attempting to expand/fill partitions…awk: fatal: cannot open file ‘-v’ for reading (No such file or directory)”

    F 1 Reply Last reply Mar 14, 2017, 9:32 AM Reply Quote 0
    • M
      michelsantana
      last edited by Mar 14, 2017, 9:01 AM

      Hello,

      Same problem here (Server on CentOS 7). I have done a capture from a computer with a small disk and three partitions (30MB, 45GB and 29,4 GB) using FOG 1.3.5RC13 and when I try to deploy it to another computer with a bigger HD, have the same error.

      1 Reply Last reply Reply Quote 0
      • F
        Frank @Frank
        last edited by Mar 14, 2017, 9:32 AM

        @Frank said in 1.3.5 RC13 Error in Fog script when attempting to expand partitions:

        Server
        • FOG Version: 1.35.RC13
        • OS: Ubuntu 14.04
        Client
        • Service Version: 0.9.12
        • OS: Windows
        Description

        While deploying image, on expand/fill partitions phase the following error rises:
        “* Attempting to expand/fill partitions…awk: fatal: cannot open file ‘-v’ for reading (No such file or directory)”

        It seem the problem is in fog.download.
        When executing /usr/share/fog/lib/procsfdisk.awk it lacks “-v” before “CHUNK_SIZE=512”

        M 1 Reply Last reply Mar 14, 2017, 9:45 AM Reply Quote 0
        • M
          michelsantana @Frank
          last edited by michelsantana Mar 14, 2017, 3:49 AM Mar 14, 2017, 9:45 AM

          @Frank

          Seems that the problem come from the script that call the function procsfdisk. In the definition (procsfdisk.awk) you can find:

          # This is where it all begins (See->BEGIN) :)
          BEGIN {
              # Arguments - Use "-v var=val" when calling this script
              # CHUNK_SIZE;
              # MIN_START;
          

          And in the script partition-funcs.sh, in the same directory, you can find that the call to the procsfdisk function:

          local awkArgs="-v SECTOR_SIZE=$sectorsize CHUNK_SIZE=$chunksize -v MIN_START=$minstart"
          
           # process with external awk script
              /usr/share/fog/lib/procsfdisk.awk $awkArgs $data
          

          And as you can see, there is a missing “-v”. Perhaps that’s the problem.

          F 1 Reply Last reply Mar 14, 2017, 9:53 AM Reply Quote 1
          • F
            Frank @michelsantana
            last edited by Mar 14, 2017, 9:53 AM

            @michelsantana Absolutely. That’s it.
            Sure Fog guys are going to get a fix soon.

            1 Reply Last reply Reply Quote 0
            • M
              michelsantana
              last edited by michelsantana Mar 14, 2017, 4:38 AM Mar 14, 2017, 10:37 AM

              While they fix this bug in future releases, a workaround is to edit the file fogproject/src/buildroot/package/fog/scripts/usr/share/fog/lib/partition-funcs.sh and modify this line of code

              local awkArgs="-v SECTOR_SIZE=$sectorsize CHUNK_SIZE=$chunksize -v MIN_START=$minstart"
              

              with this one:

              local awkArgs="-v SECTOR_SIZE=$sectorsize -v CHUNK_SIZE=$chunksize -v MIN_START=$minstart"
              

              And then in fogproject/src do a “make install-inits”. That will recompile the init.xz and init_32.xz in your actual installation (/var/www/fog/service/ipxe) with this fix.

              I have done it with my current installation and fixed the bug.

              1 Reply Last reply Reply Quote 0
              • T
                Tom Elliott
                last edited by Mar 14, 2017, 12:26 PM

                I found this error last night and had already had it fixed in the working branch. Was hoping a good test with a couple of users who had 4k disks to test. I’ve pushed up RC-14 to fix this particular error.

                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

                F M 2 Replies Last reply Mar 14, 2017, 1:11 PM Reply Quote 0
                • F
                  Frank @Tom Elliott
                  last edited by Mar 14, 2017, 1:11 PM

                  @Tom-Elliott Thanks!

                  1 Reply Last reply Reply Quote 0
                  • M
                    michelsantana @Tom Elliott
                    last edited by Mar 14, 2017, 1:12 PM

                    @Tom-Elliott Thank you very much. Updated to RC14 and working perfect.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    1 / 1
                    • First post
                      7/9
                      Last post

                    157

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project