Cubic locks up upon entering chroot screen

Bug #1837295 reported by rajesh
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cubic
Critical
Cubic PPA

Bug Description

Cubic locks up upon entering chroot screen. I am running ubuntu 19.04 and trying to customise ubuntu 19.10 iso. The output in terminal from start to the point where cubic hangs is as under:
$ cubic
  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................ 4
    Using GtkSource version................ 4
    Using Vte version...................... 2.91
    Using GtkSource version................ 4

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....................... anubhav
    The user id is......................... 1000
    The group id is........................ 1000
    The home directory is.................. /home/anubhav
    Set the HOME environment variable to... /home/anubhav
    The current GTK theme is............... Ambiance
    Execute synchronously.................. dpkg-query --showformat="${Version}
                                            " --show "gir1.2-gtk-3.0"
    The GTK version is..................... 3.24
    The Cubic user interface filename is... cubic_gtk318.ui
    The filechoosers user interface
    filename is............................ cubic_gtk318.ui
    The builder is......................... <Gtk.Builder object at
                                            0x7f521199d168 (GtkBuilder at
                                            0x2441e90)>
    The current page name is............... project_directory_page
    Execute synchronously.................. dpkg-query --showformat="${Version}
                                            " --show "cubic"
    The Cubic version is................... 2019.05-57-release~201905281616~ubun
                                            tu19.04.1
    The default icon theme search path
    is..................................... ['/home/anubhav/.local/share/icons',
                                            '/home/anubhav/.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/anubhav/.local/share/icons',
                                            '/home/anubhav/.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/anubhav/.local/share/icons',
                                            '/home/anubhav/.icons',
                                            '/usr/local/share/icons',
                                            '/usr/share/icons',
                                            '/usr/local/share/pixmaps',
                                            '/usr/share/pixmaps']
    The theme style is..................... light

Created new thread
    Current page........................... project_directory_page__project_dire
                                            ctory_filechooser
    New page............................... project_directory_page
    Running thread with id................. 139989952227072
    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........ 139989952227072
    The project directory is............... /home/anubhav/Downloads/ubuntu new
    The configuration filepath is.......... /home/anubhav/Downloads/ubuntu
                                            new/cubic.conf
    The original ISO image mount point
    is..................................... /home/anubhav/Downloads/ubuntu
                                            new/original-iso-mount
    The custom squashfs directory is....... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    The custom live ISO directory is....... /home/anubhav/Downloads/ubuntu
                                            new/custom-live-iso
    Is project directory page, original
    section, valid?........................ True
    Button clicked......................... Next

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

