diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-10 21:43:07 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-10 21:43:07 +0100 |
commit | 5211a7173d780490e6f4410886e73e5a1e64e72d (patch) | |
tree | 277c711a590ef0b00113f2f8a6df0d67412ee8c6 | |
parent | 699cb3baa9ad52bd242eca902e9807d8f2c41b23 (diff) |
begin the spliting of vasile
-rw-r--r-- | src/backend/cmds | 10 | ||||
-rw-r--r-- | src/backend/funcs | 0 | ||||
-rw-r--r-- | src/backend/imports | 3 | ||||
-rwxr-xr-x | src/backend/libvasile (renamed from libvasile) | 0 | ||||
-rw-r--r-- | src/backend/vars | 36 | ||||
-rwxr-xr-x | src/frontend/cli/vasile (renamed from vasile) | 0 |
6 files changed, 49 insertions, 0 deletions
diff --git a/src/backend/cmds b/src/backend/cmds new file mode 100644 index 0000000..fe5e82b --- /dev/null +++ b/src/backend/cmds @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +export local jailbinmodecmd="vasile --binmode" +export local jailsrcmodecmd="vasile --srcmode" +export local jaildkmscmd="vasile --dkms" +export local jailportagecmd="emerge -kav "$jailtarget"" +export local jaildracutcmd="dracut -N -a dmsquash-live -a pollcdrom --force --kver="$kernver" /boot/"$jailramfsname"" +export local jailmkchainloadercmd="grub2-mkimage -d /usr/lib64/grub/i386-pc -o core.img -O i386-pc biosdisk part_msdos fat -p /boot/grub" +export local jailmkx64eficmd="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 -p /boot/grub" +export local jailmkia32eficmd="grub2-mkimage -d /usr/lib64/grub/i386-efi -o bootia32.efi -O i386-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 -p /boot/grub" diff --git a/src/backend/funcs b/src/backend/funcs new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/backend/funcs diff --git a/src/backend/imports b/src/backend/imports new file mode 100644 index 0000000..c82b983 --- /dev/null +++ b/src/backend/imports @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +source /lib/gentoo/functions.sh diff --git a/libvasile b/src/backend/libvasile index e1678ad..e1678ad 100755 --- a/libvasile +++ b/src/backend/libvasile diff --git a/src/backend/vars b/src/backend/vars new file mode 100644 index 0000000..4a08a26 --- /dev/null +++ b/src/backend/vars @@ -0,0 +1,36 @@ +#!/usr/bin/env bash + +export local distupstream="gentoo" +export local distname="redcore" +export local disttarget="desktop" +export local distver="1" +export local kernver="4.9.53-"$distname"-lts" + +export local jailx64=""$distname"_"$distver"_core_x64.squashfs" +export local jailx64sum=""$jailx64".md5sum" + +export local ropath="rodir" +export local rwpath="rwdir" +export local workpath="workdir" +export local overlaypath="overlaydir" + +export local jailuser="root" +export local jailarch="x86_64" +export local jailtarget="${@:2}" +export local jailkernname="kernel-genkernel-"$jailarch"-"$kernver"" +export local jailramfsname="initramfs-genkernel-"$jailarch"-"$kernver"" +export local jailrootpath="$distname"-"$disttarget"-"$distver"-"$jailarch" +export local jailsynctarget=""$jailrootpath"/rootfs" +export local jailsyncsource="/tmp/"$jailrootpath"" +export local jailbootldrpath=""$jailrootpath"/boot/grub" +export local jailefildrpath=""$jailrootpath"/efi/boot" +export local jaildvdpath=""$jailrootpath"/CDroot" +export local jailsquashfspath=""$jailrootpath"/LiveOS" +export local jailrealfspath=""$jaildvdpath"/LiveOS" +export local jailbootldrdlpath="/tmp/bootcore" +export local jailbootldrcfgpath=""$jailbootldrdlpath"/cdroot/boot" +export local jailmainportpath="/usr/ports/"$distupstream"" +export local jailaddonportpath="/usr/ports/"$distname"" +export local jailportcfgtarget="/etc/portage" +export local jailportcfgsource="/opt/"$distname"-build/conf/intel/portage" +export local jailportvcspath="/opt/"$distname"-build" diff --git a/vasile b/src/frontend/cli/vasile index d64b617..d64b617 100755 --- a/vasile +++ b/src/frontend/cli/vasile |