#!/usr/bin/env bash # Vasile needs root privileges and a proper kernel to run kernelconfig checkroot makeisox86 () { mkdir -p "$coremntx86" mkdir -p "$isobootx86" mount -t squashfs "$chrootx86" "$coremntx86" rsync -aHAXr --progress "$coremntx86/" "$livedirx86/" cp -avx ""$livedirx86"/boot/"$kernelnamex86"" ""$isonamex86"/boot/"$releasename"" cp -avx ""$livedirx86"/boot/"$ramfsnamex86"" ""$isonamex86"/boot/"$releasename".igz" sha256sum ""$isonamex86"/boot/"$releasename"" | tee ""$isonamex86"/boot/"$releasename".sha256" sha256sum ""$isonamex86"/boot/"$releasename.igz"" | tee ""$isonamex86"/boot/"$releasename".igz.sha256" mksquashfs "$livedirx86" ""$livedirx86".squashfs" -b 1048576 -comp xz -Xdict-size 100% sha256sum ""$livedirx86".squashfs" | tee ""$livedirx86".squashfs.sha256" touch "$livedirx86" } bootcorex86 () { git clone https://gitlab.com/rogentos/boot-core.git "$bootcorepath" cp -avx "$bootcorefiles" "$isonamex86" } cleanupisox86 () { rm -rf "$livedirx86" rm -rf "$bootcorepath" umount "$coremntx86" } main () { chrootchecksumx86 makeisox86 bootcorex86 cleanupisox86 } main