drbl-functions line 2133 syntax error
A partition and disk imaging/cloning program
Brought to you by:
steven_shiau
When I ran custum-ocs-1,error occured.
/usr/share/drbl/sbin/drbl-functions: 2133: /usr/share/drbl/sbin/drbl-functions: Syntax error: "(" unexpected (expecting "}")
Because /bin/sh is linked to /bin/dash, not /bin/bash. So syntax error occured.
When run with bash (like /bin/bash drbx-functions) it has no error.
Where did you get custum-ocs-1?
All the updated custum-ocs-1 in the recently Clonezilla live starts with
#!/bin/bash
Is it from old version of Clonezilla live? Like one year old?
Steven.
Last edit: Steven Shiau 2015-04-12
Thank you for your reply.
I use this.
% more Clonezilla-Live-Version
clonezilla-live-2.3.2-22-i586
This Clonezilla live iso file was created by this command:
ocs-iso -s --extra-boot-param quiet -y 6.03 -i 2.3.2-22-i586
For Clonezilla live 2.3.2-22,
$ grep -F -n "/bin/bash" /usr/share/drbl/samples/custom-ocs*
/usr/share/drbl/samples/custom-ocs:1:#!/bin/bash
/usr/share/drbl/samples/custom-ocs-1:1:#!/bin/bash
/usr/share/drbl/samples/custom-ocs-2:1:#!/bin/bash
You can see all of them are starting with "#!/bin/bash". That's weird why you have "#/bin/sh".
Steven.