Below is the process to Remaster Debian Based Linux using only: gparted (or dd file fill) and mksqushfs
Glad to see you are interested in my way to Remaster Debian Linux Custom Builds. My way is limited to just creating a filesystem.squashfs file which is compatible with Calamares Installer on at least Debian Linux LXDE and XFce Live Installer. I have also successfully installed using Q4OS5 KDE Live Installer with the "Pure" option. Additional Distro testing still needs to be done and if you do successfully use other Distro / Calamares installers, please let me know and I will add them to the list.
I created my simple Remaster process because the only remaster system that can be used by new Linux users is penguins-eggs. penguins-eggs works with Debian, Ubuntu, Arch, and other Distros. It also has many advanced features which only makes it too complicated for new Linux users.
Sumamry of my Remaster Linux process:
1. Prevent mksquashfs from capturing free space:
Option A: Use gparted to shrink source parition +1 MB (Preferred, faster)
Option B: Write zero filled file to occupy free space of partition and then exclude same file from Remaster by mksquashfs command.
2. Mount Source and Target Patitions
Source: The unmounted partition you want to remaster
Target: Where the filesystem.squahfs file will be written.
3. Use Calamares Installer of OEM Distro or penguins-eggs Remastered distro
to install your custom build filesystem.squashfs file.
===yad COMPILE ERROR===
Issue # 7 -warning: macro 'AM_GLIB_GNU_GETTEXT' not found in library
Resolution: Install libglib2.0-dev
Warning: os-prober will not be executed to detect other bootable partitions. Systems on them will not be added to the GRUB boot configuration. Check GRUB_DISABLE_OS_PROBER documentation entry
Issue # 8 - Check GRUB_DISABLE_OS_PROBER documentation entry
Resolution: Edit File **: /etc/default/grub
Issue # 9 - Chromium fails to load with error:
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
Resolution: EReinstall intel video drivers
sudo apt-get install --reinstall intel-media-va-driver:amd64
sudo apt-get install --reinstall $(dpkg -l | grep ^ii | grep -i intel | awk '{print $2}')
Issue # 10 - yad will not display html page, xapp-gtk3-module not loading | VM - Virtualbox
xapp error: failed to load xapp-gtk3-moduled | libEGL warning
Resolution: Install below packages
sudo apt install xapp-sn-watcher libxapp-gtk3-module