diff options
author | V3n3RiX <venerix@rogentos.ro> | 2015-11-29 14:56:41 +0000 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2015-11-29 14:56:41 +0000 |
commit | 18c8a8ac310a52184b596ff44403317b10d5a62e (patch) | |
tree | 65dad80fe3fc1dc4020b571ac78de29fe1d92781 | |
parent | fffd02bdf5a3613e0835fa7def17b1d9b2d8a8ec (diff) |
draft of iso scripts, they do what they're intended...prepare the iso layout...the rest of code should and will go into libvasile
-rwxr-xr-x | build32 | 22 | ||||
-rwxr-xr-x | build64 | 22 | ||||
-rwxr-xr-x | iso32 | 47 | ||||
-rwxr-xr-x | iso64 | 47 | ||||
-rwxr-xr-x | libvasile | 6 |
5 files changed, 118 insertions, 26 deletions
@@ -1,5 +1,10 @@ #!/usr/bin/env bash +# Vasile needs root privileges and a proper kernel to run + +checkroot +kernelconfig + chrootpreparex86 () { # check our environment for sanity # if safe, trigger start && break the loop to build packages @@ -22,16 +27,13 @@ chrootpreparex86 () { } main () { - kernelconfig - if checkroot ; then - chrootchecksumx86 - chrootpreparex86 - chrootoverlaysx86 - chrootbuildsystemx86 - chrootbuildx86 - chrootx86 - chrootstop - fi + chrootchecksumx86 + chrootpreparex86 + chrootoverlaysx86 + chrootbuildsystemx86 + chrootbuildx86 + chrootx86 + chrootstop } main @@ -1,5 +1,10 @@ #!/usr/bin/env bash +# Vasile needs root privileges and a proper kernel to run + +kernelconfig +checkroot + chrootpreparex64 () { # check our environment for sanity # if safe, trigger start && break the loop to build packages @@ -22,16 +27,13 @@ chrootpreparex64 () { } main () { - kernelconfig - if checkroot ; then - chrootchecksumx64 - chrootpreparex64 - chrootoverlaysx64 - chrootbuildsystemx64 - chrootbuildx64 - chrootx64 - chrootstop - fi + chrootchecksumx64 + chrootpreparex64 + chrootoverlaysx64 + chrootbuildsystemx64 + chrootbuildx64 + chrootx64 + chrootstop } main @@ -0,0 +1,47 @@ +#!/usr/bin/env bash + +# Vasile needs root privileges and a proper kernel to run + +kernelconfig +checkroot + +export local isoarch="x86" +export local isoname=""$releasename"-"$releaseversion"-"$isoarch"" + +dailyisox86 () { + export local isostatus="DAILY" + mkdir -p ""$isoname"-"$isostatus"/livecd" +} + +alphaisox86 () { + export local isostatus="ALPHA" + mkdir -p ""$isoname"-"$isostatus"/livecd" +} + +betaisox86 () { + export local isostatus="BETA" + mkdir -p ""$isoname"-"$isostatus"/livecd" +} + +rcisox86 () { + export local isostatus="RC" + mkdir -p ""$isoname"-"$isostatus"/livecd" +} + +stableisox86 () { + export local isostatus="STABLE" + mkdir -p ""$isoname"-"$isostatus"/livecd" +} + +case $2 in + --daily) dailyisox86 + ;; + --alpha) alphaisox86 + ;; + --beta) betaisox86 + ;; + --rc) rcisox86 + ;; + --stable) stableisox86 + ;; +esac @@ -0,0 +1,47 @@ +#!/usr/bin/env bash + +# Vasile needs root privileges and a proper kernel to run + +kernelconfig +checkroot + +export local isoarch="amd64" +export local isoname=""$releasename"-"$releaseversion"-"$isoarch"" + +dailyisox64 () { + export local isostatus="DAILY" + mkdir -p ""$isoname"-"$isostatus"/livecd" +} + +alphaisox64 () { + export local isostatus="ALPHA" + mkdir -p ""$isoname"-"$isostatus"/livecd" +} + +betaisox64 () { + export local isostatus="BETA" + mkdir -p ""$isoname"-"$isostatus"/livecd" +} + +rcisox64 () { + export local isostatus="RC" + mkdir -p ""$isoname"-"$isostatus"/livecd" +} + +stableisox64 () { + export local isostatus="STABLE" + mkdir -p ""$isoname"-"$isostatus"/livecd" +} + +case $2 in + --daily) dailyisox64 + ;; + --alpha) alphaisox64 + ;; + --beta) betaisox64 + ;; + --rc) rcisox64 + ;; + --stable) stableisox64 + ;; +esac @@ -78,9 +78,6 @@ chrootchecksumx64 () { done } -#coresetupx64 () { -#} - chrootstartx64 () { mount -t squashfs "$chrootx64" "$rodir" if [[ "$(uname -r | cut -d . -f1,2)" = "3.14" ]] ; then @@ -187,9 +184,6 @@ chrootchecksumx86 () { done } -#coresetupx86 () { -#} - chrootstartx86 () { mount -t squashfs "$chrootx86" "$rodir" if [[ "$(uname -r | cut -d . -f1,2)" = "3.14" ]] ; then |