Using preseed for cubic

Asked by Miguel Boura on 2019-03-18

When you don't enter a preseed for the Ubuntu generator to generate a new ISO image, it works as normal, but when I try to add in a preseed file, it hangs after I press Generate. I don't know if I'm writing the preseed wrong, or if I'm prefixing it incorrectly in the ISO boot configuration

For reference, I am using an Ubuntu 18.04 desktop, slightly altered with a different boot up screen, and a custom ISO disc. I'm then putting that through cubic to create a new ISO image and add the preseed in.

The lines I'm adding in the ISO boot configuration:
menuentry "Install Ubuntu" {
/cdrom/preseed/preseed.cfg
}

When I press Generate, it doesn't go to the disc generation screen, it just hangs on the verification of ISO boot parameters screen with the loading wheel spinning continuously. I expected it to move to the last screen and see progress of the disc being created.

Question information

Cubic PPA (cubic-wizard) said : #1

Miguel,

It should not hang the way you have described.

I tested by running Cubic on Ubuntu 18.10, and I attempted to customize Ubuntu 18.04.
(1)
I created a preseed.cfg file on the "Preseed Files" tab.
(2)
On the "ISO Boot Configurations" tab, I updated grub.cfg, loopback.cfg, and txt.cfg to reference "/cdrom/preseed/preseed.cfg" for all "Install Ubuntu" sections.
(3)
When I clicked the "Generate" button, Cubic transitioned to the next page, as expected.

Since I could not recreate this issue, would you please run Cubic from the command-line?
Simply type `cubic` and hit the <Enter> key.

Then, copy and paste the output here.
Hopefully there will be an error or other information printed to the console that can help explain what is going on.

Are any of the files you are working with on a remote, on a mounted file system, or are there any symlinks in your paths? (For example is your cubic project folder local, or is there a symlink to it? What about the *.iso file you are customizing?)
Are you running Cubic in a virtual machine?
How much free disk space do you have?

Also, please provide any additional information you think may be useful.

Miguel Boura (miguelb) said : #2

Hi,

I am running Cubic on a hard disk install, with about 84.4GB free space. The files I am using are more or less in the same directory.

I have the customized iso in one directory, and the destination for the customized iso in another directory. So, it's a local file.

When I wrote the preseed file, I used ubiquity instead of d-i, which might have been wrong. I tried again with d-i instead, and I've updated grub.cfg. I do not have loopback.cfg or txt.cfg.

When I pressed Generate, it did not transition, and instead froze. I feel it is the preseed, because when I try to generate the iso without adding a preseed or edit the cfg, it transitions as normal.

Here is the output

Cubic (Custom Ubuntu ISO Creator) is a graphical user interface application and should be run using the application launcher. See "man cubic" for more information.

    Using GtkSource version................ 3.0
    Using GtkSource version................ 3.0
    Using Vte version...................... 2.91
    Using GtkSource version................ 3.0

Starting Cubic
    The root user id is.................... 0
    The root group id is................... 0
    The working directory is............... /usr/share/cubic
    The user name is....................... sm
    The user id is......................... 1000
    The group id is........................ 1000
    The home directory is.................. /home/sm
    Set the HOME environment variable to... /home/sm
    The current GTK theme is............... Ambiance
    Execute synchronously.................. dpkg-query --showformat="${Version}
                                            " --show gir1.2-gtk-3.0
    The GTK version is..................... 3.22
    The Cubic ui filename is............... cubic_gtk318.ui
    The builder is......................... <Gtk.Builder object at
                                            0x7f4c680b98b8 (GtkBuilder at
                                            0x1d274f0)>
    The current page name is............... project_directory_page
    Execute synchronously.................. dpkg-query --showformat="${Version}
                                            " --show cubic
    The Cubic version is................... 2019.03-49-release~201903170500~ubun
                                            tu18.04.1
    The default icon theme search path
    is..................................... ['/home/sm/.local/share/icons',
                                            '/home/sm/.icons',
                                            '/usr/local/share/icons',
                                            '/usr/share/icons',
                                            '/usr/local/share/pixmaps',
                                            '/usr/share/pixmaps']
  Set default icon theme search path
    Icon theme search path................. ['/home/sm/.local/share/icons',
                                            '/home/sm/.icons',
                                            '/usr/local/share/icons',
                                            '/usr/share/icons',
                                            '/usr/local/share/pixmaps',
                                            '/usr/share/pixmaps']
  Append icon theme search path
    Icon theme search path................. ['/home/sm/.local/share/icons',
                                            '/home/sm/.icons',
                                            '/usr/local/share/icons',
                                            '/usr/share/icons',
                                            '/usr/local/share/pixmaps',
                                            '/usr/share/pixmaps']
    The theme style is..................... light
