stockmind / gpd-pocket-ubuntu-respin

Collection of scripts and tweaks to adapt Ubuntu and Linux Mint ISO images to let them run smooth on GPD Pocket
350 stars 35 forks source link

Respun ISO created as xxx, but xxx is nowhere to be found #132

Closed leledumbo closed 5 years ago

leledumbo commented 5 years ago

Due to sluggishness of my current KDE Neon, I believe there were missing things back then when I respun the ISO. I now see bionicbeaver option in the build.sh script so I decided to respin the new ISO. Here's my execution log:

PATH=/usr/sbin:/sbin:/bin:$PATH ./build.sh neon-useredition-20190307-0535-amd64.iso bionicbeaver upgrade 
Setting Bionic Beaver environment...
Upgrade ISO packages...
Display setting: Xorg-Standard
Looking for kernel image...
Extracting latest kernel files...
Archive:  gpdpocket-20190225-5.0.0-rc7-kernel-files.zip
  inflating: linux-headers-5.0.0-rc7-stockmind-gpdpocket_5.0.0-rc7-stockmind-gpdpocket-1_amd64.deb  
  inflating: linux-image-5.0.0-rc7-stockmind-gpdpocket_5.0.0-rc7-stockmind-gpdpocket-1_amd64.deb  
  inflating: linux-libc-dev_5.0.0-rc7-stockmind-gpdpocket-1_amd64.deb  
Extracting ISO ...
Parallel unsquashfs: Using 8 processors
139854 inodes (150844 blocks) to write

[=======================================================================================================================================================================\] 150844/150844 100%

created 124909 files
created 16633 directories
created 14907 symlinks
created 7 devices
created 0 fifos
Extracting isorespin files ...
Processing bootloader/bootmanager ...
Purging packages ...
Upgrading distro ...
Installing packages ...
Installing local packages ...
Adding files/directories ...
Running commands ...
Spinning ISO ...
Parallel mksquashfs: Using 8 processors
Creating 4.0 filesystem on iso-directory-structure/casper/filesystem.squashfs, block size 131072.
[======================================================================================================================================================================/ ] 161230/161922  99%
Unrecognised xattr prefix system.posix_acl_default

Unrecognised xattr prefix system.posix_acl_access
[=======================================================================================================================================================================-] 161922/161922 100%

Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072
    compressed data, compressed metadata, compressed fragments,
    compressed xattrs, compressed ids
    duplicates are removed
Filesystem size 1598977.50 Kbytes (1561.50 Mbytes)
    40.71% of uncompressed filesystem size (3928143.07 Kbytes)
Inode table size 1918637 bytes (1873.67 Kbytes)
    28.57% of uncompressed inode table size (6716718 bytes)
Directory table size 1971976 bytes (1925.76 Kbytes)
    41.89% of uncompressed directory table size (4707738 bytes)
Xattr table size 51 bytes (0.05 Kbytes)
    31.87% of uncompressed xattr table size (160 bytes)
Number of duplicate files found 28025
Number of inodes 197039
Number of files 154297
Number of fragments 9097
Number of symbolic links  19208
Number of device nodes 7
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 23527
Number of ids (unique uids + gids) 29
Number of uids 11
    root (0)
    unknown (108)
    unknown (115)
    unknown (100)
    polkitd (102)
    unknown (116)
    unknown (104)
    unknown (6)
    unknown (106)
    unknown (114)
    unknown (117)
Number of gids 24
    root (0)
    unknown (30)
    privoxy (42)
    unknown (109)
    vboxusers (108)
    nobody (65534)
    unknown (115)
    polkitd (102)
    tor (43)
    tty (5)
    unknown (105)
    unknown (107)
    games (50)
    unknown (116)
    mail (12)
    unknown (106)
    unknown (111)
    unknown (122)
    colord (124)
    unknown (123)
    adm (4)
    lp (7)
    unknown (101)
    mem (8)
xorriso 1.5.0 : RockRidge filesystem manipulator, libburnia project.

Drive current: -outdev 'stdio:../../linuxium-neon-useredition-20190307-0535-amd64.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 44.7g free
xorriso : FAILURE : Jigdo Template Extraction was not enabled at compile time
xorriso : aborting : -abort_on 'FAILURE' encountered 'FAILURE'
chown: cannot access '../linuxium-neon-useredition-20190307-0535-amd64.iso': No such file or directory
./isorespin.sh: Respun ISO created as 'linuxium-neon-useredition-20190307-0535-amd64.iso' ... see logfile 'isorespin.log' for details.

The last few lines show error from xorriso but the script continues, however I guess it can't find the respun ISO and just terminate in the end assuming everything is fine. Here's what isorespin.log contains:

