[patch] ubcd2iso.sh errors: I/O redirection; ISO level

Report new bugs here, or look at known issues of current and previous releases of UBCD.

Moderators: Icecube, StopSpazzing

Post Reply
Message
Author
mattmahn
Posts: 2
Joined: Fri Jul 07, 2017 11:15 pm

[patch] ubcd2iso.sh errors: I/O redirection; ISO level

#1 Post by mattmahn » Fri Jul 07, 2017 11:35 pm

Patch
There's a syntax error for redirecting stdout to /dev/null, and the ISO level was set too high. I dropped the ISO level to 3, since I didn't see any references to a level 4 anywhere.

Note: I haven't actually tried booting the .iso yet, but it did complete without any errors. Nag me in 24 hours if you want me to test it and I haven't given an update.

ady
Posts: 826
Joined: Sat May 08, 2010 5:26 am

Re: [patch] ubcd2iso.sh errors: I/O redirection; ISO level

#2 Post by ady » Mon Jul 10, 2017 6:43 pm

When using the script "as-is", without patching it, what is the actual problem that you see? Does the resulting ISO image fail in any way as it is right now in UBCD version 5.3.7 ?

mattmahn
Posts: 2
Joined: Fri Jul 07, 2017 11:15 pm

Re: [patch] ubcd2iso.sh errors: I/O redirection; ISO level

#3 Post by mattmahn » Tue Jul 11, 2017 1:07 am

Sorry, I guess it would really helpful to know what went wrong.

As-is, the script doesn't even complete:

Code: Select all

~/Downloads/ubcd537-extracted
❯ ./ubcd/tools/linux/ubcd2iso/ubcd2iso.sh ~/Downloads/ubcd537-extracted ~/foo.iso

UBCD2ISO: Creating bootable UBCD ISO image ...

./ubcd/tools/linux/ubcd2iso/ubcd2iso.sh: line 72: [: too many arguments
UBCD2ISO ERROR: '/home/matt' isn't a directory.
                '/home/matt/foo.iso' could not be created.
/bin/mkisofs: Illegal iso9660 Level 3, use 1..3.

UBCD2ISO ERROR: Something went wrong, while creating '/home/matt/foo.iso'.
I looked at the script, and I noticed that there was a ">" missing to redirect output to /dev/null, hence "./ubcd/tools/linux/ubcd2iso/ubcd2iso.sh: line 72: [: too many arguments". (Same thing for line 73.)

After fixing that, I received another error:

Code: Select all

~/Downloads/ubcd537-extracted 8s
❯ ./ubcd/tools/linux/ubcd2iso/ubcd2iso.sh ~/Downloads/ubcd537-extracted ~/foo.iso

UBCD2ISO: Creating bootable UBCD ISO image ...

/bin/mkisofs: Illegal iso9660 Level 3, use 1..3.

UBCD2ISO ERROR: Something went wrong, while creating '/home/matt/foo.iso'.
I looked at the man page, and saw that the ISO level only goes up to 3. I did a quick check with other internet sources to confirm.
I made the second change in the patch, and it completed successfully.

Yes, UBCD 5.3.7.

ady
Posts: 826
Joined: Sat May 08, 2010 5:26 am

Re: [patch] ubcd2iso.sh errors: I/O redirection; ISO level

#4 Post by ady » Tue Jul 11, 2017 3:16 am

Regarding ISO9660 level 4, it is supported by mkisofs (search for an updated mkisofs' manual) from cdrtools.

So, "level 4" is an adequate option for UBCD, especially considering that advance users would be using the script so as to generate a customized UBCD.


Now, for the main issue...


When using the original script without patching it, please note that the first argument is the root _directory_ of the extracted (and optionally modified) ubcd tree.

I would suggest a test, using "root" (or superuser or sudo) permissions:

Code: Select all

cd ~/Downloads/ubcd537-extracted/ubcd/tools/linux/ubcd2iso/
chmod a+x ubcd2iso.sh
.ubcd2iso.sh ~/Downloads/ubcd537-extracted/ ~/foo.iso
Note that the first argument of the ubcd2iso script ends with a slash ("/") character (indicating a directory). Please use it.

Please let us know the result.

Post Reply