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

    Trying to access /images on deploy-debug

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    2
    185
    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.
    • L
      lcis
      last edited by

      Hello,

      I’m using Deploy-debug function on a computer, and I wanted to access my postdownloadscripts to do some debugging (I have some scripts that update the grub after deployment that does not work completely).

      So I tried to mount $storage with mount -t nfs $storage /mnt
      It gives me “Connection refused”

      I tried mount -t nfs $storage /mnt -v for more verbose info, but still showed same message

      On the server side though, I see no error. In /var/log/syslog it shows :
      1bcc72d1-b4fb-4077-abcb-f6d34b024925-image.png

      I then added a line in /etc/exports with :
      /images/postdownloadscripts *(rw,sync,no_subtree_check,fsid=0,insecure)

      and used the command exportfs -rav

      Then tried to mount again with :
      mount -o vers=4 172.20.40.202:/postdownloadscripts /mnt
      And then it worked.

      For curiosity, why couldn’t I mount $storage ?

      Thanks in advance for your answer

      george1421G 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @lcis
        last edited by

        @lcis said in Trying to access /images on deploy-debug:

        For curiosity, why couldn’t I mount $storage ?

        While debugging your post install script, use debugPause to put a break point in your code. Put an echo statement in just before the debugPause to say “Stop me here”. So when you are debug executing your deployment, when you get to “Stop me here” press ctrl-C to exit the fog script. Now run the set command and confirm where $storage is pointing to.

        Also side note, I always set $variable using ${variable} so the bash interpeter really knows what I want as a variable.

        When you hit the ctrl-c that should be the exact state of the machine. The /images directory on the FOS target computer should already be mapped to the FOG server /images directory at this point (during the execution of the postinstallscript)

        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!

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post

        224

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project