#!/usr/bin/env bash # Vasile needs root privileges and a proper kernel to run kernelconfig checkroot export local mainarch="x86_64" export local isoname=""$releasename"-"$releaseversion"-"$mainarch"" export local coremnt="/tmp/"$isoname"" export local kernelver="3.14.0-"$releasename"" export local kernelname="kernel-genkernel-"$mainarch"-"$kernelver"" export local ramfsname="initramfs-genkernel-"$mainarch"-"$kernelver"" makeisox64 () { # ISO layout mkdir -p "$coremnt" mkdir -p ""$isoname"/livecd" mkdir -p ""$isoname"/boot" # Mount && Sync squashed core (Kogaion stage4) into live environment mount -t squashfs "$chrootx64" "$coremnt" rsync -aHAXr --progress "$coremnt/" ""$isoname"/livecd/" # Put our kernel and initramfs in place cp -avx ""$isoname"/livecd/boot/"$kernelname"" ""$isoname"/"$releasename"" cp -avx ""$isoname"/livecd/boot/"$ramfsname"" ""$isoname"/"$releasename.igz"" # Squash live environment mksquashfs ""$isoname"/livecd" ""$isoname"/livecd.squashfs" -b 1048576 -comp xz -Xdict-size 100% umount "$coremnt" } main () { chrootchecksumx64 makeisox64 } main