Performing requested transition action
    Transition from........................ project_directory_page
    Transition to.......................... existing_project_page
    Propagate assigned values to
    calculate dependant values?............ False
    The original ISO image filename is..... eoan-desktop-amd64.iso
    The original ISO image directory is.... /home/anubhav/Downloads/ubuntu
    The original ISO image filepath is..... /home/anubhav/Downloads/ubuntu/eoan-
                                            desktop-amd64.iso
  Check if ISO image is mounted
    ISO image.............................. /home/anubhav/Downloads/ubuntu/eoan-
                                            desktop-amd64.iso
    Mount point............................ /home/anubhav/Downloads/ubuntu
                                            new/original-iso-mount
    Execute synchronously.................. mount
    Is mounted?............................ False
  Mount ISO image
    ISO image.............................. /home/anubhav/Downloads/ubuntu/eoan-
                                            desktop-amd64.iso
    Mount point............................ /home/anubhav/Downloads/ubuntu
                                            new/original-iso-mount
    Create the mount point if it does
    not exist.............................. /home/anubhav/Downloads/ubuntu
                                            new/original-iso-mount
    Execute synchronously.................. mkdir
                                            "/home/anubhav/Downloads/ubuntu
                                            new/original-iso-mount"
    Set a new process for thread id........ 139989952227072
    The new process id is.................. 1276
    Mount.................................. /home/anubhav/Downloads/ubuntu/eoan-
                                            desktop-amd64.iso
    Execute synchronously.................. mount --options loop "/home/anubhav/
                                            Downloads/ubuntu/eoan-desktop-
                                            amd64.iso"
                                            "/home/anubhav/Downloads/ubuntu
                                            new/original-iso-mount"
    Set a new process for thread id........ 139989952227072
    The new process id is.................. 1277
    The original ISO image volume id is.... Ubuntu 19.10 amd64
    The original ISO image release name
    is..................................... Eoan Ermine
    The original ISO image disk name is.... Ubuntu 19.10 "Eoan Ermine" - Alpha
                                            amd64
    Get directory for
    filesystem.squashfs in................. /home/anubhav/Downloads/ubuntu
                                            new/original-iso-mount
    filesystem.squashfs is in.............. /home/anubhav/Downloads/ubuntu
                                            new/original-iso-mount/casper
    The casper relative directory is....... casper
    The custom ISO image version number
    is..................................... 2019.07.20
    The custom ISO image filename is....... eoan-desktop-amd64-2019.07.20.iso
    The custom ISO image directory is...... /home/anubhav/Downloads/ubuntu new
    The custom ISO image filepath is....... /home/anubhav/Downloads/ubuntu
                                            new/eoan-desktop-
                                            amd64-2019.07.20.iso
    The custom ISO image volume id is...... Ubuntu 19.10.0 2019.07.20 amd64
    The custom ISO image release name is... Custom Eoan Ermine
    The custom ISO image disk name is...... Ubuntu 19.10.0 2019.07.20 amd64
                                            "Custom Eoan Ermine"
    The custom ISO image md5 filename is... eoan-desktop-amd64-2019.07.20.md5
    The custom ISO image md5 filepath is... /home/anubhav/Downloads/ubuntu
                                            new/eoan-desktop-
                                            amd64-2019.07.20.md5
    Is success copy boot files............. True
    Is success extract squashfs?........... True
    Set boot configurations................ ['boot/grub/grub.cfg',
                                            'boot/grub/loopback.cfg',
                                            'isolinux/txt.cfg']
    Hiding old page........................ project_directory_page
    Showing new page....................... existing_project_page
    The current page name is............... existing_project_page
    The custom ISO image version number
    is..................................... 2019.07.20
    Is existing project page, custom
    section, valid?........................ True
    The custom ISO image filename is....... eoan-desktop-amd64-2019.07.20.iso
    The custom ISO image filepath is....... /home/anubhav/Downloads/ubuntu
                                            new/eoan-desktop-
                                            amd64-2019.07.20.iso
    The custom ISO image md5 filename is... eoan-desktop-amd64-2019.07.20.md5
    The custom ISO image md5 filepath is... /home/anubhav/Downloads/ubuntu
                                            new/eoan-desktop-
                                            amd64-2019.07.20.md5
    Is existing project page, custom
    section, valid?........................ True
    The custom ISO image directory is...... /home/anubhav/Downloads/ubuntu new
    The custom ISO image filepath is....... /home/anubhav/Downloads/ubuntu
                                            new/eoan-desktop-
                                            amd64-2019.07.20.iso
    The custom ISO image md5 filepath is... /home/anubhav/Downloads/ubuntu
                                            new/eoan-desktop-
                                            amd64-2019.07.20.md5
    Is existing project page, custom
    section, valid?........................ True
    The custom ISO image volume id is...... Ubuntu 19.10.0 2019.07.20 amd64
    Is existing project page, custom
    section, valid?........................ True
    The custom ISO image release name is... Custom Eoan Ermine
    Is existing project page, custom
    section, valid?........................ True
    The custom ISO image disk name is...... Ubuntu 19.10.0 2019.07.20 amd64
                                            "Custom Eoan Ermine"
    Is existing project page, custom
    section, valid?........................ True
  Check if ISO image is mounted
    ISO image.............................. /home/anubhav/Downloads/ubuntu/eoan-
                                            desktop-amd64.iso
    Mount point............................ /home/anubhav/Downloads/ubuntu
                                            new/original-iso-mount
    Execute synchronously.................. mount
    Is mounted?............................ True
    Is existing project page, original
    section, valid?........................ True
    Is existing project page, custom
    section, valid?........................ True
    Propagate assigned values to
    calculate dependant values?............ True
    Finished running thread with id........ 139989952227072

Created new thread
    Current page........................... existing_project_page
    New page............................... existing_project_page
    Previous thread id..................... 139989952227072
    Running thread with id................. 139990407227136

Created new thread
    Current page........................... existing_project_page
    Interrupting previous thread with id... No previous thread to interrupt
    New page............................... existing_project_page

