hashicorp / packer-plugin-sdk

Packer Plugin SDK enables building Packer plugins (builders, provisioners, or post-processors) to manage any service providers or custom in-house solutions
Mozilla Public License 2.0
34 stars 45 forks source link

genisoimage: Directories too deep #236

Open jsburch83 opened 1 year ago

jsburch83 commented 1 year ago

I am trying to apply GPO backup at the end of the unattended install. Found the cd_files was never being created because the directory is too deep. How can I get genisoimage to use the Rock Ridge extensions? I've redacted the full file path for security.

vsphere-iso: Creating CD disk... vsphere-iso: Warning: creating filesystem with Joliet extensions but without Rock Ridge vsphere-iso: extensions. It is highly recommended to add Rock Ridge. vsphere-iso: I: -input-charset not specified, using utf-8 (detected in locale settings) vsphere-iso: genisoimage: Directories too deep for '/tmp/packer_to_cdrom4164509235/ (7) max is 6; ignored - continuing. vsphere-iso: genisoimage: To include the complete directory tree, vsphere-iso: genisoimage: use Rock Ridge extensions via -R or -r, vsphere-iso: genisoimage: or allow deep ISO9660 directory nesting via -D. vsphere-iso: genisoimage: Directories too deep for '/tmp/packer_to_cdrom4164509235/

pay64k commented 1 year ago

Having the same issue, the -R option would probably fix it. I think the code responsible for that is at multistep/commonsteps/step_create_cdrom.go:194, but I'm not sure.

It would be nice to be able to supply an array of arguments in your sources.hcl or similar that would eventually be passed down to return c.Command(path, label, source, dest), nil as for example extra_options and seen in sources,hcl as iso_creation_extra_options.

tenthirtyam commented 3 months ago

Should be transferred to packer-plugin-sdk.

cc @nywilken @lbajolet-hashicorp