Script './isorespin.sh' (version: 8.2.7) called with '--upgrade -l "*.deb" -i neon-useredition-20190307-0535-amd64.iso -e "bcmwl-kernel-source " -p "xfonts-terminus thermald tlp va-driver-all vainfo libva2 i965-va-driver gstreamer1.0-libav gstreamer1.0-vaapi vlc python-gi git python gir1.2-appindicator3-0.1 " -f display/20-intel.conf -f display/30-monitor.conf -f display/35-screen.conf -f display/40-touch.conf -f display/40-trackpoint.conf -f display/console-setup -f display/monitors.xml -f display/adduser.local -f display/90-scale -f display/90-interface -f display/wrapper-display.sh -f audio/chtrt5645.conf -f audio/HiFi.conf -f audio/headphone-jack -f audio/headphone-jack.sh -f audio/wrapper-audio.sh -f fan/gpdfand -f fan/gpdfand.conf -f fan/gpdfand.py -f fan/gpdfand.service -f fan/wrapper-fan.sh -f network/99-local-bluetooth.rules -f network/brcmfmac4356-pcie.txt -f network/wrapper-network.sh -f power/wrapper-power.sh -c wrapper-audio.sh -c wrapper-display.sh -c wrapper-fan.sh -c wrapper-network.sh -c wrapper-power.sh -g "" -g "i915.fastboot=1 i915.semaphores=1 fbcon=rotate:1 gpd-pocket-fan.speed_on_ac=0"' ...
Work directory 'isorespin' used ...
ISO '/mnt/Data/ISO/neon-useredition-20190307-0535-amd64.iso' respun ...
Kernel boot parameters 'i915.fastboot=1 i915.semaphores=1 fbcon=rotate:1 gpd-pocket-fan.speed_on_ac=0' added ...
Initial kernel boot parameters 'quiet splash' deleted ...
Bootloader '32-bit GRUB' added ...
Package 'bcmwl-kernel-source ' purged ...
Distro upgraded ...
Package 'xfonts-terminus thermald tlp va-driver-all vainfo libva2 i965-va-driver gstreamer1.0-libav gstreamer1.0-vaapi vlc python-gi git python gir1.2-appindicator3-0.1 ' added ...
Local package '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/linux-headers-5.0.0-rc7-stockmind-gpdpocket_5.0.0-rc7-stockmind-gpdpocket-1_amd64.deb /home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/linux-image-5.0.0-rc7-stockmind-gpdpocket_5.0.0-rc7-stockmind-gpdpocket-1_amd64.deb /home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/linux-libc-dev_5.0.0-rc7-stockmind-gpdpocket-1_amd64.deb' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/display/20-intel.conf' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/display/30-monitor.conf' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/display/35-screen.conf' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/display/40-touch.conf' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/display/40-trackpoint.conf' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/display/console-setup' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/display/monitors.xml' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/display/adduser.local' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/display/90-scale' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/display/90-interface' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/display/wrapper-display.sh' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/audio/chtrt5645.conf' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/audio/HiFi.conf' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/audio/headphone-jack' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/audio/headphone-jack.sh' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/audio/wrapper-audio.sh' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/fan/gpdfand' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/fan/gpdfand.conf' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/fan/gpdfand.py' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/fan/gpdfand.service' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/fan/wrapper-fan.sh' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/network/99-local-bluetooth.rules' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/network/brcmfmac4356-pcie.txt' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/network/wrapper-network.sh' added ...
File '/home/leledumbo/Downloads/gpd-pocket-ubuntu-respin/power/wrapper-power.sh' added ...
Command run ...
# wrapper-audio.sh
# wrapper-display.sh
Cloning into 'gpd-pocket-screen-indicator'...
sudo: unable to resolve host Lelesus: Connection timed out
Running in chroot, ignoring request: stop
Running in chroot, ignoring request: stop
Failed to disable unit, unit gpdtouch.service does not exist.
Failed to disable unit, unit gpdtouch-wake.service does not exist.
Created symlink /etc/systemd/system/multi-user.target.wants/gpdscreen.service -> /etc/systemd/system/gpdscreen.service.
Created symlink /etc/systemd/system/suspend.target.wants/gpdscreen-wake.service -> /etc/systemd/system/gpdscreen-wake.service.
Running in chroot, ignoring request: start
REBOOT REQUIRED!
# wrapper-fan.sh
Created symlink /etc/systemd/system/basic.target.wants/gpdfand.service -> /etc/systemd/system/gpdfand.service.
# wrapper-network.sh
# wrapper-power.sh
Respun ISO created as 'linuxium-neon-useredition-20190307-0535-amd64.iso'.
xorriso : FAILURE : Jigdo Template Extraction was not enabled at compile time
xorriso : aborting : -abort_on 'FAILURE' encountered 'FAILURE'

This clearly is the failure, I should get alternative xorriso binary with Jigdo Tempalte Extraction feature enabled or compile it myself.

leledumbo commented 5 years ago

Fixed using xorriso with JTE enabled.