On 29/07/16 07:14, Rajnesh Kumar Siwal wrote:
> We have created a new bootdisk for Ubuntu but the boot variables are not
> correct in it.
> We mounted the iso image and found that the kernel and initrd filenames
> are not matching the filenames in syslinux.cfg
> -------------------------------------------------------------
> root@rsiwal:~# mount -oloop
> /data/vboxubuntu.vbox.local_20160729_1200.iso /tmp/bootdisk/
> root@rsiwal:~# cat /tmp/bootdisk/isolinux.cfg
> default linux
> label linux
> kernel BOOT/UBUNTU16_04_16_04_X86_64_LINUX
> append initrd=BOOT/UBUNTU16_04_16_04_X86_64_INITRD_GZ interface=auto
> url=http://foreman-aws.example.com/unattended/provision?token=a0b1896f-1176-4d30-8b74-7bb1391a4e42
> ramdisk_size=10800 root=/dev/rd/0 rw auto hostname=vboxubuntu.vbox.local
> console-setup/ask_detect=false console-setup/layout=USA
> console-setup/variant=USA keyboard-configuration/layoutcode=us
> localechooser/translation/warn-light=true
> localechooser/translation/warn-severe=true locale=en_US
> #Disabling IPAPPEND as not suppoerted by Ubuntu 16.04
> # IPAPPEND 2
> root@rsiwal:~# ls -R /tmp/bootdisk/boot
> /tmp/bootdisk/boot:
> ubuntu16_04_16_04_x86_64_initr  ubuntu16_04_16_04_x86_64_linu

I think foreman_bootdisk is miscalculating the maximum length of the
filenames that the ISO9660 format supports, as it's not taking into
account the "linux"/"initrd_gz" extensions.

Can you try to edit
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_bootdisk-8.0.1/app/services/foreman_bootdisk/iso_generator.rb
on your server? Towards the bottom is iso9660_filename and two mentions
of "0..30" - change these to something much shorter, e.g. 0..20, then
restart Foreman (touch ~foreman/tmp/restart.txt, or restart httpd). If
that works then I'll write a more correct fix.

-- 
Dominic Cleal
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to