public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] [PATCH] create-iso.sh: split iso-level arguments
@ 2022-04-19 17:40 Daniel Cordero
  2022-04-20 23:25 ` Matt Turner
  2022-04-23 10:59 ` Andreas K. Huettel
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Cordero @ 2022-04-19 17:40 UTC (permalink / raw
  To: gentoo-catalyst

From: Daniel Cordero <catalyst@0xdc.io>

When enclosed in quotes and expanded with "${variable[@]}", the word is expanded
to be a single argument, rather than two separate arguments.

i.e. argv[2] = "-iso-level 3"
instead of
  argv[2] = "-iso-level"
  argv[3] = "3"

This lead to the failure:
  xorriso : FAILURE : -as mkisofs: Unrecognized option '-iso-level 3'
  xorriso : aborting : -abort_on 'FAILURE' encountered 'FAILURE'
  grub-mkrescue: error: `xorriso` invocation failed

This patch fixes commit 0b56dbe4d36c88b0b051d24451e15cd6b64c819d.
---
 targets/support/create-iso.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh
index 45ef1696..9991b930 100755
--- a/targets/support/create-iso.sh
+++ b/targets/support/create-iso.sh
@@ -194,7 +194,7 @@ case ${clst_hostarch} in
 	amd64|arm64|ia64|ppc*|powerpc*|sparc*|x86)
 		isoroot_checksum
 
-		extra_opts=("-joliet" "-iso-level 3")
+		extra_opts=("-joliet" "-iso-level" "3")
 		case ${clst_hostarch} in
 		sparc*) extra_opts+=("--sparc-boot") ;;
 		esac
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [gentoo-catalyst] [PATCH] create-iso.sh: split iso-level arguments
  2022-04-19 17:40 [gentoo-catalyst] [PATCH] create-iso.sh: split iso-level arguments Daniel Cordero
@ 2022-04-20 23:25 ` Matt Turner
  2022-04-23 10:59 ` Andreas K. Huettel
  1 sibling, 0 replies; 3+ messages in thread
From: Matt Turner @ 2022-04-20 23:25 UTC (permalink / raw
  To: gentoo-catalyst

Thanks, committed!


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-catalyst] [PATCH] create-iso.sh: split iso-level arguments
  2022-04-19 17:40 [gentoo-catalyst] [PATCH] create-iso.sh: split iso-level arguments Daniel Cordero
  2022-04-20 23:25 ` Matt Turner
@ 2022-04-23 10:59 ` Andreas K. Huettel
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas K. Huettel @ 2022-04-23 10:59 UTC (permalink / raw
  To: gentoo-catalyst; +Cc: Daniel Cordero

Huh... fine of course and sorry about that.
Strange that it worked though...

Am Dienstag, 19. April 2022, 19:40:15 CEST schrieb Daniel Cordero:
> From: Daniel Cordero <catalyst@0xdc.io>
> 
> When enclosed in quotes and expanded with "${variable[@]}", the word is expanded
> to be a single argument, rather than two separate arguments.
> 
> i.e. argv[2] = "-iso-level 3"
> instead of
>   argv[2] = "-iso-level"
>   argv[3] = "3"
> 
> This lead to the failure:
>   xorriso : FAILURE : -as mkisofs: Unrecognized option '-iso-level 3'
>   xorriso : aborting : -abort_on 'FAILURE' encountered 'FAILURE'
>   grub-mkrescue: error: `xorriso` invocation failed
> 
> This patch fixes commit 0b56dbe4d36c88b0b051d24451e15cd6b64c819d.
> ---
>  targets/support/create-iso.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh
> index 45ef1696..9991b930 100755
> --- a/targets/support/create-iso.sh
> +++ b/targets/support/create-iso.sh
> @@ -194,7 +194,7 @@ case ${clst_hostarch} in
>  	amd64|arm64|ia64|ppc*|powerpc*|sparc*|x86)
>  		isoroot_checksum
>  
> -		extra_opts=("-joliet" "-iso-level 3")
> +		extra_opts=("-joliet" "-iso-level" "3")
>  		case ${clst_hostarch} in
>  		sparc*) extra_opts+=("--sparc-boot") ;;
>  		esac
> 


-- 
Andreas K. Hüttel
dilfridge@gentoo.org
Gentoo Linux developer
(council, toolchain, base-system, perl, libreoffice)




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-23 11:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-19 17:40 [gentoo-catalyst] [PATCH] create-iso.sh: split iso-level arguments Daniel Cordero
2022-04-20 23:25 ` Matt Turner
2022-04-23 10:59 ` Andreas K. Huettel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox