Error when selecting "isolinux" on the Boot tab while customizing Xubuntu.

Bug #1943613 reported by Cubic PPA
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cubic
Fix Released
Low
Cubic PPA

Bug Description

The following error occurs while customizing xubuntu-20.10-desktop-amd64.iso.

1. Navigate to the Options page, Boot tab.
2. Click on "Show all files" toggle button in the headerbar.
3. Scroll down and click on "isolinux".

      • Change tree selection to............... boot/grub
      • Show pane for file..................... boot/grub
      • Change tree selection to............... isolinux
    Traceback (most recent call last):
      File "/usr/share/cubic/cubic/utilities/files_tree.py", line 361, in change_tree_selection
        mime_type = file_utilities.read_mime_type(full_file_path)
      File "/usr/share/cubic/cubic/utilities/file_utilities.py", line 434, in read_mime_type
        mime_info = magic.from_file(full_file_path, True)
      File "/usr/lib/python3/dist-packages/magic/__init__.py", line 180, in from_file
        return m.from_file(filename)
      File "/usr/lib/python3/dist-packages/magic/__init__.py", line 113, in from_file
        with _real_open(filename):
    FileNotFoundError: [Errno 2] No such file or directory: '/mnt/ram/Ubuntu/custom-disk/isolinux'

While navigating from Packages page to the Options page on Next action, the following warning is printed to the log:

      Search and replace in file
      • File path.............................. isolinux/txt.cfg
      • Waring................................. No tree iter found

Furthermore, items can not be added to the "isolinux" directory.

1. Select the "isolinux" directory.
2. Click on the "Create a new file" toggle button in the headerbar.
3. Create a new file named "test".

      • Show pane for create file.............. isolinux
      • Create file............................ isolinux/test
    Traceback (most recent call last):
      File "/usr/share/cubic/cubic/utilities/files_tab.py", line 383, in create_file
        with open(full_file_path, 'a'):
    FileNotFoundError: [Errno 2] No such file or directory: '/mnt/ram/Ubuntu/custom-disk/isolinux/test'

Revision history for this message
Cubic PPA (cubic-wizard) wrote : Re: Error when selecting "isolinux" on Boot tab while customizing Xubuntu.

This issue will occur for any ISO that does not have a "isolinux" directory.

Changed in cubic:
status: New → Confirmed
status: Confirmed → In Progress
importance: Undecided → Low
assignee: nobody → Cubic PPA (cubic-wizard)
summary: - Error when selecting "isolinux" on Preseed tab while customizing
- Xubuntu.
+ Error when selecting "isolinux" on Boot tab while customizing Xubuntu.
description: updated
Revision history for this message
Cubic PPA (cubic-wizard) wrote :

The solution will be to create an empty "isolinux" directory if it does not exist.
Although "isolinux" is an optional directory and may not exist in some flavors of Ubuntu, it is a top-level directory on the Boot tab.
Top-level directories that do not already exist, can not be created by users.
Therefore users will not be able to add items to the "isolinux", if they want to.

Note, we follow the same approach for the "preseed" directory on the "Preseed" tab.

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

Note that after this fix, the following warning message will still be printed to the log:

      Search and replace in file
      • File path.............................. isolinux/txt.cfg
      • Waring................................. No tree iter found

This is normal behavior. The messages indicates that "isolinux/txt.cfg" does not exist and will not be added to the tree view on the Boot tab. (Initially, "isolinux/txt.cfg" is listed as one of the required boot files that should always be shown, even when "Show all files" toggle button is not active. "isolinux/txt.cfg" is automatically removed from the list of required boot files when the user navigates to the next page, from the Options page.)

Cubic PPA (cubic-wizard)
summary: - Error when selecting "isolinux" on Boot tab while customizing Xubuntu.
+ Error when selecting "isolinux" on the Boot tab while customizing
+ Xubuntu.
Revision history for this message
Cubic PPA (cubic-wizard) wrote :

Fix released in Cubic version 2021.09-54.

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.