Menu

ocs_prerun command getting ignored

Help
2016-06-20
2016-06-26
  • Ward Galanis

    Ward Galanis - 2016-06-20

    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.

     
  • Ward Galanis

    Ward Galanis - 2016-06-22

    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.

     
  • Steven Shiau

    Steven Shiau - 2016-06-26

    OK, cool! Thanks for sharing that.

    Steven

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.