Performing requested transition action Previous thread id..................... 139990407227136

    Transition from........................ existing_project_page
    Transition to.......................... existing_project_page
  Check if ISO image is mounted
    ISO image.............................. /home/anubhav/Downloads/ubuntu/eoan-
                                            desktop-amd64.iso
    Mount point............................ /home/anubhav/Downloads/ubuntu
                                            new/original-iso-mount
    Execute synchronously.................. mount
    Running thread with id................. 139990398834432
    Is mounted?............................ True
    Is existing project page, original
    section, valid?........................ True
    Is existing project page, custom
    section, valid?........................ True
    Finished running thread with id........ 139990407227136

Performing requested transition action
    Transition from........................ existing_project_page
    Transition to.......................... existing_project_page
  Check if ISO image is mounted
    ISO image.............................. /home/anubhav/Downloads/ubuntu/eoan-
                                            desktop-amd64.iso
    Mount point............................ /home/anubhav/Downloads/ubuntu
                                            new/original-iso-mount
    Execute synchronously.................. mount
    Is mounted?............................ True
    Is existing project page, original
    section, valid?........................ True
    Is existing project page, custom
    section, valid?........................ True
    Finished running thread with id........ 139990398834432
    Button clicked......................... Next

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

Performing requested transition action
    Transition from........................ existing_project_page
    Transition to.......................... terminal_page
    Save configuration..................... None
    Hiding old page........................ existing_project_page
    Showing new page....................... unsquashfs_page
    The current page name is............... unsquashfs_page
    Save configuration..................... None
    Save configuration..................... None
    Hiding old page........................ unsquashfs_page
    Showing new page....................... terminal_page
    The current page name is............... terminal_page
  Prepare chroot environment
    Execute synchronously.................. mount --bind /dev
                                            "/home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/dev"
    Set a new process for thread id........ 139990398834432
    The new process id is.................. 1294
    Execute synchronously.................. mount --bind /run
                                            "/home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/run"
    Set a new process for thread id........ 139990398834432
    The new process id is.................. 1295
    Execute synchronously.................. mount --types proc proc
                                            "/home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/proc"
    Set a new process for thread id........ 139990398834432
    The new process id is.................. 1297
    Execute synchronously.................. mount --types sysfs sys
                                            "/home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/sys"
    Set a new process for thread id........ 139990398834432
    The new process id is.................. 1298
    Execute synchronously.................. mount --types devpts pts
                                            "/home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/dev/pts"
    Set a new process for thread id........ 139990398834432
    The new process id is.................. 1299
  Change terminal prompt colors (modify .bashrc)
    Backup................................. /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/root/.bashrc
    To..................................... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/root/.bashrc.bak
    Replace text in file................... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/root/.bashrc
    Search text............................ #force_color_prompt=yes
    Replacement text....................... force_color_prompt=yes
    Replace text in file................... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/root/.bashrc
    Search text............................ 01;32
    Replacement text....................... 00;35
    Replace text in file................... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/root/.bashrc
    Search text............................ 01;34
    Replacement text....................... 00;36
    Replace text in file................... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/root/.bashrc
    Search text............................ ]\\\$
    Replacement text....................... ] \$
  Enter chroot environment
    The chroot environment directory is.... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    The terminal pid is.................... 1300
  Check chroot environment
    The terminal pid is.................... 1300
    The custom squashfs directory is....... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    The termnal's root directory is........ /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    Terminal is in chroot environment?..... True
    The handler id is...................... 20872
  Initialize chroot environment
  Check chroot environment
    The terminal pid is.................... 1300
    The custom squashfs directory is....... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    The termnal's root directory is........ /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    Terminal is in chroot environment?..... True
    Send bytes to terminal................. None
    Send bytes to terminal................. You are in the chroot
                                            environment.
    Send bytes to terminal................. dpkg-divert --local --rename --add
                                            /sbin/initctl
    Send bytes to terminal................. Empty
  Restore terminal prompt colors (restore .bashrc)
    Restore................................ /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/root/.bashrc
    From................................... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/root/.bashrc.bak
    Finished running thread with id........ 139990398834432
    Button clicked......................... Next

