From cf842e4d5818db14b563eb5b580e138d6fbb46c4 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 17 Apr 2016 12:54:46 +0100 Subject: change exec name and libname to allow argent to coexist --- libvasile | 184 ------------------------------------------------------ libvasile-kogaion | 184 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ vasile | 82 ------------------------ vasile-kogaion | 82 ++++++++++++++++++++++++ 4 files changed, 266 insertions(+), 266 deletions(-) delete mode 100755 libvasile create mode 100755 libvasile-kogaion delete mode 100755 vasile create mode 100755 vasile-kogaion diff --git a/libvasile b/libvasile deleted file mode 100755 index 11c3af5..0000000 --- a/libvasile +++ /dev/null @@ -1,184 +0,0 @@ -# generic functions (used for both build && iso creation) - -kernelconfig () { - if [[ $(zgrep 'CONFIG_OVERLAYFS_FS=' /proc/config.gz) && $(zgrep "CONFIG_SQUASHFS=" /proc/config.gz) && $(zgrep "CONFIG_BLK_DEV_LOOP=" /proc/config.gz) ]] ; then - # if you use 3.18 LTS or newer kernels, change CONFIG_OVERLAYFS_FS to CONFIG_OVERLAY_FS - echo "" - echo "Kernel configuration seems OK, moving on" - echo "" - sleep 1 - else - echo "" - echo "Vasile needs OVERLAYFS && SQUASHFS && LOOP DEVICES to work" - echo "Please rebuild the kernel with those activated to use it" - echo "" - exit 1 - fi -} - -checkroot () { - if [[ "$(whoami)" != root ]] ; then - echo "" - echo "You're not root?...No cookies for you, go away !!!" - echo "" - exit 1 - fi -} - -chrootchecksumx64 () { - while : true ; do - if [[ -f "$chrootx64" && -f "$chrootx64md5" ]] ; then - echo "good, squashed chroot && checksum file found ... verifying integrity" - echo "" - if [[ "$(md5sum -c "$chrootx64md5")" ]] ; then - echo "good, squashed chroot checksum passed ... starting engines" - echo "" - sleep 1 - break - else - echo "ooops, squashed chroot checksum failed ... aborting" - exit 1 - fi - else - echo "ooops, squashed chroot or checksum file not found ... aborting" - exit 1 - fi - done -} - -# build functions - -chrootstop () { - umount -l "$overlaydir"/proc > /dev/null 2>&1 - umount -l "$overlaydir"/sys > /dev/null 2>&1 - umount -l "$overlaydir"/dev/pts > /dev/null 2>&1 - umount -l "$overlaydir"/dev/shm > /dev/null 2>&1 - umount -l "$overlaydir"/dev > /dev/null 2>&1 - umount -l "$overlaydir"/tmp > /dev/null 2>&1 - umount -l "$overlaydir"/usr/portage/packages > /dev/null 2>&1 - umount -l "$overlaydir"/usr/portage/distfiles > /dev/null 2>&1 - umount -l "$overlaydir" > /dev/null 2>&1 - umount -l "$rodir" > /dev/null 2>&1 -} - -chrootstartx64 () { - mount -t squashfs "$chrootx64" "$rodir" - if [[ "$(uname -r | cut -d . -f1,2)" = "3.14" ]] ; then - mount -t overlayfs -o lowerdir="$rodir",upperdir="$rwdir" overlayfs "$overlaydir" - else # kernel version equal or above 3.18 - mount -t overlay -o lowerdir="$rodir",upperdir="$rwdir",workdir="$workdir" overlay "$overlaydir" - fi - mount -o bind packages "$overlaydir"/usr/portage/packages - mount -o bind distfiles "$overlaydir"/usr/portage/distfiles - mount -t proc proc "$overlaydir"/proc - mount -t sysfs sysfs "$overlaydir"/sys - mount -t devtmpfs -o relatime,size=3055348k,nr_inodes=763837,mode=755 none "$overlaydir"/dev - mount -t devpts -o nosuid,noexec,relatime,gid=5,mode=620 none "$overlaydir"/dev/pts - mount -t tmpfs -o nosuid,nodev none "$overlaydir"/dev/shm - mount -t tmpfs -o nosuid,nodev,noexec none "$overlaydir"/tmp -} - -chroottreex64 () { - echo "injecting full portage tree into build environment" - sleep 1 - chroot "$overlaydir" su - "$chrootuser" -c "$chroottree" -} - -chrootoverlaysx64 () { - echo "injecting "$releasename" "$releasetarget" overlay into build environment" - sleep 1 - chroot "$overlaydir" su - "$chrootuser" -c "$chrootmainoverlay" -} - -chrootbuildsystemx64 () { - echo "injecting "$releasename" buildsystem && setting up portage" - echo "" - sleep 1 - for cmd in "$chrootbuildgit" "$chrootportageconfig" "$chrootmakeconfx64" "$chrootprofile" "$chrootenvupdate" ; do - chroot "$overlaydir" su - "$chrootuser" -c "$cmd" - done -} - -chrootbuildx64 () { - echo "" - echo "Environment is up && running ... building targets" - sleep 1 - chroot "$overlaydir" su - "$chrootuser" -c "$chrootbuildtarget" -} - -chrootx64 () { - echo -e "" - echo -e "#################################################################" - echo -e "# ENTERING CHROOT ENV FOR YOU TO PUSH BUILT PACKAGES #" - echo -e "# OR TO FIX EVENTUAL BUILD ERRORS #" - echo -e "#################################################################" - echo -e "# !!! WARNING !!! WARNING !!! WARNING !!! #" - echo -e "#################################################################" - echo -e "# NEXT RUN OF THIS SCRIPT WILL DESTROY ALL YOUR WORK #" - echo -e "# DO NOT EXIT CHROOT UNTIL ALL PACKAGES ARE PUSHED TO REPOS #" - echo -e "# OR, IN CASE OF BUILD FAILURES, UNTIL ALL FIXES ARE COMMITED #" - echo -e "#################################################################" - echo -e "# !!! WARNING !!! WARNING !!! WARNING !!! #" - echo -e "#################################################################" - echo -e "" - echo -e "" - chroot "$overlaydir" su - "$chrootuser" -} - -# iso functions - -isostartx64 () { - mount -o bind packages "$isosyncdirx64"/usr/portage/packages - mount -t proc proc "$isosyncdirx64"/proc - mount -t sysfs sysfs "$isosyncdirx64"/sys - mount -t devtmpfs -o relatime,size=3055348k,nr_inodes=763837,mode=755 none "$isosyncdirx64"/dev - mount -t devpts -o nosuid,noexec,relatime,gid=5,mode=620 none "$isosyncdirx64"/dev/pts - mount -t tmpfs -o nosuid,nodev none "$isosyncdirx64"/dev/shm - mount -t tmpfs -o nosuid,nodev,noexec none "$isosyncdirx64"/tmp -} - -isostopx64 () { - umount -l "$isosyncdirx64"/proc > /dev/null 2>&1 - umount -l "$isosyncdirx64"/sys > /dev/null 2>&1 - umount -l "$isosyncdirx64"/dev/pts > /dev/null 2>&1 - umount -l "$isosyncdirx64"/dev/shm > /dev/null 2>&1 - umount -l "$isosyncdirx64"/dev > /dev/null 2>&1 - umount -l "$isosyncdirx64"/tmp > /dev/null 2>&1 - umount -l "$isosyncdirx64"/usr/portage/packages > /dev/null 2>&1 -} - -isooverlaysx64 () { - echo "injecting "$releasename" "$releasetarget" overlay into x64 environment" - sleep 1 - chroot "$isosyncdirx64" su - "$isouser" -c "$isomainoverlay" -} - -isobuildsystemx64 () { - echo "injecting "$releasename" buildsystem && setting up portage" - echo "" - sleep 1 - for cmd in "$isobuildgit" "$isoportageconfig" "$isomakeconfx64" "$isoprofile" "$isoenvupdate" ; do - chroot "$isosyncdirx64" su - "$isouser" -c "$cmd" - done -} - -isoramfsx64 () { - chroot "$isosyncdirx64" su - "$isouser" -c "$isodracutcmd" -} - -systemramfsx64 () { - chroot "$isosyncdirx64" su - "$isouser" -c "$dracutcmdx64" -} - -isoefiimgx64 () { - chroot "$isosyncdirx64" su - "$isouser" -c "$isoeficmd" -} - -isochrootx64 () { - echo -e "" - echo -e "DROPPING YOU TO A ROOT SHELL INTO ISO ENVIRONMENT" - echo -e "INSTALL APPS & TARGETS & DES YOU WANT INSIDE ISO" - echo -e "EXIT WHEN YOU'RE DONE AND I'LL CREATE THE IMAGE" - echo -e "" - chroot "$isosyncdirx64" su - "$isouser" -} diff --git a/libvasile-kogaion b/libvasile-kogaion new file mode 100755 index 0000000..11c3af5 --- /dev/null +++ b/libvasile-kogaion @@ -0,0 +1,184 @@ +# generic functions (used for both build && iso creation) + +kernelconfig () { + if [[ $(zgrep 'CONFIG_OVERLAYFS_FS=' /proc/config.gz) && $(zgrep "CONFIG_SQUASHFS=" /proc/config.gz) && $(zgrep "CONFIG_BLK_DEV_LOOP=" /proc/config.gz) ]] ; then + # if you use 3.18 LTS or newer kernels, change CONFIG_OVERLAYFS_FS to CONFIG_OVERLAY_FS + echo "" + echo "Kernel configuration seems OK, moving on" + echo "" + sleep 1 + else + echo "" + echo "Vasile needs OVERLAYFS && SQUASHFS && LOOP DEVICES to work" + echo "Please rebuild the kernel with those activated to use it" + echo "" + exit 1 + fi +} + +checkroot () { + if [[ "$(whoami)" != root ]] ; then + echo "" + echo "You're not root?...No cookies for you, go away !!!" + echo "" + exit 1 + fi +} + +chrootchecksumx64 () { + while : true ; do + if [[ -f "$chrootx64" && -f "$chrootx64md5" ]] ; then + echo "good, squashed chroot && checksum file found ... verifying integrity" + echo "" + if [[ "$(md5sum -c "$chrootx64md5")" ]] ; then + echo "good, squashed chroot checksum passed ... starting engines" + echo "" + sleep 1 + break + else + echo "ooops, squashed chroot checksum failed ... aborting" + exit 1 + fi + else + echo "ooops, squashed chroot or checksum file not found ... aborting" + exit 1 + fi + done +} + +# build functions + +chrootstop () { + umount -l "$overlaydir"/proc > /dev/null 2>&1 + umount -l "$overlaydir"/sys > /dev/null 2>&1 + umount -l "$overlaydir"/dev/pts > /dev/null 2>&1 + umount -l "$overlaydir"/dev/shm > /dev/null 2>&1 + umount -l "$overlaydir"/dev > /dev/null 2>&1 + umount -l "$overlaydir"/tmp > /dev/null 2>&1 + umount -l "$overlaydir"/usr/portage/packages > /dev/null 2>&1 + umount -l "$overlaydir"/usr/portage/distfiles > /dev/null 2>&1 + umount -l "$overlaydir" > /dev/null 2>&1 + umount -l "$rodir" > /dev/null 2>&1 +} + +chrootstartx64 () { + mount -t squashfs "$chrootx64" "$rodir" + if [[ "$(uname -r | cut -d . -f1,2)" = "3.14" ]] ; then + mount -t overlayfs -o lowerdir="$rodir",upperdir="$rwdir" overlayfs "$overlaydir" + else # kernel version equal or above 3.18 + mount -t overlay -o lowerdir="$rodir",upperdir="$rwdir",workdir="$workdir" overlay "$overlaydir" + fi + mount -o bind packages "$overlaydir"/usr/portage/packages + mount -o bind distfiles "$overlaydir"/usr/portage/distfiles + mount -t proc proc "$overlaydir"/proc + mount -t sysfs sysfs "$overlaydir"/sys + mount -t devtmpfs -o relatime,size=3055348k,nr_inodes=763837,mode=755 none "$overlaydir"/dev + mount -t devpts -o nosuid,noexec,relatime,gid=5,mode=620 none "$overlaydir"/dev/pts + mount -t tmpfs -o nosuid,nodev none "$overlaydir"/dev/shm + mount -t tmpfs -o nosuid,nodev,noexec none "$overlaydir"/tmp +} + +chroottreex64 () { + echo "injecting full portage tree into build environment" + sleep 1 + chroot "$overlaydir" su - "$chrootuser" -c "$chroottree" +} + +chrootoverlaysx64 () { + echo "injecting "$releasename" "$releasetarget" overlay into build environment" + sleep 1 + chroot "$overlaydir" su - "$chrootuser" -c "$chrootmainoverlay" +} + +chrootbuildsystemx64 () { + echo "injecting "$releasename" buildsystem && setting up portage" + echo "" + sleep 1 + for cmd in "$chrootbuildgit" "$chrootportageconfig" "$chrootmakeconfx64" "$chrootprofile" "$chrootenvupdate" ; do + chroot "$overlaydir" su - "$chrootuser" -c "$cmd" + done +} + +chrootbuildx64 () { + echo "" + echo "Environment is up && running ... building targets" + sleep 1 + chroot "$overlaydir" su - "$chrootuser" -c "$chrootbuildtarget" +} + +chrootx64 () { + echo -e "" + echo -e "#################################################################" + echo -e "# ENTERING CHROOT ENV FOR YOU TO PUSH BUILT PACKAGES #" + echo -e "# OR TO FIX EVENTUAL BUILD ERRORS #" + echo -e "#################################################################" + echo -e "# !!! WARNING !!! WARNING !!! WARNING !!! #" + echo -e "#################################################################" + echo -e "# NEXT RUN OF THIS SCRIPT WILL DESTROY ALL YOUR WORK #" + echo -e "# DO NOT EXIT CHROOT UNTIL ALL PACKAGES ARE PUSHED TO REPOS #" + echo -e "# OR, IN CASE OF BUILD FAILURES, UNTIL ALL FIXES ARE COMMITED #" + echo -e "#################################################################" + echo -e "# !!! WARNING !!! WARNING !!! WARNING !!! #" + echo -e "#################################################################" + echo -e "" + echo -e "" + chroot "$overlaydir" su - "$chrootuser" +} + +# iso functions + +isostartx64 () { + mount -o bind packages "$isosyncdirx64"/usr/portage/packages + mount -t proc proc "$isosyncdirx64"/proc + mount -t sysfs sysfs "$isosyncdirx64"/sys + mount -t devtmpfs -o relatime,size=3055348k,nr_inodes=763837,mode=755 none "$isosyncdirx64"/dev + mount -t devpts -o nosuid,noexec,relatime,gid=5,mode=620 none "$isosyncdirx64"/dev/pts + mount -t tmpfs -o nosuid,nodev none "$isosyncdirx64"/dev/shm + mount -t tmpfs -o nosuid,nodev,noexec none "$isosyncdirx64"/tmp +} + +isostopx64 () { + umount -l "$isosyncdirx64"/proc > /dev/null 2>&1 + umount -l "$isosyncdirx64"/sys > /dev/null 2>&1 + umount -l "$isosyncdirx64"/dev/pts > /dev/null 2>&1 + umount -l "$isosyncdirx64"/dev/shm > /dev/null 2>&1 + umount -l "$isosyncdirx64"/dev > /dev/null 2>&1 + umount -l "$isosyncdirx64"/tmp > /dev/null 2>&1 + umount -l "$isosyncdirx64"/usr/portage/packages > /dev/null 2>&1 +} + +isooverlaysx64 () { + echo "injecting "$releasename" "$releasetarget" overlay into x64 environment" + sleep 1 + chroot "$isosyncdirx64" su - "$isouser" -c "$isomainoverlay" +} + +isobuildsystemx64 () { + echo "injecting "$releasename" buildsystem && setting up portage" + echo "" + sleep 1 + for cmd in "$isobuildgit" "$isoportageconfig" "$isomakeconfx64" "$isoprofile" "$isoenvupdate" ; do + chroot "$isosyncdirx64" su - "$isouser" -c "$cmd" + done +} + +isoramfsx64 () { + chroot "$isosyncdirx64" su - "$isouser" -c "$isodracutcmd" +} + +systemramfsx64 () { + chroot "$isosyncdirx64" su - "$isouser" -c "$dracutcmdx64" +} + +isoefiimgx64 () { + chroot "$isosyncdirx64" su - "$isouser" -c "$isoeficmd" +} + +isochrootx64 () { + echo -e "" + echo -e "DROPPING YOU TO A ROOT SHELL INTO ISO ENVIRONMENT" + echo -e "INSTALL APPS & TARGETS & DES YOU WANT INSIDE ISO" + echo -e "EXIT WHEN YOU'RE DONE AND I'LL CREATE THE IMAGE" + echo -e "" + chroot "$isosyncdirx64" su - "$isouser" +} diff --git a/vasile b/vasile deleted file mode 100755 index 39cc017..0000000 --- a/vasile +++ /dev/null @@ -1,82 +0,0 @@ -#!/usr/bin/env bash -# Say Hello to Vasile, a modular script to build Kogaion/Argent Linux packages && ISO images using a clean squashfs + overlayfs chroot -# Main author : Ghiunhan Mamut (aka V3n3RiX) @ RogentOS Development Group -# Dependencies : kernel built with squashfs + overlayfs + loopback support && sys-fs/grub:2 && sys-fs/squashfs-tools && dev-libs/libisoburn && sys-fs/mtools -# - -# generic variables - -export local releasename="kogaion" -export local releasetarget="desktop" -export local releaseversion="3" -export local kernelver="3.14.50-"$releasename"" -export local chrootx64=""$releasename"_"$releaseversion"_core_x64.squashfs" -export local chrootx64md5=""$chrootx64".md5" - -# build variables - -export local rodir="rodir" -export local rwdir="rwdir" -export local workdir="workdir" # only needed for overlayfs on kernel greather than 3.18 -export local overlaydir="overlaydir" -export local chrootuser="root" -export local chroottarget="${@:2}" -export local chrootbuildtarget="emerge -kav "$chroottarget"" -export local chroottree="/usr/share/vasile/devmod" -export local chrootmainoverlay="layman -f -a "$releasename"-"$releasetarget" -o https://gitlab.com/"$releasename"/"$releasename"-"$releasetarget"/raw/master/overlay.xml" -export local chrootbuildgit="cd /opt && git clone https://gitlab.com/"$releasename"/"$releasename"-build.git" -export local chrootportageconfig="ln -sf /opt/"$releasename"-build/conf/intel/portage /etc/portage" -export local chrootmakeconfx64="ln -sf /opt/"$releasename"-build/conf/intel/portage/make.conf.amd64-devel /etc/portage/make.conf" -export local chrootenvupdate="/usr/sbin/env-update && . /etc/profile" -export local chrootprofile="eselect profile set 1" - -# iso variables - -export local bootcorepath="/tmp/bootcore" -export local bootcorefiles="/tmp/bootcore/cdroot/boot" -export local isouser="root" -export local isotarget="${@:2}" -export local isoinstalltarget="emerge -Kav "$isotarget"" -export local isomainoverlay="layman -f -a "$releasename"-"$releasetarget" -o https://gitlab.com/"$releasename"/"$releasename"-"$releasetarget"/raw/master/overlay.xml" -export local isobuildgit="cd /opt && git clone https://gitlab.com/"$releasename"/"$releasename"-build.git" -export local isoportageconfig="ln -sf /opt/"$releasename"-build/conf/intel/portage /etc/portage" -export local isoenvupdate="/usr/sbin/env-update && . /etc/profile" -export local isoprofile="eselect profile set 1" -export local isodracutcmd="dracut -N -a dmsquash-live -a pollcdrom -o systemd -o systemd-initrd -o systemd-networkd -o dracut-systemd --force --kver "$kernelver"" -export local isodracutrd="initramfs-"$kernelver".img" -export local isoeficmd="grub2-mkimage -d /usr/lib64/grub/x86_64-efi -o bootx64.efi -O x86_64-efi ext2 fat udf btrfs ntfs reiserfs xfs hfsplus lvm ata part_msdos part_gpt part_apple bsd search_fs_uuid normal chain iso9660 configfile help loadenv reboot cat search memdisk tar boot linux chain" -export local isomainarchx64="x86_64" -export local isomakeconfx64="ln -sf /opt/"$releasename"-build/conf/intel/portage/make.conf.amd64-user /etc/portage/make.conf" -export local isorootdirx64=""$releasename"-"$releasetarget"-"$releaseversion"-"$isomainarchx64"" -export local isokernelnamex64="kernel-genkernel-"$isomainarchx64"-"$kernelver"" -export local isostagingdirx64="/tmp/"$isorootdirx64"" -export local isosupersquashdirx64=""$isorootdirx64"/CDroot" -export local isolivesqfsdirx64=""$isosupersquashdirx64"/LiveOS" -export local isoliveosdirx64=""$isorootdirx64"/LiveOS" -export local isosyncdirx64=""$isorootdirx64"/rootfs" -export local isobootdirx64=""$isorootdirx64"/boot/grub" -export local isoefibootdirx64=""$isorootdirx64"/efi/boot" -export local dracutrdx64="initramfs-genkernel-"$isomainarchx64"-"$kernelver"" -export local dracutcmdx64="dracut -N -o systemd -o systemd-initrd -o systemd-networkd -o dracut-systemd --force --kver "$kernelver" "/boot/"$dracutrdx64""" - -source /usr/lib/vasile-kogaion/libvasile - -case $1 in - --build) source /usr/share/vasile-kogaion/build - ;; - --iso) source /usr/share/vasile-kogaion/iso - ;; - --help) echo -e "" - echo -e "Usage: vasile-kogaion [options]" - echo -e "" - echo -e "Options:" - echo -e "--build64 : build package/target in a clean x64 squashed core" - echo -e "--iso64 : build x64 iso based on clean squashed core + targets" - echo -e "--help : display this help and exit" - echo -e "" - ;; - *) echo -e "error: no operation specified, use --help for help" - ;; -esac - -exit 0 diff --git a/vasile-kogaion b/vasile-kogaion new file mode 100755 index 0000000..5fb0ed5 --- /dev/null +++ b/vasile-kogaion @@ -0,0 +1,82 @@ +#!/usr/bin/env bash +# Say Hello to Vasile, a modular script to build Kogaion/Argent Linux packages && ISO images using a clean squashfs + overlayfs chroot +# Main author : Ghiunhan Mamut (aka V3n3RiX) @ RogentOS Development Group +# Dependencies : kernel built with squashfs + overlayfs + loopback support && sys-fs/grub:2 && sys-fs/squashfs-tools && dev-libs/libisoburn && sys-fs/mtools +# + +# generic variables + +export local releasename="kogaion" +export local releasetarget="desktop" +export local releaseversion="3" +export local kernelver="3.14.50-"$releasename"" +export local chrootx64=""$releasename"_"$releaseversion"_core_x64.squashfs" +export local chrootx64md5=""$chrootx64".md5" + +# build variables + +export local rodir="rodir" +export local rwdir="rwdir" +export local workdir="workdir" # only needed for overlayfs on kernel greather than 3.18 +export local overlaydir="overlaydir" +export local chrootuser="root" +export local chroottarget="${@:2}" +export local chrootbuildtarget="emerge -kav "$chroottarget"" +export local chroottree="/usr/share/vasile/devmod" +export local chrootmainoverlay="layman -f -a "$releasename"-"$releasetarget" -o https://gitlab.com/"$releasename"/"$releasename"-"$releasetarget"/raw/master/overlay.xml" +export local chrootbuildgit="cd /opt && git clone https://gitlab.com/"$releasename"/"$releasename"-build.git" +export local chrootportageconfig="ln -sf /opt/"$releasename"-build/conf/intel/portage /etc/portage" +export local chrootmakeconfx64="ln -sf /opt/"$releasename"-build/conf/intel/portage/make.conf.amd64-devel /etc/portage/make.conf" +export local chrootenvupdate="/usr/sbin/env-update && . /etc/profile" +export local chrootprofile="eselect profile set 1" + +# iso variables + +export local bootcorepath="/tmp/bootcore" +export local bootcorefiles="/tmp/bootcore/cdroot/boot" +export local isouser="root" +export local isotarget="${@:2}" +export local isoinstalltarget="emerge -Kav "$isotarget"" +export local isomainoverlay="layman -f -a "$releasename"-"$releasetarget" -o https://gitlab.com/"$releasename"/"$releasename"-"$releasetarget"/raw/master/overlay.xml" +export local isobuildgit="cd /opt && git clone https://gitlab.com/"$releasename"/"$releasename"-build.git" +export local isoportageconfig="ln -sf /opt/"$releasename"-build/conf/intel/portage /etc/portage" +export local isoenvupdate="/usr/sbin/env-update && . /etc/profile" +export local isoprofile="eselect profile set 1" +export local isodracutcmd="dracut -N -a dmsquash-live -a pollcdrom -o systemd -o systemd-initrd -o systemd-networkd -o dracut-systemd --force --kver "$kernelver"" +export local isodracutrd="initramfs-"$kernelver".img" +export local isoeficmd="grub2-mkimage -d /usr/lib64/grub/x86_64-efi -o bootx64.efi -O x86_64-efi ext2 fat udf btrfs ntfs reiserfs xfs hfsplus lvm ata part_msdos part_gpt part_apple bsd search_fs_uuid normal chain iso9660 configfile help loadenv reboot cat search memdisk tar boot linux chain" +export local isomainarchx64="x86_64" +export local isomakeconfx64="ln -sf /opt/"$releasename"-build/conf/intel/portage/make.conf.amd64-user /etc/portage/make.conf" +export local isorootdirx64=""$releasename"-"$releasetarget"-"$releaseversion"-"$isomainarchx64"" +export local isokernelnamex64="kernel-genkernel-"$isomainarchx64"-"$kernelver"" +export local isostagingdirx64="/tmp/"$isorootdirx64"" +export local isosupersquashdirx64=""$isorootdirx64"/CDroot" +export local isolivesqfsdirx64=""$isosupersquashdirx64"/LiveOS" +export local isoliveosdirx64=""$isorootdirx64"/LiveOS" +export local isosyncdirx64=""$isorootdirx64"/rootfs" +export local isobootdirx64=""$isorootdirx64"/boot/grub" +export local isoefibootdirx64=""$isorootdirx64"/efi/boot" +export local dracutrdx64="initramfs-genkernel-"$isomainarchx64"-"$kernelver"" +export local dracutcmdx64="dracut -N -o systemd -o systemd-initrd -o systemd-networkd -o dracut-systemd --force --kver "$kernelver" "/boot/"$dracutrdx64""" + +source /usr/lib/vasile-kogaion/libvasile-kogaion + +case $1 in + --build) source /usr/share/vasile-kogaion/build + ;; + --iso) source /usr/share/vasile-kogaion/iso + ;; + --help) echo -e "" + echo -e "Usage: vasile-kogaion [options]" + echo -e "" + echo -e "Options:" + echo -e "--build64 : build package/target in a clean x64 squashed core" + echo -e "--iso64 : build x64 iso based on clean squashed core + targets" + echo -e "--help : display this help and exit" + echo -e "" + ;; + *) echo -e "error: no operation specified, use --help for help" + ;; +esac + +exit 0 -- cgit v1.2.3