Failed to generate ISO for Ubuntu 20.10

Bug #1905098 reported by mungewell
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cubic
Fix Released
Medium
Cubic PPA

Bug Description

I was attempting a simple modification of Xubuntu 20.10 Live CD/Installer, to update the kernel the very latest.

Seems that this '.iso' image does not include a isolinux.bin

Console reports:
--
    • Status............................... so : FAILURE : Cannot find in ISO
                                            image: -boot_image ...
                                            bin_path='/isolinux/isolinux.bin'
                                            xorriso
--

I double checked the source Iso, it is officially correct ;-)
--
http://cdimage.ubuntu.com/xubuntu/releases/20.10/release/

simon@thevoid:~/livecdtmp$ sha256sum xubuntu-20.10-desktop-amd64.iso
d69fd1834fe94a8eea0aa9b77341fa305bb8539d9caefbac0ccc618dd733cc63 xubuntu-20.10-desktop-amd64.iso
--

simon@thevoid:~/livecdtmp$ dpkg --list | grep cubic
ii cubic 2020.02-62-classic~202006040403~ubuntu18.04.1 all Wizard to create a customized Ubuntu Live CD image.

simon@thevoid:~/livecdtmp$ lsb_release -rd
Description: Ubuntu 18.04.3 LTS
Release: 18.04

Revision history for this message
mungewell (simon-mungewell) wrote :

The only thing I did was click through menus, until CHROOT where I installed kernel Debs, then clicked through the next menus.

Revision history for this message
mungewell (simon-mungewell) wrote :

Same situation on 'cubic'
--
simon@thevoid:~/livecdtmp$ dpkg --list | grep cubic
ii cubic 2020.10-35-release~202010230044~ubuntu18.04.1 all Wizard to create a customized Ubuntu Live CD image.

The message is........................ xorriso 1.4.8 : RockRidge filesystem
                                            manipulator, libburnia project.
                                            Drive current: -outdev 'stdio:/home/
                                            simon/livecdtmp/xubuntu-20.10.0-2020
                                            .11.20-desktop-amd64.iso' Media
                                            current: stdio file, overwriteable
                                            Media status : is blank Media
                                            summary: 0 sessions, 0 data blocks,
                                            0 data, 5477m free xorriso : WARNING
                                            : -volid text problematic as
                                            automatic mount point name xorriso :
                                            WARNING : -volid text does not
                                            comply to ISO 9660 / ECMA 119 rules
                                            xorriso : NOTE : -as mkisofs:
                                            Ignored option '-cache-inodes' Added
                                            to ISO image: directory
                                            '/'='/home/simon/livecdtmp/custom-
                                            disk' xorriso : UPDATE : 733 files
                                            added in 1 seconds xorriso : UPDATE
                                            : 733 files added in 1 seconds
                                            xorriso : NOTE : Copying to System
                                            Area: 432 bytes from file
                                            '/usr/lib/ISOLINUX/isohdpfx.bin'
                                            xorriso : FAILURE : Cannot find in
                                            ISO image: -boot_image ...
                                            bin_path='/isolinux/isolinux.bin'
                                            xorriso : NOTE : -return_with SORRY
                                            32 triggered by problem severity
                                            FAILURE
--

Revision history for this message
Cubic PPA (cubic-wizard) wrote :

I'll see if I run into this problem on my end.