Created new thread
    Current page........................... terminal_page
    New page............................... options_page
    Running thread with id................. 139990398834432
    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
                                            "/home/anubhav/Downloads/ubuntu
                                            new/squashfs-root" dpkg-query --show
    Set a new process for thread id........ 139990398834432
    The new process id is.................. 1324
    Total number of installed packages..... 2365
    The handler id is...................... None
  Exit chroot environment
    Send bytes to terminal................. b'rm -f /sbin/initctl'
    Send bytes to terminal................. b'dpkg-divert --rename --remove
                                            /sbin/initctl'
    Send bytes to terminal................. b'exit'
    Get mount points in directory.......... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    Execute synchronously.................. mount
    Set a new process for thread id........ 139990398834432
    The new process id is.................. 1350
    5 mount points were found in
    directory.............................. /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    Mount point 1......................... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/dev
    Mount point 2......................... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/run
    Mount point 3......................... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/proc
    Mount point 4......................... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/sys
    Mount point 5......................... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/dev/pts
    Unmount mount points................... None
    Unmount................................ /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/dev/pts
    Execute synchronously.................. umount
                                            "/home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/dev/pts"
    Successfully unmounted
    /home/anubhav/Downloads/ubuntu
    new/squashfs-root/dev/pts.............. None
    Unmount................................ /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/sys
    Execute synchronously.................. umount
                                            "/home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/sys"
    Successfully unmounted
    /home/anubhav/Downloads/ubuntu
    new/squashfs-root/sys.................. None
    Unmount................................ /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/proc
    Execute synchronously.................. umount
                                            "/home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/proc"
    Successfully unmounted
    /home/anubhav/Downloads/ubuntu
    new/squashfs-root/proc................. None
    Unmount................................ /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/run
    Execute synchronously.................. umount
                                            "/home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/run"
    Successfully unmounted
    /home/anubhav/Downloads/ubuntu
    new/squashfs-root/run.................. None
    Unmount................................ /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/dev
    Execute synchronously.................. umount
                                            "/home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/dev"
    Successfully unmounted
    /home/anubhav/Downloads/ubuntu
    new/squashfs-root/dev.................. None
    Get mount points in directory.......... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    Execute synchronously.................. mount
    Set a new process for thread id........ 139990398834432
    The new process id is.................. 1356
    No mount points were found in.......... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    Get processes that are using
    directory.............................. /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    No processes were found that are
    using directory........................ /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    Get mount points in directory.......... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    Execute synchronously.................. mount
    Set a new process for thread id........ 139990398834432
    The new process id is.................. 1357
    No mount points were found in.......... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    Get processes that are using
    directory.............................. /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    No processes were found that are
    using directory........................ /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    Get mount points in directory.......... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    Execute synchronously.................. mount
    Set a new process for thread id........ 139990398834432
    The new process id is.................. 1358
    No mount points were found in.......... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    Get processes that are using
    directory.............................. /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    No processes were found that are
    using directory........................ /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    Get mount points in directory.......... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    Execute synchronously.................. mount
    Set a new process for thread id........ 139990398834432
    The new process id is.................. 1359
    No mount points were found in.......... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
  Check chroot environment
    The terminal pid is.................... 1300
    The custom squashfs directory is....... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root
    The termnal's root directory is........ None
    Terminal is in chroot environment?..... False
  Create new filesystem manifest file
    Write filesystem manifest to........... /home/anubhav/Downloads/ubuntu
                                            new/custom-live-
                                            iso/casper/filesystem.manifest
    filesystem.manifest-remove found in.... /home/anubhav/Downloads/ubuntu
                                            new/custom-live-iso/casper
    Read list of packages to remove from... /home/anubhav/Downloads/ubuntu
                                            new/custom-live-
                                            iso/casper/filesystem.manifest-
                                            remove
    filesystem.manifest-minimal-remove
    found in............................... /home/anubhav/Downloads/ubuntu
                                            new/custom-live-iso/casper
    Read list of packages to remove from... /home/anubhav/Downloads/ubuntu
                                            new/custom-live-
                                            iso/casper/filesystem.manifest-
                                            minimal-remove
  Create package details list
    Total number of installed packages..... 2365
    Number of packages to be removed
    after a typical install................ 219
    Number of packages to be retained
    after a typical install................ 2146
    Number of packages to be removed
    after a minimal install................ 163
    Number of packages to be retained
    after a minimal install................ 2202
  Create kernel details list
  Update kernel details list for vmlinuz
    3 vmlinuz files found in............... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/boot
  Get vmlinuz version details
    Get vmlinuz version from file name..... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-
                                            root/boot/vmlinuz-5.2.0-8-generic
    The vmlinuz version is................. 5.2.0-8
  Search kernel details list for matching version
    • Kernel version....................... 5.2.0-8
    • Kernel version as integers........... (5, 2, 0, 8)
    • Vmlinuz filename..................... vmlinuz-5.2.0-8-generic
    • Directory............................ /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/boot
    • Matching kernel version found?....... No
  Add new kernel details
    • Index................................ 0 of 0
    • Kernel version....................... 5.2.0-8
    • Kernel version as integers........... (5, 2, 0, 8)
    • Vmlinuz filename..................... vmlinuz-5.2.0-8-generic
    • Initrd filename...................... None
    • Directory............................ /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/boot
  Get vmlinuz version details
    Get vmlinuz version from file name..... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/boot/vmlinuz
    Get vmlinuz version from file type..... /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/boot/vmlinuz
    Execute synchronously.................. file "/home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/boot/vmlinuz"
    Found version.......................... 5.2.0-8
    The vmlinuz version is................. 5.2.0-8
  Search kernel details list for matching version
    • Kernel version....................... 5.2.0-8
    • Kernel version as integers........... (5, 2, 0, 8)
    • Vmlinuz filename..................... vmlinuz
    • Directory............................ /home/anubhav/Downloads/ubuntu
                                            new/squashfs-root/boot
    Exception encountered in thread........ 139990398834432
    Ignore exception?...................... No
    The tracekback is...................... Traceback (most recent call last):
                                            File
                                            "/usr/share/cubic/transition.py",
                                            line 93, in run self.action()
                                            File
                                            "/usr/share/cubic/transition.py",
                                            line 398, in action self) File
                                            "/usr/share/cubic/transitions.py",
                                            line 1921, in transition__from__term
                                            inal_page__to__options_page _tra
                                            nsition__from__unknown_page__to__opt
                                            ions_page('terminal_page', thread)
                                            File
                                            "/usr/share/cubic/transitions.py",
                                            line 1102, in _transition__from__unk
                                            nown_page__to__options_page
                                            directory_2) File
                                            "/usr/share/cubic/utilities.py",
                                            line 2052, in
                                            create_kernel_details_list updat
                                            e_kernel_details_list_for_vmlinuz(di
                                            rectory, kernel_details_list) File
                                            "/usr/share/cubic/utilities.py",
                                            line 2249, in update_kernel_details_
                                            list_for_vmlinuz
                                            kernel_details_list) File
                                            "/usr/share/cubic/utilities.py",
                                            line 2282, in
                                            update_kernel_details_for_vmlinuz
                                            if kernel_details[4] ==
                                            initrd_filename: NameError: name
                                            'initrd_filename' is not defined
    Finished running thread with id........ 139990398834432

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

