diff options
author | V3n3RiX <venerix@rogentos.ro> | 2015-11-29 13:20:37 +0000 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2015-11-29 13:20:37 +0000 |
commit | bccf619f40434d77b67ebc03af87884d4c195f7e (patch) | |
tree | 0a59c28d8ccae01be5ba2b986aa14ec108c22f31 | |
parent | 9b47ea9717f916402d4c53cc1f96026017e925f8 (diff) |
do not hardcode squashfs names
-rwxr-xr-x | libvasile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -12,6 +12,7 @@ export local chrootbuildgit="cd /opt && git clone https://gitlab.com/kogaion/kog export local chrootportageconfig="ln -sf /opt/kogaion-build/conf/intel/portage /etc/portage" export local chrootenvupdate="/usr/sbin/env-update && . /etc/profile" export local chrootprofile="eselect profile set 1" +export local releasename="kogaion_3" kernelconfig () { if [[ $(zgrep 'CONFIG_OVERLAY_FS=' /proc/config.gz) && $(zgrep "CONFIG_SQUASHFS=" /proc/config.gz) && $(zgrep "CONFIG_BLK_DEV_LOOP=" /proc/config.gz) ]] ; then @@ -51,7 +52,7 @@ chrootstop () { } # x64 specific code -export local chrootx64="kogaion_3_core_x64.squashfs" +export local chrootx64=""$releasename"_core_x64.squashfs" export local chrootx64md5=""$chrootx64".md5" export local chrootmakeconfx64="ln -sf /opt/kogaion-build/conf/intel/portage/make.conf.amd64 /etc/portage/make.conf" @@ -160,7 +161,7 @@ chrootx64 () { } # x86 specific code -export local chrootx86="kogaion_3_core_x86.squashfs" +export local chrootx86=""$releasename"_core_x86.squashfs" export local chrootx86md5=""$chrootx86".md5" export local chrootmakeconfx86="ln -sf /opt/kogaion-build/conf/intel/portage/make.conf.x86 /etc/portage/make.conf" |