I presume you are running Cubic in on Xubuntu 18.04 (as you mentioned in Bug Bug #1905105) ?

Revision history for this message
mungewell (simon-mungewell) wrote :

Yes, 18.04 but it's been some time since the install so I wouldn't consider it a 'clean install'...

Cubic PPA (cubic-wizard)
Changed in cubic:
status: New → Confirmed
assignee: nobody → Cubic PPA (cubic-wizard)
Revision history for this message
Cubic PPA (cubic-wizard) wrote :

Additional console log of failure while customizing Xubuntu 20.10 (xubuntu-20.10-desktop-amd64.iso) on Ubuntu 20.04.1 LTS using the current release version of Cubic 2020.10-35-release.

Revision history for this message
Cubic PPA (cubic-wizard) wrote :

Screenshot Cubic showing error on the Generate page during the "Generate the customized disk image" step.

Customizing:
    Xubuntu 20.10

ISO:
    xubuntu-20.10-desktop-amd64.iso

Cubic version:
    2020.10-35-release

Running in:
    Ubuntu 20.04.1 LTS

summary: - Cubic Classic - Failed to build custom Xubuntu 20.10
+ Cubic - Failed to build custom Xubuntu 20.10
Revision history for this message
Cubic PPA (cubic-wizard) wrote : Re: Cubic - Failed to build custom Xubuntu 20.10

The Xubuntu 20.10 ISO is missing the /isolinux directory.

I do not know if this is intentional or if it was an oversight by the Xubuntu packaging team.

Fortunately, there is a nice feature in Cubic that will allow you to circumvent this problem and generate your custom ISO.

If this is an intentional move by the Xubuntu team, and all future Xubuntu ISOs will ship this way, then I may need to "adjust" how Cubic generates the custom ISO, in order to accommodate Xubuntu. Unfortunately, this could result in adding "special" Distro specific code in Cubic, since the Ubuntu 20.10 ISO (and other Ubuntu flavors) is not missing this directory.

Revision history for this message
Cubic PPA (cubic-wizard) wrote :

Follow these steps...

(1)
If you don't have it, download the ISO you want to customize (Xubuntu 20.10):

    "xubuntu-20.10-desktop-amd64.iso"

Also, download the previous LTS ISO (Xubuntu 18.04):

    "xubuntu-18.04.5-desktop-amd64.iso"

(2)
Launch Cubic.

On the Start page, create a new project (ie. an empty directory).

(3)
Click the Next button to navigate to the Project page.

For the Filename, select "xubuntu-20.10-desktop-amd64.iso" (Xubuntu 20.10).

(4)
Click the Next button to navigate to the Extract page.

(5)
You will see two progress bars:

    (a) the Linux filesystem is extracted, and
    (b) important files from the ISO are copied

Once this completes, you will automatically be taken to the Terminal page.

(6)
On the Terminal page, verify the OS version.

    root@cubic:~# uname -r
    5.4.0-53-generic

    root@cubic:~# lsb_release --all
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 20.10
    Release: 20.10
    Codename: groovy

Note that the kernel version will reflect the kernel your are running on your host machine.
The OS version will be 20.10 or "Groovy".

(7)
Here's the trick!!...

Click the **Back** button to navigate to the Project page (again).

For the Filename, select "xubuntu-18.04.5-desktop-amd64.iso" (Xubuntu 18.04).

(8)
Click the undo button (with the tool tip, "Undo changes to the custom ISO values") in the header bar; it is just next to the Back button.
This will simply revert the ~values~ in the right "Custom ISO..." side of the Project page, so they reference your previous "Groovy" values instead of "Bionic". You can change these to whatever you want.

Click the Next button.

(9)
You will see one progress bar this time (same as part b of step 5):

    (b) important files from the ISO are copied

Once this completes, you will automatically be taken to the Terminal page.

(10)
On the Terminal page, verify the OS version has *not* changed.
(This is just to reassure yourself that you are indeed customizing Xubuntu version 20.10)

    root@cubic:~# uname -r
    5.4.0-53-generic

    root@cubic:~# lsb_release --all
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 20.10
    Release: 20.10
    Codename: groovy

Note that the kernel version will reflect the kernel your are running on your host machine.
The OS version will ~still~ be 20.10 or "Groovy" and not 18.04, because your OS customizations were ~not~ overwritten!

(11)
Customize your OS as you would like.
On the Generate page, the customized ISO should generate successfully this time.

Changed in cubic:
status: Confirmed → Triaged
Revision history for this message
mungewell (simon-mungewell) wrote :

Following the 'work around' instructions I was able to build a custom image. The boot menu is different between stock 20.10 and custom 20.10 (which is presumably what is dragged in from 18.04).

Since the stock 20.10 does actually boot, I think that 'they' must have changed the way the system boots of late.

Thanks for you help this weekend, my primary objective (Live-CD with absolutely latest Kernel - for changes in 'ucsi_acpi.ko' USB TypeC PowerDelivery debug) has been achieved.
Simon.

Revision history for this message
Cubic PPA (cubic-wizard) wrote :

Good news!

Yes, the boot menu is affected by this approach. If you wanted, you ~could~ open the 20.10 ISO in Cubic, copy the contents the files listed on the Boot Config tab, and then paste that into the same files in your current Cubic project.

I'll think about what to do about the missing /isolinux directory. It seems to be needed to generate a new *.iso file, but there may be another newer approach. That will take some research on my part.

Perhaps a quick search for files in your home directory may help pinpoint where the local is set...
$ cd ~
$ grep -I -r ^C$
$ grep -I -r ^en_CA$
$ grep -I -r '"en_CA"'

Cubic PPA (cubic-wizard)
Changed in cubic:
status: Triaged → In Progress
importance: Undecided → Medium
Revision history for this message
Cubic PPA (cubic-wizard) wrote :

Updated the bug title because this issue affects other Ubuntu 20.10 based distros.

summary: - Cubic - Failed to build custom Xubuntu 20.10
+ Failed to Generate ISO for Ubuntu 20.10
summary: - Failed to Generate ISO for Ubuntu 20.10
+ Failed to generate ISO for Ubuntu 20.10
Revision history for this message
Cubic PPA (cubic-wizard) wrote :

Proposed changes have been published to the "experimental" branch...

    $ sudo apt autoremove --purge cubic
    $ sudo apt-add-repository --remove ppa:cubic-wizard/release

    $ sudo apt-add-repository ppa:cubic-wizard/experimental
    $ sudo apt update
    $ sudo apt install cubic

Additional testing and bug fixes may be necessary before the fix can be moved to the "release" branch.

Revision history for this message
Cubic PPA (cubic-wizard) wrote :

Fix released in version 2020.12-36.

For a detailed list of the changes in this release, reference the change log for revision 19 of the experimental branch (https://bazaar.launchpad.net/~cubic-wizard/cubic/experimental/view/head:/debian/changelog).

Cubic PPA (cubic-wizard)
Changed in cubic:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.