Foreman_bootdisk ISO9660 generation

Hi,

In [1], the iso_generator creates a file name that may have at most 30
characters by concatenating two strings, which can both be up to 30
chars in length. Which, as you might have guessed, fails to create a
consistent boot image on my system.

As a workaround I've reduced the max length in iso9660_filename to 10,
which, at least, led to a booting ISO.

Re-reading the code, it'd probably make more sense to first concatenate
f[0].to_s and suffix and then run it through iso9660_filename.

This is happening on foreman-1.6.2-1.el6 from the 1.6 repo and
ruby193-rubygem-foreman_bootdisk-3.2.1-1.el6 from foreman-plugins-1.6
repo, running on Scientific Linux release 6.5 (Carbon).

Regards, David

[1]

Could you file this in our bug tracker please?

http://projects.theforeman.org/projects/bootdisk/issues/new

··· On 12/02/15 14:14, David Schmitt wrote: > Hi, > > In [1], the iso_generator creates a file name that may have at most 30 > characters by concatenating two strings, which can both be up to 30 > chars in length. Which, as you might have guessed, fails to create a > consistent boot image on my system. > > As a workaround I've reduced the max length in iso9660_filename to 10, > which, at least, led to a booting ISO. > > > Re-reading the code, it'd probably make more sense to first concatenate > f[0].to_s and suffix and *then* run it through iso9660_filename.


Dominic Cleal
Red Hat Engineering