The example works up to the point when the system runs the custom-ocs 2 file.
The screen i cleard and i get errors on every line:
first couple of errors are:
no such file or directory /opt/drbl/sbin/drbl-conf-functions
no such file or directory /opt/drbl/sbin/ocs-functions
no such file or directory /opt/drbl/sbin/ocs-live.conf
Theese errors corrosponds to the following part of the script:
#!/bin/bash
. /opt/drbl/sbin/drbl-conf-functions
. /opt/drbl/sbin/ocs-functions
. /etc/ocs/ocs-live.conf
If I type:
. /opt/drbl/sbin/drbl-conf-functions
in the shell afterwards, the system finds the file without any problems.
Can anyone help.
In advance thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It depends on the mountpoint version, there was a buggy version which gives false alarm:
Ref: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/486667
Here it's a workaround to avoid false alarm for cifs (you can find that in /opt/drbl/sbin/ocs-functions):
if ; then
# For cifs, we check in another method
if ; then
success_mountpoint
else
fail_mountpoint
fi
else
fail_mountpoint
fi
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I'm currently making a automated pxe boot to restore images.
To automatically mount samba share, I wanted to use custome scripts.
I then found this example:
http://clonezilla.org/clonezilla-live/doc/fine-print.php?path=./07_Customized_script_with_PXE/00_customized_script_with_PXE.doc#00_customized_script_with_PXE.doc
The example works up to the point when the system runs the custom-ocs 2 file.
The screen i cleard and i get errors on every line:
first couple of errors are:
no such file or directory /opt/drbl/sbin/drbl-conf-functions
no such file or directory /opt/drbl/sbin/ocs-functions
no such file or directory /opt/drbl/sbin/ocs-live.conf
Theese errors corrosponds to the following part of the script:
#!/bin/bash
. /opt/drbl/sbin/drbl-conf-functions
. /opt/drbl/sbin/ocs-functions
. /etc/ocs/ocs-live.conf
If I type:
. /opt/drbl/sbin/drbl-conf-functions
in the shell afterwards, the system finds the file without any problems.
Can anyone help.
In advance thanks
Weird… Looks normal…
Where did you edit your script? If it's on MS windows, remember to use dos2unix command to convert that.
Steven.
AHA!
Dammit, that was simple. Thanks a bunch.
Love the clonezilla live. Going to implement it for fast manual backup om my Linux NAS at home :D
Thanks for the help.
As you might have guessed, I'm fairly noob at unix.
I godt this piece of code somewhere on the forum but I have a problem, maybe you can help:
The (if mountpoint /home/partimag/ &>/dev/null; then) part always return false, even though the samba share is mounted and all.
Hope you can spot the error :D
It depends on the mountpoint version, there was a buggy version which gives false alarm:
Ref: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/486667
Here it's a workaround to avoid false alarm for cifs (you can find that in /opt/drbl/sbin/ocs-functions):
if ; then
# For cifs, we check in another method
if ; then
success_mountpoint
else
fail_mountpoint
fi
else
fail_mountpoint
fi
Steven.