Gtk-Message: 11:22:36.019: GtkDialog mapped without a transient parent. This is discouraged.

Created new thread
    Current page........................... project_directory_page__project_dire
                                            ctory_filechooser
    New page............................... project_directory_page
    Running thread with id................. 139965635737344
    Interrupting previous thread with id... No previous thread to interrupt

Performing requested transition action
    Transition from........................ project_directory_page__project_dire
                                            ctory_filechooser
    Transition to.......................... project_directory_page
    Finished running thread with id........ 139965635737344
    The project directory is............... /isotest2
    The configuration filepath is.......... /isotest2/cubic.conf
    The original ISO image mount point
    is..................................... /isotest2/original-iso-mount
    The custom squashfs directory is....... /isotest2/squashfs-root
    The custom live ISO directory is....... /isotest2/custom-live-iso
    Is project directory page, original
    section, valid?........................ True
    Button clicked......................... Next

Created new thread
    Current page........................... project_directory_page
    New page............................... new_project_page
    Running thread with id................. 139965635737344
    Interrupting previous thread with id... No previous thread to interrupt

Performing requested transition action
    Transition from........................ project_directory_page
    Transition to.......................... new_project_page
    Propagate assigned values to
    calculate dependant values?............ False
    The original ISO image filepath is..... Empty
    The original ISO image filename is..... Empty
    The original ISO image directory is.... Empty
    The original ISO image volume id is.... Empty
    The original ISO image release name
    is..................................... Empty
    The original ISO image disk name is.... Empty
    The custom ISO image version number
    is..................................... Empty
    The custom ISO image filename is....... Empty
    The custom ISO image directory is...... Empty
    The custom ISO image filepath is....... Empty
    The custom ISO image volume id is...... Empty
    The custom ISO image release name is... Empty
    The custom ISO image disk name is...... Empty
    The custom ISO image md5 filename is... Empty
    The custom ISO image md5 filepath is... Empty
    Is success copy boot files............. False
    Is success extract squashfs?........... False
    Hiding old page........................ project_directory_page
    Showing new page....................... new_project_page
    The current page name is............... new_project_page
    Is new project page, original
    section, valid?........................ False
    Is new project page, custom section,
    valid?................................. False
    Propagate assigned values to
    calculate dependant values?............ True
    Finished running thread with id........ 139965635737344
Gtk-Message: 11:22:51.155: GtkDialog mapped without a transient parent. This is discouraged.
Gtk-Message: 11:24:12.081: GtkDialog mapped without a transient parent. This is discouraged.

Created new thread
    Current page........................... original_iso_image_filepath_filechoo
                                            ser
    New page............................... new_project_page
    Previous thread id..................... 139965635737344
    Running thread with id................. 139965660915456
    Interrupting previous thread with id... No previous thread to interrupt

