I have four ocs_prerun commands in my clone script:
ocs_prerun1="dhclient -v eth0"
ocs_prerun2="sleep 2"
ocs_prerun3="mount -t cifs -o user=user,domain=domainname,password="password with spaces" //cifs_sharename /home/partimag"
ocs_prerun4="sleep 20"
ocs_prerun3 is getting ignored. Does order in the mount command matter and how should passwords with spaces be properly delimited?
Commands above are on separate lines for readability here.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Solved my problem. When mounting with a spaced out password, you must use single quotes.
Example: ocs_prerun3="mount -t cifs -o user=user,domain=domainname,password='password with spaces' //cifs_sharename /home/partimag"
And the clonezilla stick I was working with was missing the ocs_prerun2="sleep 2". Missing that does not allow the network connection to fully set up before initiating communications with the target share.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have four ocs_prerun commands in my clone script:
ocs_prerun1="dhclient -v eth0"
ocs_prerun2="sleep 2"
ocs_prerun3="mount -t cifs -o user=user,domain=domainname,password="password with spaces" //cifs_sharename /home/partimag"
ocs_prerun4="sleep 20"
ocs_prerun3 is getting ignored. Does order in the mount command matter and how should passwords with spaces be properly delimited?
Commands above are on separate lines for readability here.
Solved my problem. When mounting with a spaced out password, you must use single quotes.
Example: ocs_prerun3="mount -t cifs -o user=user,domain=domainname,password='password with spaces' //cifs_sharename /home/partimag"
And the clonezilla stick I was working with was missing the ocs_prerun2="sleep 2". Missing that does not allow the network connection to fully set up before initiating communications with the target share.
OK, cool! Thanks for sharing that.
Steven