diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-10-26 22:17:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-10-26 22:17:15 +0100 |
commit | d0fb65244a988b1b9a30ae40453b37c23d67fccf (patch) | |
tree | 37805df8b15ae97fd8c43e3ef15ea2fa3f90e613 | |
parent | 78c720beecec09a96fc5caf00b924c12432df828 (diff) |
adjust some messages to todays reality
-rwxr-xr-x | libkvasile | 43 |
1 files changed, 16 insertions, 27 deletions
@@ -30,8 +30,6 @@ export local chrootbuildgit="cd /opt && git clone https://gitlab.com/"$releasena 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 isousertree="/usr/share/kvasile/usermodeset" 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" @@ -55,7 +53,6 @@ export local isoefibootdir=""$isorootdir"/efi/boot" kernelconfig () { if [[ $(zgrep 'CONFIG_OVERLAY_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 einfo "Kernel configuration seems OK, moving on" sleep 1 else @@ -74,7 +71,7 @@ checkroot () { checkiflive () { if [[ -L /dev/mapper/live-base ]] ; then - eerror "Running Vasile in live mode is a bad idea ... aborting !!!" + eerror "Running in Live mode is unsupported" exit 1 fi } @@ -82,17 +79,17 @@ checkiflive () { chrootchecksum () { while : true ; do if [[ -f "$chrootx64" && -f "$chrootx64md5" ]] ; then - einfo "good, squashed chroot && checksum file found ... verifying integrity" + einfo "Squashed chroot && Checksum file found" if [[ "$(md5sum -c "$chrootx64md5")" ]] ; then - einfo "good, squashed chroot checksum passed ... starting engines" + einfo "Squashed chroot checksum passed" sleep 1 break else - eerror "ooops, squashed chroot checksum failed ... aborting" + eerror "Squashed chroot checksum failed" exit 1 fi else - eerror "ooops, squashed chroot or checksum file not found ... aborting" + eerror "Squashed chroot || Checksum file not found" exit 1 fi done @@ -127,42 +124,34 @@ chrootstart () { } chrootdevtree () { - einfo "injecting full portage tree into build environment" + einfo "Injecting devmode portage tree" sleep 1 chroot "$overlaydir" su - "$chrootuser" -c "$chrootdevtree" } chrootoverlays () { - einfo "injecting "$releasename" "$releasetarget" overlay into build environment" + einfo "Injecting "$releasename" "$releasetarget" overlay" sleep 1 chroot "$overlaydir" su - "$chrootuser" -c "$chrootmainoverlay" } chrootbuildsystem () { - einfo "injecting "$releasename" buildsystem && setting up portage" + einfo "Injecting "$releasename" buildsystem" sleep 1 chroot "$overlaydir" su - "$chrootuser" -c "$chrootbuildgit" } chrootbuild () { - einfo "Environment is up && running ... building targets" + einfo "All systems are go!" sleep 1 chroot "$overlaydir" su - "$chrootuser" -c "$chrootbuildtarget" } chrootx64 () { - einfo "#################################################################" - einfo "# ENTERING CHROOT ENV FOR YOU TO PUSH BUILT PACKAGES #" - einfo "# OR TO FIX EVENTUAL BUILD ERRORS #" - einfo "#################################################################" - einfo "# !!! WARNING !!! WARNING !!! WARNING !!! #" - einfo "#################################################################" - einfo "# NEXT RUN OF THIS SCRIPT WILL DESTROY ALL YOUR WORK #" - einfo "# DO NOT EXIT CHROOT UNTIL ALL PACKAGES ARE PUSHED TO REPOS #" - einfo "# OR, IN CASE OF BUILD FAILURES, UNTIL ALL FIXES ARE COMMITED #" - einfo "#################################################################" - einfo "# !!! WARNING !!! WARNING !!! WARNING !!! #" - einfo "#################################################################" + einfo "DROPPING YOU TO A ROOT SHELL INTO BUILD ENVIRONMENT" + einfo "FIX FAILURES && ADJUST PORTAGE CONFIGURATION FILES" + einfo "TEST USEFLAGS && KEYWORDS && MASKS IF REQUIRED" + einfo "IN THE END : DO NOT FORGET TO COMMIT YOUR CHANGES" chroot "$overlaydir" su - "$chrootuser" } @@ -189,19 +178,19 @@ isostop () { } isousertree () { - einfo "injecting minimal portage tree into environment (user mode)" + einfo "Injecting usermode portage tree" sleep 1 chroot "$isosyncdir" su - "$isouser" -c "$isousertree" } isooverlays () { - einfo "injecting "$releasename" "$releasetarget" overlay into environment" + einfo "Injecting "$releasename" "$releasetarget" overlay" sleep 1 chroot "$isosyncdir" su - "$isouser" -c "$isomainoverlay" } isobuildsystem () { - einfo "injecting "$releasename" buildsystem && setting up portage" + einfo "Injecting "$releasename" buildsystem" sleep 1 chroot "$isosyncdir" su - "$isouser" -c "$isobuildgit" } |