Performing requested transition action
    Transition from........................ original_iso_image_filepath_filechoo
                                            ser
    Transition to.......................... new_project_page
    Propagate assigned values to
    calculate dependant values?............ False
    The original ISO image filepath is..... /isofile/live-cd.iso
    The original ISO image filename is..... live-cd.iso
    The original ISO image directory is.... /isofile
  Check if ISO image is mounted
    ISO image.............................. /isofile/live-cd.iso
    Mount point............................ /isotest2/original-iso-mount
    Execute synchronously.................. mount
    Is mounted?............................ False
  Mount ISO image
    ISO image.............................. /isofile/live-cd.iso
    Mount point............................ /isotest2/original-iso-mount
    Create the mount point if it does
    not exist.............................. /isotest2/original-iso-mount
    Execute synchronously.................. mkdir "/isotest2/original-iso-mount"
    Set a new process for thread id........ 139965660915456
    The new process id is.................. 4278
    Mount.................................. /isofile/live-cd.iso
    Execute synchronously.................. mount --options loop "/isofile/live-
                                            cd.iso" "/isotest2/original-iso-
                                            mount"
    Set a new process for thread id........ 139965660915456
    The new process id is.................. 4279
  Check if ISO image is mounted
    ISO image.............................. /isofile/live-cd.iso
    Mount point............................ /isotest2/original-iso-mount
    Execute synchronously.................. mount
    Is mounted?............................ True
    Execute synchronously.................. isoinfo -d -i "/isofile/live-cd.iso"
    Set a new process for thread id........ 139965660915456
    The new process id is.................. 4283
    The original ISO image volume id is.... ISOIMAGE
    Execute synchronously.................. cat "/isotest2/original-iso-
                                            mount/README.diskdefines"
    Set a new process for thread id........ 139965660915456
    The new process id is.................. 4284
    The original ISO image release name
    is..................................... Unknown iso image release name
    Execute synchronously.................. cat "/isotest2/original-iso-
                                            mount/README.diskdefines"
    Set a new process for thread id........ 139965660915456
    The new process id is.................. 4285
    The original ISO image disk name is.... Unknown iso image disk name
    Get directory for
    filesystem.squashfs in................. /isotest2/original-iso-mount
    filesystem.squashfs is in.............. /isotest2/original-iso-mount/casper
    The casper relative directory is....... casper
    The custom ISO image version number
    is..................................... 2019.03.20
  Create custom ISO image filename
    The original ISO image filename is..... live-cd.iso
    The custom ISO image version number
    is..................................... 2019.03.20
    The custom iso image filename is....... live-cd-2019.03.20.iso
    The custom ISO image filename is....... live-cd-2019.03.20.iso
    The custom ISO image directory is...... /isotest2
    The custom ISO image filepath is....... /isotest2/live-cd-2019.03.20.iso
  Create custom ISO image volume id
    The original ISO image volume id is.... ISOIMAGE
    The custom ISO image version number
    is..................................... 2019.03.20
    The custom iso image volume id is...... ISOIMAGE 2019.03.20
    The custom ISO image volume id is...... ISOIMAGE 2019.03.20
    The custom ISO image release name is... Custom Unknown iso image release
                                            name
    The custom ISO image disk name is...... ISOIMAGE 2019.03.20 "Custom Unknown
                                            iso image release name"
    The custom ISO image md5 filename is... live-cd-2019.03.20.md5
    The custom ISO image md5 filepath is... /isotest2/
  Check if ISO image is mounted
    ISO image.............................. /isofile/live-cd.iso
    Mount point............................ /isotest2/original-iso-mount
    Execute synchronously.................. mount
    The custom ISO image version number
    is..................................... 2019.03.20
    Is new project page, custom section,
    valid?................................. True
    The custom ISO image filename is....... live-cd-2019.03.20.iso
    The custom ISO image filepath is....... /isotest2/live-cd-2019.03.20.iso
    The custom ISO image md5 filename is... live-cd-2019.03.20.md5
    The custom ISO image md5 filepath is... /isotest2/live-cd-2019.03.20.md5
    Is new project page, custom section,
    valid?................................. True
    The custom ISO image directory is...... /isotest2
    The custom ISO image filepath is....... /isotest2/live-cd-2019.03.20.iso
    The custom ISO image md5 filepath is... /isotest2/live-cd-2019.03.20.md5
    Is new project page, custom section,
    valid?................................. True
    The custom ISO image volume id is...... ISOIMAGE 2019.03.20
    Is new project page, custom section,
    valid?................................. True
    The custom ISO image release name is... Custom Unknown iso image release
                                            name
    Is new project page, custom section,
    valid?................................. True
    The custom ISO image disk name is...... ISOIMAGE 2019.03.20 "Custom Unknown
                                            iso image release name"
    Is new project page, custom section,
    valid?................................. True
    Is mounted?............................ True
    Is new project page, original
    section, valid?........................ True
    Is new project page, custom section,
    valid?................................. True
    Propagate assigned values to
    calculate dependant values?............ True
    Finished running thread with id........ 139965660915456
    The custom ISO image version number
    is..................................... Empty
  Create custom ISO image filename
    The original ISO image filename is..... live-cd.iso
    The custom ISO image version number
    is..................................... Empty
    The custom iso image filename is....... live-cd-.iso
  Create custom ISO image volume id
    The original ISO image volume id is.... ISOIMAGE
    The custom ISO image version number
    is..................................... Empty
    The custom iso image volume id is...... ISOIMAGE
    Is new project page, custom section,
    valid?................................. True
    The custom ISO image version number
    is..................................... 2
  Create custom ISO image filename
    The original ISO image filename is..... live-cd.iso
    The custom ISO image version number
    is..................................... 2
    The custom iso image filename is....... live-cd-2.iso
  Create custom ISO image volume id
    The original ISO image volume id is.... ISOIMAGE
    The custom ISO image version number
    is..................................... 2
    The custom iso image volume id is...... ISOIMAGE 2
    Is new project page, custom section,
    valid?................................. True
    The custom ISO image filename is....... live-cd-.iso
    The custom ISO image filepath is....... /isotest2/live-cd-.iso
    The custom ISO image md5 filename is... live-cd-.md5
    The custom ISO image md5 filepath is... /isotest2/live-cd-.md5
    Is new project page, custom section,
    valid?................................. True
    The custom ISO image volume id is...... ISOIMAGE
    Is new project page, custom section,
    valid?................................. True
    The custom ISO image filename is....... live-cd-2.iso
    The custom ISO image filepath is....... /isotest2/live-cd-2.iso
    The custom ISO image md5 filename is... live-cd-2.md5
    The custom ISO image md5 filepath is... /isotest2/live-cd-2.md5
    Is new project page, custom section,
    valid?................................. True
    The custom ISO image volume id is...... ISOIMAGE 2
    Is new project page, custom section,
    valid?................................. True
    The custom ISO image disk name is...... ISOIMAGE "Custom Unknown iso image
                                            release name"
    Is new project page, custom section,
    valid?................................. True
    The custom ISO image disk name is...... ISOIMAGE 2 "Custom Unknown iso image
                                            release name"
    Is new project page, custom section,
    valid?................................. True
    Button clicked......................... Next

Created new thread
    Current page........................... new_project_page
    New page............................... terminal_page
    Running thread with id................. 139965660915456
    Interrupting previous thread with id... No previous thread to interrupt

Performing requested transition action
    Transition from........................ new_project_page
    Transition to.......................... terminal_page
    Save configuration..................... None
    Hiding old page........................ new_project_page
    Showing new page....................... unsquashfs_page
    The current page name is............... unsquashfs_page
  Copy the original ISO files
    The source path is..................... /isotest2/original-iso-mount/
    The target path is..................... /isotest2/custom-live-iso/
    filesystem.manifest-remove not found
    in..................................... /isotest2/custom-live-iso/casper
    Include filesystem.manifest-remove?.... True
    filesystem.manifest-minimal-remove
    not found in........................... /isotest2/custom-live-iso/casper
    Include filesystem.manifest-minimal-
    remove?................................ True
    Execute asynchronously................. rsync --delete --archive
                                            --exclude="md5sum.txt" --exclude="/c
                                            asper/filesystem.squashfs" --exclude
                                            ="/casper/filesystem.squashfs.gpg"
                                            --progress "/isotest2/original-iso-
                                            mount/" "/isotest2/custom-live-iso/"
    Set a new process for thread id........ 139965660915456
    The new process id is.................. 4308
    • The start time is.................... 11:28:34.838920
    • Completed............................ 0%
    • Completed............................ 10%
    • Completed............................ 20%
    • Completed............................ 30%
    • Completed............................ 40%
    • Completed............................ 50%
    • Completed............................ 60%
    • Completed............................ 70%
    • Completed............................ 80%
    • Completed............................ 90%
    • Completed............................ 100%
    • The end time is...................... 11:28:35.883727
    Is success copy boot files............. True
  Extract squashfs
    The target path is..................... /isotest2/squashfs-root
    Delete file............................ /isotest2/squashfs-root
    /isotest2/squashfs-root does not
    exist.................................. Cannot delete
    The source path is..................... /isotest2/original-iso-
                                            mount/casper/filesystem.squashfs
    Execute asynchronously................. unsquashfs -force -dest
                                            "/isotest2/squashfs-root"
                                            "/isotest2/original-iso-
                                            mount/casper/filesystem.squashfs"
    Set a new process for thread id........ 139965660915456
    The new process id is.................. 4312
    • The start time is.................... 11:28:36.740292
    • Completed............................ 0%
    • Completed............................ 10%
    • Completed............................ 20%
    • Completed............................ 30%
    • Completed............................ 40%
    • Completed............................ 50%
    • Completed............................ 60%
    • Completed............................ 70%
    • Completed............................ 80%
    • Completed............................ 90%
    • Completed............................ 100%
    • The end time is...................... 11:29:18.849701
    Is success extract squashfs?........... True
    Save configuration..................... None
  Prepare chroot environment
    Execute synchronously.................. mount --bind /dev
                                            "/isotest2/squashfs-root/dev"
    Set a new process for thread id........ 139965660915456
    The new process id is.................. 4325
    Execute synchronously.................. mount --bind /run
                                            "/isotest2/squashfs-root/run"
    Set a new process for thread id........ 139965660915456
    The new process id is.................. 4326
    Execute synchronously.................. mount --types proc proc
                                            /isotest2/squashfs-root/proc
    Set a new process for thread id........ 139965660915456
    The new process id is.................. 4327
    Execute synchronously.................. mount --types sysfs sys
                                            /isotest2/squashfs-root/sys
    Set a new process for thread id........ 139965660915456
    The new process id is.................. 4328
    Execute synchronously.................. mount --types devpts pts
                                            /isotest2/squashfs-root/dev/pts
    Set a new process for thread id........ 139965660915456
    The new process id is.................. 4329
  Change terminal prompt colors (modify .bashrc)
    Backup................................. /isotest2/squashfs-root/root/.bashrc
    To..................................... /isotest2/squashfs-
                                            root/root/.bashrc.bak
    Ignoring exception while changing
    terminal prompt colors (modifying
    .bashrc)............................... [Errno 2] No such file or directory:
                                            '/isotest2/squashfs-
                                            root/root/.bashrc'
  Enter chroot environment
    The chroot environment directory is.... /isotest2/squashfs-root
    The terminal pid is.................... 4330
  Check chroot environment
    The terminal pid is.................... 4330
    The custom squashfs directory is....... /isotest2/squashfs-root
    The termnal's root directory is........ /isotest2/squashfs-root
    Terminal is in chroot environment?..... True
    Hiding old page........................ unsquashfs_page
    Showing new page....................... terminal_page
    The current page name is............... terminal_page
  Initialize chroot environment
  Check chroot environment
    The terminal pid is.................... 4330
    The custom squashfs directory is....... /isotest2/squashfs-root
    The termnal's root directory is........ /isotest2/squashfs-root
    Terminal is in chroot environment?..... True
    Send text to terminal.................. None
    Send bytes to terminal................. You are in the chroot
                                            environment.
    Send text to terminal.................. dpkg-divert --local --rename --add
                                            /sbin/initctl
    Send text to terminal.................. Empty
  Restore terminal prompt colors (restore .bashrc)
    Restore................................ /isotest2/squashfs-root/root/.bashrc
    From................................... /isotest2/squashfs-
                                            root/root/.bashrc.bak
    Ignoring exception while restoring
    terminal prompt colors (restoring
    .bashrc)............................... [Errno 2] No such file or directory:
                                            '/isotest2/squashfs-
                                            root/root/.bashrc.bak'
    Finished running thread with id........ 139965660915456
    Button clicked......................... Next

