Trying to access /images on deploy-debug
-
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 :
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
-
@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 thedebugPause
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 theset
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)