User Tools

Site Tools


doc:howto:tce

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:howto:tce [2024/09/12 08:41]
stefanbaur [Configuring the Build] buildscript needs to check both host and target arch
doc:howto:tce [2024/09/12 19:18] (current)
stefanbaur [Starting the Build] added info output
Line 33: Line 33:
   * Install the required package(s) by running: <code>sudo apt-get install genisoimage git-core live-build live-config-doc live-manual-html live-boot-doc lsb-release netcat-traditional</code>   * Install the required package(s) by running: <code>sudo apt-get install genisoimage git-core live-build live-config-doc live-manual-html live-boot-doc lsb-release netcat-traditional</code>
   * If you want to speed up subsequent builds, install the recommended package(s) by running: <code>sudo apt-get install apt-cacher-ng</code>   * If you want to speed up subsequent builds, install the recommended package(s) by running: <code>sudo apt-get install apt-cacher-ng</code>
-  * If you want to be prepared to be able to cross-build across different architectures (e.g. building an ARM image on an Intel/AMD build host) - a feature coming soon - install the optional package(s) by running: <code>sudo apt-get install qemu-user-static binfmt-support -y && update-binfmts --enable qemu-aarch64</code>+  * If you want to be prepared to be able to cross-build across different architectures (e.g. building an ARM image on an Intel/AMD build host) - a feature coming soon - install the optional package(s) by running: <code>sudo apt-get install qemu-user-static binfmt-support squashfs-tools -y && update-binfmts --enable qemu-aarch64</code>
  
 ===== Building your own X2Go-TCE Image ===== ===== Building your own X2Go-TCE Image =====
Line 494: Line 494:
  # original mksquashfs call into a file.  # original mksquashfs call into a file.
  
- if (uname -| grep -q 'i.86' || uname -| grep -q 'amd64') ; then+ if (uname -| grep -q 'i.86' || uname -| grep -q 'x86_64' || uname -m | grep -q 'ppc64') ; then 
 +                echo "INFO: using host-architecture mksquashfs from outside instead of the target-architecture one inside chroot."
  # We need to do this as a background task, waiting for the mksquashfs executable to  # We need to do this as a background task, waiting for the mksquashfs executable to
  # appear in the changeroot; as the changeroot will only be created later on, once  # appear in the changeroot; as the changeroot will only be created later on, once
Line 556: Line 557:
      #needs switch from e.g. /bin/mksquashfs to $(which mksquashfs)      #needs switch from e.g. /bin/mksquashfs to $(which mksquashfs)
      sed -e "s#^.*mksquashfs#$(which mksquashfs)#g" -i \      sed -e "s#^.*mksquashfs#$(which mksquashfs)#g" -i \
 + ./chroot/tmp/filesystem.squashfs.temp
 +     # if the mksquashfs command was missing, add it
 +     grep -q mksquashfs ./chroot/tmp/filesystem.squashfs.temp || \
 + sed -e "s#^ #$(which mksquashfs) #g" -i \
  ./chroot/tmp/filesystem.squashfs.temp  ./chroot/tmp/filesystem.squashfs.temp
      # now let's make this executable      # now let's make this executable
doc/howto/tce.1726130482.txt.gz · Last modified: 2024/09/12 08:41 by stefanbaur