PJ-Singh-001 / Cubic

The Official Web Site for Cubic (Custom Ubuntu ISO Creator) (https://github.com/PJ-Singh-001/Cubic)
777 stars 46 forks source link

Customization breaks the Graphical Debian Installer #173

Open CiscoDeTours opened 1 year ago

CiscoDeTours commented 1 year ago

TO REPRODUCE:

Test the image generated by the program and select the third installation option.

DESCRIBE THE BUG:

image1401B

The live installation is launched instead of the Graphical Debian Installer once the customization is done as you can verify at the bottom loading text of the image.

EXPECTED BEHAVIOR: image384 image480C

Select the third option and run the Graphical Debian Installer.

OS INFORMATION:

CUBIC INFORMATION:

CUBIC LOG:


Cubic - Custom Ubuntu ISO Creator                                               

  • Set application directory.............. /usr/share/cubic                    
  • Set application user home.............. /home/francisco                     
  • Execute synchronously.................. dpkg-query                          
                                            --admindir="/var/lib/dpkg" --show   
                                            --showformat="${Version} " "cubic"  
  • The process id is...................... 15405                               
  • Set application cubic version.......... 2023.03-77-release~202303130151~ubun
                                            tu20.04.1                           
  • Set application kernel version......... 5.18.16-xanmod1                     

  Setup pages                              

  • Setup.................................. boot copy page                      
  • Setup.................................. compression page                    
  • Setup.................................. delete page                         
  • Setup.................................. extract page                        
  • Setup.................................. finish page                         
  • Setup.................................. generate page                       
  • Setup.................................. migrate page                        
  • Setup.................................. options page                        
  • Setup.................................. packages page                       
  • Setup.................................. prepare page                        
  • Setup.................................. preseed copy page                   
  • Setup.................................. project page                        
  • Setup.................................. start page                          
  • Setup.................................. terminal copy page                  
  • Setup.................................. terminal page                       
  • Set terminal colors?................... Yes                                 
  • Setup.................................. test 1 page                         
  • Setup.................................. test 2 page                         

  Setup file choosers                      

  • Setup (ignore warnings)................ copy file chooser                   

(cubic:15398): Gtk-WARNING **: 17:30:22.774: Content added to the action area of a dialog using header bars

(cubic:15398): Gtk-WARNING **: 17:30:22.774: Content added to the action area of a dialog using header bars
  • Setup (ignore warnings)................ directory chooser                   

(cubic:15398): Gtk-WARNING **: 17:30:22.801: Content added to the action area of a dialog using header bars

(cubic:15398): Gtk-WARNING **: 17:30:22.801: Content added to the action area of a dialog using header bars
  • Setup (ignore warnings)................ iso image chooser                   

(cubic:15398): Gtk-WARNING **: 17:30:22.828: Content added to the action area of a dialog using header bars

(cubic:15398): Gtk-WARNING **: 17:30:22.828: Content added to the action area of a dialog using header bars

Handle navigation from no page on open action                                   

  • Interrupt previous thread.............. No thread                           

Get the new page                                                                

  • Current page........................... no page                             
  • Action................................. open                                
  • New page............................... start page                          

Navigate from no page to start page on open action                              

  • The thread id is....................... 139924989040384                     
  • Set application configuration.......... /home/francisco/.config/cubic/cubic.
                                            conf                                

  Load application configuration           

  • Load application configuration......... 2022 layout from /home/francisco/.co
                                            nfig/cubic/cubic.conf               
  • Set application visited sites.......... []                                  
  • Set application projects............... ['/home/francisco/Datos/Cubic/NEWDEB
                                            ', '/home/francisco/Datos/Cubic/Debi
                                            an', '/home/francisco/Datos/Cubic/Go
                                            rila',                              
                                            '/home/francisco/Datos/Cubic/UPSG', 
                                            '/home/francisco/Datos/Cubic/22.04']
  • Set application iso file path.......... /home/francisco/Descargas/debian-   
                                            live-11.6.0-amd64-gnome.iso         

  Transition pages                         

  • Show new page.......................... start page                          
PJ-Singh-001 commented 1 year ago

@CiscoDeTours,

Thanks for the nicely put-together bug report. I just downloaded Debian using the link you provided. This is what I see when I click on the Test button in Cubic and select the third option "Graphical Debian Installer"... Screenshot from 2023-03-17 18-47-35

By the way, I also see the following text at the bottom of the "Main Menu", prior to the "Welcome" screen:

Loading /d-i/gtk/vmlinuz... ok
Loading /d-i/gtk/initrd.gz... ok

Are you running this from an USB or using the Test button in Cubic?

Can you provide a screenshot of what you expect to see? (I do not use Debian regularly, so this will help me understand the issue).

CiscoDeTours commented 1 year ago

CubicISO.webm


👆 This is the behavior of the tested image: the third option launch the live installer. Normally, the Graphical Debian Installer open this interface:

https://user-images.githubusercontent.com/67841579/226071105-d1989712-4cbe-43e1-ad6c-7341518e05b3.mp4


So far, I've discovered this while pressing the TAB key on the installer splash image:

CvsD

Somehow, the Cubic custom image -left- changes the normal Graphical Debian Installer -right- boot options and, subsequently, as you have noticed, the loading text.

PJ-Singh-001 commented 1 year ago

I see. Thanks.

It may take some time to fix this, since Cubic must support multiple distros. So changes to fix one distro must not break others.

In the meantime, on the Options page, Boot tab, try to change this back to /live/initrd.gz and /live/vmlinuz. You may also need to remove the boot=live part. Let me know if it works or if there is an issue?

(Hint: hitting ctrlshiftz multiple times on the Options page, Boot tab will revert the file to the original state, but only if you are customizing a new project).

CiscoDeTours commented 1 year ago

Thanks for the advice. I replaced the menu.cfg text with the default parameters from the LIVE installer for the last three options:

LABEL Graphical Debian Installer
  SAY "Booting Graphical Debian Installer..."
  linux /d-i/gtk/vmlinuz
  APPEND initrd=/d-i/gtk/initrd.gz append video=vesa:ywrap,mtrr vga=788

LABEL Debian Installer
  SAY "Booting Debian Installer..."
  linux /d-i/vmlinuz
  APPEND initrd=/d-i/initrd.gz

LABEL Debian Installer with Speech Synthesis
  SAY "Booting Debian Installer with Speech Synthesis..."
  linux /d-i/gtk/vmlinuz
  APPEND initrd=/d-i/gtk/initrd.gz speakup.synth=soft

By doing this, I'm able to launch the Graphical Debian Installer without any problem.

PJ-Singh-001 commented 1 year ago

OK, this is good. I'll implement a fix in a future release.

CiscoDeTours commented 1 year ago

I'm sure you will. Thanks a lot for your time.

hykelvinlee42 commented 1 year ago

Thanks for the advice. I replaced the menu.cfg text with the default parameters from the LIVE installer for the last three options:

LABEL Graphical Debian Installer
  SAY "Booting Graphical Debian Installer..."
  linux /d-i/gtk/vmlinuz
  APPEND initrd=/d-i/gtk/initrd.gz append video=vesa:ywrap,mtrr vga=788

LABEL Debian Installer
  SAY "Booting Debian Installer..."
  linux /d-i/vmlinuz
  APPEND initrd=/d-i/initrd.gz

LABEL Debian Installer with Speech Synthesis
  SAY "Booting Debian Installer with Speech Synthesis..."
  linux /d-i/gtk/vmlinuz
  APPEND initrd=/d-i/gtk/initrd.gz speakup.synth=soft

By doing this, I'm able to launch the Graphical Debian Installer without any problem.

@PJ-Singh-001 This fix does not work for Debian 12.1 standard iso image.

CiscoDeTours commented 6 months ago

@hykelvinlee42

You must open that Debian 12 ISO image and copy the default content of /boot/grub/config.cfg /boot/grub/install_start.cfg /isolinux/install.cfg & /isolinux/live.cfg to Cubic Boot Tab every time a customized disk image is generated.