Created new thread
    Current page........................... terminal_page
    New page............................... options_page
    Running thread with id................. 139965660915456
    Interrupting previous thread with id... No previous thread to interrupt

Performing requested transition action
    Transition from........................ terminal_page
    Transition to.......................... options_page
  Create list of installed packages
    Execute synchronously.................. chroot "/isotest2/squashfs-root"
                                            dpkg-query --show
    Set a new process for thread id........ 139965660915456
    The new process id is.................. 4351
    Total number of installed packages..... 1744
  Exit chroot environment
    Send text to terminal.................. rm -f /sbin/initctl
    Send text to terminal.................. dpkg-divert --rename --remove
                                            /sbin/initctl
    Send text to terminal.................. exit
    Terminal............................... exited

Created new thread
    Current page........................... terminal_page
    New page............................... terminal_page
    Running thread with id................. 139966016980736
    Interrupting previous thread with id... No previous thread to interrupt

Performing requested transition action
    Transition from........................ terminal_page
    Transition to.......................... terminal_page
  Exit chroot environment
    Send text to terminal.................. rm -f /sbin/initctl
    Get mount points in directory.......... /isotest2/squashfs-root
    Execute synchronously.................. mount
    Send text to terminal.................. dpkg-divert --rename --remove
                                            /sbin/initctl
    Send text to terminal.................. exit
    Set a new process for thread id........ 139965660915456
    The new process id is.................. 4361
    5 mount points were found in
    directory.............................. /isotest2/squashfs-root
    Mount point 1......................... /isotest2/squashfs-root/dev
    Mount point 2......................... /isotest2/squashfs-root/run
    Mount point 3......................... /isotest2/squashfs-root/proc
    Mount point 4......................... /isotest2/squashfs-root/sys
    Mount point 5......................... /isotest2/squashfs-root/dev/pts
    Unmount mount points................... None
    Unmount................................ /isotest2/squashfs-root/dev/pts
    Execute synchronously.................. umount "/isotest2/squashfs-
                                            root/dev/pts"
    Get mount points in directory.......... /isotest2/squashfs-root
    Execute synchronously.................. mount
    Set a new process for thread id........ 139966016980736
    The new process id is.................. 4363
    4 mount points were found in
    directory.............................. /isotest2/squashfs-root
    Mount point 1......................... /isotest2/squashfs-root/dev
    Mount point 2......................... /isotest2/squashfs-root/run
    Mount point 3......................... /isotest2/squashfs-root/proc
    Mount point 4......................... /isotest2/squashfs-root/sys
    Unmount mount points................... None
    Unmount................................ /isotest2/squashfs-root/sys
    Execute synchronously.................. umount "/isotest2/squashfs-root/sys"
    Successfully unmounted
    /isotest2/squashfs-root/dev/pts........ None
    Unmount................................ /isotest2/squashfs-root/sys
    Execute synchronously.................. umount "/isotest2/squashfs-root/sys"
    Successfully unmounted
    /isotest2/squashfs-root/sys............ None
    Unmount................................ /isotest2/squashfs-root/proc
    Execute synchronously.................. umount "/isotest2/squashfs-
                                            root/proc"
    Unable to unmount
    /isotest2/squashfs-root/sys............ umount: /isotest2/squashfs-root/sys:
                                            not mounted.
    Unmount................................ /isotest2/squashfs-root/proc
    Execute synchronously.................. umount "/isotest2/squashfs-
                                            root/proc"
    Successfully unmounted
    /isotest2/squashfs-root/proc........... None
    Unmount................................ /isotest2/squashfs-root/run
    Execute synchronously.................. umount "/isotest2/squashfs-root/run"
    Unable to unmount
    /isotest2/squashfs-root/proc........... umount: /isotest2/squashfs-
                                            root/proc: not mounted.
    Unmount................................ /isotest2/squashfs-root/run
    Execute synchronously.................. umount "/isotest2/squashfs-root/run"
    Successfully unmounted
    /isotest2/squashfs-root/run............ None
    Unmount................................ /isotest2/squashfs-root/dev
    Execute synchronously.................. umount "/isotest2/squashfs-root/dev"
    Unable to unmount
    /isotest2/squashfs-root/run............ umount: /isotest2/squashfs-root/run:
                                            not mounted.
    Unmount................................ /isotest2/squashfs-root/dev
    Execute synchronously.................. umount "/isotest2/squashfs-root/dev"
    Successfully unmounted
    /isotest2/squashfs-root/dev............ None
    Get mount points in directory.......... /isotest2/squashfs-root
    Execute synchronously.................. mount
    Unable to unmount
    /isotest2/squashfs-root/dev............ umount: /isotest2/squashfs-root/dev:
                                            not mounted.
    Get mount points in directory.......... /isotest2/squashfs-root
    Execute synchronously.................. mount
    Set a new process for thread id........ 139966016980736
    The new process id is.................. 4372
    No mount points were found in.......... /isotest2/squashfs-root
    Get processes that are using
    directory.............................. /isotest2/squashfs-root
    No processes were found that are
    using directory........................ /isotest2/squashfs-root
    Get mount points in directory.......... /isotest2/squashfs-root
    Execute synchronously.................. mount
    Set a new process for thread id........ 139965660915456
    The new process id is.................. 4373
    No mount points were found in.......... /isotest2/squashfs-root
    Get processes that are using
    directory.............................. /isotest2/squashfs-root
    No processes were found that are
    using directory........................ /isotest2/squashfs-root
    Get mount points in directory.......... /isotest2/squashfs-root
    Execute synchronously.................. mount
    Set a new process for thread id........ 139966016980736
    The new process id is.................. 4374
    No mount points were found in.......... /isotest2/squashfs-root
    Get processes that are using
    directory.............................. /isotest2/squashfs-root
    No processes were found that are
    using directory........................ /isotest2/squashfs-root
    Get mount points in directory.......... /isotest2/squashfs-root
    Execute synchronously.................. mount
    Set a new process for thread id........ 139965660915456
    The new process id is.................. 4375
    No mount points were found in.......... /isotest2/squashfs-root
    Get processes that are using
    directory.............................. /isotest2/squashfs-root
    No processes were found that are
    using directory........................ /isotest2/squashfs-root
    Get mount points in directory.......... /isotest2/squashfs-root
    Execute synchronously.................. mount
    Set a new process for thread id........ 139966016980736
    The new process id is.................. 4376
    No mount points were found in.......... /isotest2/squashfs-root
    Get processes that are using
    directory.............................. /isotest2/squashfs-root
    No processes were found that are
    using directory........................ /isotest2/squashfs-root
    Get mount points in directory.......... /isotest2/squashfs-root
    Execute synchronously.................. mount
    Set a new process for thread id........ 139965660915456
    The new process id is.................. 4377
    No mount points were found in.......... /isotest2/squashfs-root
    Get processes that are using
    directory.............................. /isotest2/squashfs-root
    No processes were found that are
    using directory........................ /isotest2/squashfs-root
    Get mount points in directory.......... /isotest2/squashfs-root
    Execute synchronously.................. mount
    Set a new process for thread id........ 139966016980736
    The new process id is.................. 4378
    No mount points were found in.......... /isotest2/squashfs-root
    Finished running thread with id........ 139966016980736
    Set a new process for thread id........ 139965660915456
    The new process id is.................. 4379
    No mount points were found in.......... /isotest2/squashfs-root
  Create new filesystem manifest file
    Write filesystem manifest to........... /isotest2/custom-live-
                                            iso/casper/filesystem.manifest
    filesystem.manifest-remove not found
    in..................................... /isotest2/custom-live-iso/casper
    filesystem.manifest-minimal-remove
    not found in........................... /isotest2/custom-live-iso/casper
  Create package details list
    Total number of installed packages..... 1744
    Number of packages to be removed
    after a typical install................ 0
    Number of packages to be retained
    after a typical install................ 1744
    Number of packages to be removed
    after a minimal install................ 0
    Number of packages to be retained
    after a minimal install................ 1744
  Create vmlinuz version details list
    Get vmlinuz versions list from
    directory.............................. /isotest2/squashfs-root/boot
    Get vmlinuz versions from directory.... /isotest2/squashfs-root/boot
    Get initrd versions from directory..... /isotest2/squashfs-root/boot
    Get vmlinuz version from file type..... /isotest2/squashfs-
                                            root/boot/vmlinuz-4.18.0-15-generic
    Execute synchronously.................. file "/isotest2/squashfs-
                                            root/boot/vmlinuz-4.18.0-15-generic"
    Found version.......................... 4.18.0-15
    Execute synchronously.................. file "/isotest2/squashfs-root/boot/i
                                            nitrd.img-4.18.0-15-generic"
    The file type informaton is............ /isotest2/squashfs-root/boot/initrd.
                                            img-4.18.0-15-generic: ASCII cpio
                                            archive (SVR4 with no CRC)
    Compression for initrd not found in.... /isotest2/squashfs-root/boot/initrd.
                                            img-4.18.0-15-generic
    The compression for initrd is.......... None
    Get vmlinuz versions list from
    directory.............................. /isotest2/original-iso-mount/casper
    Get vmlinuz versions from directory.... /isotest2/original-iso-mount/casper
    Get initrd versions from directory..... /isotest2/original-iso-mount/casper
    Get vmlinuz version from file type..... /isotest2/original-iso-
                                            mount/casper/vmlinuz
    Execute synchronously.................. file "/isotest2/original-iso-
                                            mount/casper/vmlinuz"
    Found version.......................... 4.18.0-15
    Execute synchronously.................. file "/isotest2/original-iso-
                                            mount/casper/initrd.img"
    The file type informaton is............ /isotest2/original-iso-
                                            mount/casper/initrd.img: ASCII cpio
                                            archive (SVR4 with no CRC)
    Compression for initrd not found in.... /isotest2/original-iso-
                                            mount/casper/initrd.img
    The compression for initrd is.......... None
    The selected default version must
    have directory......................... /isotest2/original-iso-mount/casper
    Version name........................... 4.18.0-15
    • Index................................ 0 of 1
    • Vmlinuz filename..................... vmlinuz
    • New vmlinuz filename................. vmlinuz
    • Initrd filename...................... initrd.img
    • New initrd filename.................. initrd
    • Directory............................ /isotest2/original-iso-mount/casper
    • Note................................. This is the kernel version you are
                                            currently running. This is the
                                            kernel used to boot the original
                                            live ISO image. Reference these
                                            files as <tt>vmlinuz</tt> and
                                            <tt>initrd</tt> in the ISO boot
                                            configurations.
    Version name........................... 4.18.0-15
    • Index................................ 1 of 1
    • Vmlinuz filename..................... vmlinuz-4.18.0-15-generic
    • New vmlinuz filename................. vmlinuz
    • Initrd filename...................... initrd.img-4.18.0-15-generic
    • New initrd filename.................. initrd
    • Directory............................ /isotest2/squashfs-root/boot
    • Note................................. This is the kernel version you are
                                            currently running. This kernel will
                                            be used by your customized Linux
                                            filesystem. Reference these files as
                                            <tt>vmlinuz</tt> and <tt>initrd</tt>
                                            in the ISO boot configurations.
    The selected default version name is... 4.18.0-15
    • The default version index is......... 0 of 1
    • The default vmlinuz filename is...... vmlinuz
    • The default new vmlinuz filename
    is..................................... vmlinuz
    • The default initrd filename is....... initrd.img
    • The default new initrd filename is... initrd
    • The default directory is............. /isotest2/original-iso-mount/casper
    • The default note is.................. This is the kernel version you are
                                            currently running. This is the
                                            kernel used to boot the original
                                            live ISO image. Reference these
                                            files as <tt>vmlinuz</tt> and
                                            <tt>initrd</tt> in the ISO boot
                                            configurations.
    • Is selected?......................... True
    The selected kernel is item number..... 0
    Hiding old page........................ terminal_page
    Showing new page....................... options_page
    The current page name is............... options_page
    Remove all items from the stack........ options_page__preseed_tab__stack
    Add new items to stack................. options_page__preseed_tab__stack
    Remove all items from the stack........ options_page__boot_configuration_tab
                                            __stack
    Add new items to stack................. options_page__boot_configuration_tab
                                            __stack
    Add /boot/grub/grub.cfg from
    filepath............................... /isotest2/custom-live-
                                            iso/boot/grub/grub.cfg
    Search and replace..................... /vmlinuz\S* ⊳ /vmlinuz
    Number of matches...................... 6
    Search and replace..................... /initrd\S* ⊳ /initrd
    Number of matches...................... 6
    Add /boot/grub/loopback.cfg from
    filepath............................... /isotest2/custom-live-
                                            iso/boot/grub/loopback.cfg
    Finished running thread with id........ 139965660915456
