OSDN Git Service

[update] : Added noiso.
authorhayao <shun819.mail@gmail.com>
Sun, 5 Jul 2020 05:17:12 +0000 (14:17 +0900)
committerhayao <shun819.mail@gmail.com>
Sun, 5 Jul 2020 05:17:12 +0000 (14:17 +0900)
build.sh
default.conf

index 6769e1e..f7acc9b 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -253,6 +253,7 @@ _usage () {
     echo "    --noconfirm                  No check the settings before building."
     echo "    --noloopmod                  No check and load kernel module automatically."
     echo "    --nodepend                   No check package dependencies before building."
+    echo "    --noiso                      No build iso image. (Use with --tarball)"
     echo "    --shmkalteriso               Use the shell script version of mkalteriso."
     echo
     echo "A list of kernels available for each architecture."
@@ -1186,7 +1187,7 @@ make_iso() {
 # Parse options
 options="${@}"
 _opt_short="a:bc:dg:hjk:lo:p:t:u:w:x"
-_opt_long="arch:,boot-splash,comp-type:,debug,help,lang,japanese,kernel:,cleaning,out:,password:,comp-opts:,user:,work:,bash-debug,nocolor,noconfirm,nodepend,gitversion,shmkalteriso,msgdebug,noloopmod,tarball"
+_opt_long="arch:,boot-splash,comp-type:,debug,help,lang,japanese,kernel:,cleaning,out:,password:,comp-opts:,user:,work:,bash-debug,nocolor,noconfirm,nodepend,gitversion,shmkalteriso,msgdebug,noloopmod,tarball,noiso"
 OPT=$(getopt -o ${_opt_short} -l ${_opt_long} -- "${@}")
 if [[ ${?} != 0 ]]; then
     exit 1
@@ -1305,6 +1306,10 @@ while :; do
             tarball=true
             shift 1
             ;;
+        --noiso)
+            noiso=true
+            shift 1
+            ;;
         --)
             shift
             break
@@ -1510,6 +1515,7 @@ check_bool customized_username
 check_bool noloopmod
 check_bool nochname
 check_bool tarball
+check_bool noiso
 
 if [[ "${debug}" =  true ]]; then
     echo
@@ -1533,9 +1539,10 @@ run_once make_efiboot
 if [[ "${tarball}" = true ]]; then
     run_once make_tarball
 fi
-run_once make_prepare
-run_once make_iso
-
+if [ "${noiso}" = false ]; then
+    run_once make_prepare
+    run_once make_iso
+fi
 if [[ ${cleaning} = true ]]; then
     remove_work
 fi
index ea945df..7a71d3c 100644 (file)
@@ -148,6 +148,11 @@ noloopmod=false
 # This setting cannot be changed by an argument.
 nochname=false
 
+# Does not build the ISO image file.
+# Be sure to set the tarball to true if you want this to be true.
+# Change the default behavior of "--noiso".
+noiso=false
+
 #-- Debug options --#
 
 # Set debug mode.