Wednesday, 27 September 2017

ISO respin script now handles SourceForge outages

Occasionally I've see the following error reported:

Extracting ISO ...
Parallel unsquashfs: Using 4 processors
183918 inodes (199170 blocks) to write

[=========================================================/] 199170/199170 100%

created 129699 files
created 17994 directories
created 54184 symlinks
created 7 devices
created 0 fifos
Extracting isorespin files ...
Updating bootloader/bootmanager ...
cp: cannot stat 'grub/boot': No such file or directory
cp: cannot stat 'iso-directory-structure/boot/grub/grub.cfg': No such file or directory
sed: can't read iso-refind/grub/grub.cfg: No such file or directory
cp: cannot stat '/refind/icons': No such file or directory
cp: cannot stat '/refind/refind_x64.efi': No such file or directory
cp: cannot stat '/refind/drivers_x64': No such file or directory
sed: can't read /refind/refind.conf-sample: No such file or directory
tee: iso-refind/refind.conf: No such file or directory
sed: can't read iso-refind/refind.conf: No such file or directory
cp: cannot stat '/mkrlconf': No such file or directory
tee: iso-directory-structure/preseed/ubuntu.seed: No such file or directory
Fetching mainline kernel packages ...
./isorespin.sh: line 2131: cd: /usr/src/linuxium/isorespin/test/7.3.3/isorespin: No such file or directory

./isorespin.sh: Cannot fetch mainline kernel index ... check your internet connection and try again.

however I've not been able to reproduce until now. It turns out it occurs when trying to download the rEFInd boot manager from 'SourceForge' as when that site experiences issues it is temporarily placed in static offline mode meaning downloads require the use of javascript to function. Unfortunately rather than recognizing this and exiting gracefully my script simply continued before erroring. 

I've now updated my script to try an alternate download if this situation is encountered and a new version (7.3.4) of 'isorespin.sh' is now available for download.

Any issues or improvement suggestions are welcome.

Please donate if you find the script useful using the following link http://goo.gl/nXWSGf.

4 comments:

  1. Can your script use with a Maui Linux ISO (Ubuntu based distro)?

    Thanks a lot

    ReplyDelete
    Replies
    1. Not OOTB as I've not tested any Maui Linux ISOs.

      Delete
  2. Hi Linuxium,
    can you please let me know which linux distribution do you use to run isorespin.sh ? I will install it to make the script works, because on my linux machine it always fail.

    Thank you.
    MaxC

    This is my output:

    ./isorespin.sh -i /home/user/Downloads/ubuntu-17.04-desktop-amd64.iso --atom -u
    Extracting ISO ...
    Parallel unsquashfs: Using 4 processors
    183918 inodes (199170 blocks) to write

    [=================================================================================================================================================|] 199170/199170 100%

    created 129699 files
    created 17994 directories
    created 54184 symlinks
    created 7 devices
    created 0 fifos
    Extracting isorespin files ...
    Updating bootloader/bootmanager ...
    chroot: failed to run command 'apt-cache': Exec format error
    chroot: failed to run command 'apt-cache': Exec format error
    umount: /home/user/Downloads/isorespin/iso-chroot/dev: target is busy
    (In some cases useful info about processes that
    use the device is found by lsof(8) or fuser(1).)
    rm: cannot remove 'iso-chroot/dev/hugepages': Device or resource busy
    rm: cannot remove 'iso-chroot/dev/mqueue': Device or resource busy
    rm: cannot remove 'iso-chroot/dev/shm': Device or resource busy
    rm: cannot remove 'iso-chroot/dev/pts': Device or resource busy
    mv: cannot stat 'iso-chroot/usr/src/grub-efi-ia32-bin*.deb': No such file or directory
    mv: cannot stat 'iso-chroot/usr/src/grub-efi-ia32*.deb': No such file or directory
    chroot: failed to run command 'apt-cache': Exec format error
    chroot: failed to run command 'apt-cache': Exec format error
    mount: mnt: mount failed: Unknown error -1
    cp: cannot stat 'mnt/efi': No such file or directory
    umount: mnt: not mounted
    mount: special device iso-directory-structure/boot/grub/efi.img does not exist
    cp: cannot stat 'efi': No such file or directory
    cp: cannot create regular file 'mnt/efi/boot/bootia32.efi': No such file or directory
    umount: mnt: not mounted
    Fetching mainline kernel packages ...
    Installing mainline kernel packages ...
    mv: cannot move 'iso-chroot/dev' to 'iso-chroot/dev.linuxium': Device or resource busy
    cp: cannot stat 'iso-chroot/dev.linuxium': No such file or directory
    rm: cannot remove 'iso-chroot/dev/hugepages': Device or resource busy
    rm: cannot remove 'iso-chroot/dev/mqueue': Device or resource busy
    rm: cannot remove 'iso-chroot/dev/shm': Device or resource busy
    rm: cannot remove 'iso-chroot/dev/pts': Device or resource busy
    mv: cannot stat 'iso-chroot/dev.linuxium': No such file or directory
    ./isorespin.sh: Cannot find mainline kernel.
    rm: cannot remove '/home/user/Downloads/isorespin/iso-chroot/dev/hugepages': Device or resource busy
    rm: cannot remove '/home/user/Downloads/isorespin/iso-chroot/dev/mqueue': Device or resource busy
    rm: cannot remove '/home/user/Downloads/isorespin/iso-chroot/dev/shm': Device or resource busy
    rm: cannot remove '/home/user/Downloads/isorespin/iso-chroot/dev/pts': Device or resource busy

    ReplyDelete
    Replies
    1. Is your installed Linux 32-bit? Try running on Ubuntu 64-bit either installed natively or as a VM on Windows.

      Delete