Traceback (most recent call last):
  File "/usr/share/cubic/display.py", line 657, in _add_to_stack
    with open(filepath, 'r') as file:
FileNotFoundError: [Errno 2] No such file or directory: '/isotest2/custom-live-iso/boot/grub/loopback.cfg'
    Add a new item to stack................ options_page__preseed_tab__stack
    The title is........................... /preseed/preseed.cfg
    The name (filepath) is................. /isotest2/custom-live-
                                            iso/preseed/preseed.cfg
    Button clicked......................... Next

Created new thread
    Current page........................... options_page
    New page............................... repackage_iso_page
    Running thread with id................. 139965065328384
    Interrupting previous thread with id... No previous thread to interrupt

Performing requested transition action
    Transition from........................ options_page
    Transition to.......................... repackage_iso_page
    filesystem.manifest-remove not found
    in..................................... /isotest2/custom-live-iso/casper
    filesystem.manifest-minimal-remove
    not found in........................... /isotest2/custom-live-iso/casper
  Save preseed files
    Write file............................. /isotest2/custom-live-
                                            iso/preseed/preseed.cfg
    Exception encountered in thread........ 139965065328384
    Ignore exception?...................... No
    The tracekback is...................... Traceback (most recent call last):
                                            File
                                            "/usr/share/cubic/transition.py",
                                            line 95, in run self.action()
                                            File
                                            "/usr/share/cubic/transition.py",
                                            line 438, in action self) File
                                            "/usr/share/cubic/transitions.py",
                                            line 2984, in transition__from__opti
                                            ons_page__to__repackage_iso_page
                                            utilities.save_stack_buffers('option
                                            s_page__preseed_tab__stack') File
                                            "/usr/share/cubic/utilities.py",
                                            line 2667, in save_stack_buffers
                                            with open(filepath, 'w') as file:
                                            FileNotFoundError: [Errno 2] No such
                                            file or directory:
                                            '/isotest2/custom-live-
                                            iso/preseed/preseed.cfg'
    Finished running thread with id........ 139965065328384

Cubic PPA (cubic-wizard) said : #3

Thanks for the output, this will be very helpful.

Cubic PPA (cubic-wizard) said : #4

Would you please check if the following directory exists?

    /isotest2/custom-live-iso/preseed

Miguel Boura (miguelb) said : #5

I can go ti /isotest2/custom-live-iso, but the preseed directory does not exist there.

Miguel Boura (miguelb) said : #6

Also, this is the tutorial I use to create the custom iso image: https://help.ubuntu.com/community/MakeALiveCD/DVD/BootableFlashFromHarddiskInstall

Cubic PPA (cubic-wizard) said : #7

Thanks for the information.
Hopefully I'll get a fix out in the next few hours.
I'll post here once it is released.

Best Cubic PPA (cubic-wizard) said : #8

The latest release should fix your issue...

    # Install the *Release* version of Cubic
    $ sudo apt update
    $ sudo apt install cubic

    # Check your version
    $ dpkg -l cubic
    # cubic - 2019.03-50-release

Please try it out ans let me know if it works for you?

Miguel Boura (miguelb) said : #9

Thanks Cubic PPA, that solved my question.

Miguel Boura (miguelb) said : #10

As in, it does not freeze anymore, and moves on to the last generating page, but when the image creation gets to the progress bar at "Generate the customized disk image", it stops there and doesn't update any further.

In the console, I can see FileNotFoundError: saying it can't find /isotest2/live-cd-2.iso

Cubic PPA (cubic-wizard) said : #11

Miguel,

I tried to recreate your last issue from comment #10, but I did not experience the same error...

Would you please create a bug report?

Include the console output, which I will need to understand what is happening in your situation.

Miguel Boura (miguelb) said : #12

Can I ask what you are using to create your custom iso?

Cubic PPA (cubic-wizard) said : #13

I am running Cubic inside Ubuntu 18.10.

I tested by customizing:

  #1. Official Ubuntu 18.04 ISO
  #2. Oficiall Ubuntu 18.10 ISO
  #3. Previously customized Ubuntu 18.04 ISO (that I had created using Cubic, in #1)

Miguel Boura (miguelb) said : #14

Ah, gotcha.