Rajesh,

Thanks for including the output in the bug report.

Your screenshot seems to show that you have successfully entered chroot.

Are you experiencing this issue ~after~ you type exit?

The correct behavior should be that, if you type exit <Enter>, then Cubic should automatically ~reenter~ the chroot environment. Is this where it is failing?

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

No need to answer the above question. I was able to recreate the problem.

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

Analysis notes...

ISSUE #1
--------

Since Eoan is beta right now, the vmlinuz and initrd files located inside the compressed linux file system (squashfs) are borken symlinks to files that do not exist.

<Cubic Project>/squashfs-root/boot $ ls -la

    initrd.img -> initrd.img-5.0.0-20-generic
    initrd.img.old -> initrd.img-5.0.0-20-generic

    vmlinuz -> vmlinuz-5.0.0-20-generic
    vmlinuz.old -> vmlinuz-5.0.0-20-generic

ISSUE #2
--------

Since Eoan is beta right now, trying to read the initrd file located in...

    <Cubic Project>/custom-live-iso/casper

...results in the error...

    cpio: premature end of archive

As a result, the initrd version can not be identified.

RESOLUTION
----------

Both of these issues will most likely be fixed in the final release of Eoan.

Nevertheless, it would be good if Cubic could be made more robust in order to allow users to test and customize the pre-release version of Ubuntu.

To achieve this, the algorithm used to match the vmlinuz and initrd files needs to be modified. For issue #1, we need to check if vmlinuz and initrd are valid files, excluding broken symlinks. For issue #2, we could use a fallback that assumes the vmlinuz and initrd files are matching versions, if these files are in the same directory, if one of them has a valid version, and if there is only one vmliniz and only one initrd file in the directory. Also, investigate why the /custom-live-iso/casper/initrd file is not readable.

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

Fix released in trunk revision 208 and release revision 58.

Changed in cubic:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers