Untitled


SUBMITTED BY: Guest

DATE: Dec. 25, 2023, 8:50 p.m.

FORMAT: Text only

SIZE: 11.6 kB

HITS: 266

  1. }
  2. [biglinux-testing]
  3. SigLevel = PackageRequired
  4. Server = https://devdevdev.biglinux.com.br/testing/$arch
  5. [biglinux-testing]
  6. SigLevel = PackageRequired
  7. Server = https://devdevdev.biglinux.com.br/testing/$arch
  8. [biglinux-stable]
  9. SigLevel = PackageRequired
  10. Server = https://devdevdev.biglinux.com.br/stable/$arch
  11. [biglinux-testing]
  12. SigLevel = PackageRequired
  13. Server = https://devdevdev.biglinux.com.br/testing/$arch
  14. [biglinux-testing]
  15. SigLevel = PackageRequired
  16. Server = https://devdevdev.biglinux.com.br/testing/$arch
  17. [biglinux-stable]
  18. SigLevel = PackageRequired
  19. Server = https://devdevdev.biglinux.com.br/stable/$arch
  20. Server = https://irltoolkit.mm.fcix.net/manjaro/stable/$repo/$arch
  21. Server = http://mirror.fcix.net/manjaro/stable/$repo/$arch
  22. Server = https://opencolo.mm.fcix.net/manjaro/stable/$repo/$arch
  23. Server = https://mirrors.ocf.berkeley.edu/manjaro/stable/$repo/$arch
  24. Server = https://ridgewireless.mm.fcix.net/manjaro/stable/$repo/$arch
  25. Server = https://codingflyboy.mm.fcix.net/manjaro/stable/$repo/$arch
  26. Server = https://mirrors.sonic.net/manjaro/stable/$repo/$arch
  27. Server = https://repo.ialab.dsu.edu/manjaro/stable/$repo/$arch
  28. Server = https://volico.mm.fcix.net/manjaro/stable/$repo/$arch
  29. Server = https://forksystems.mm.fcix.net/manjaro/stable/$repo/$arch
  30. Server = https://mnvoip.mm.fcix.net/manjaro/stable/$repo/$arch
  31. Server = https://coresite.mm.fcix.net/manjaro/stable/$repo/$arch
  32. Server = https://uvermont.mm.fcix.net/manjaro/stable/$repo/$arch
  33. Server = https://ohioix.mm.fcix.net/manjaro/stable/$repo/$arch
  34. Server = https://southfront.mm.fcix.net/manjaro/stable/$repo/$arch
  35. Server = https://nnenix.mm.fcix.net/manjaro/stable/$repo/$arch
  36. Server = https://mirror.math.princeton.edu/pub/manjaro/stable/$repo/$arch
  37. Server = https://nocix.mm.fcix.net/manjaro/stable/$repo/$arch
  38. Server = https://mirrors.gigenet.com/manjaro/stable/$repo/$arch
  39. Server = https://ask4.mm.fcix.net/manjaro/stable/$repo/$arch
  40. Run sudo git clone ${BRANCH:+--branch ${BRANCH}} --depth 1 ${REPO} iso-profiles
  41. sudo git clone ${BRANCH:+--branch ${BRANCH}} --depth 1 ${REPO} iso-profiles
  42. shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  43. env:
  44. REPO: https://github.com/talesam/iso-profiles
  45. BRANCH:
  46. Cloning into 'iso-profiles'...
  47. Run ## BigLinux Pre Config Build ISO
  48. ## BigLinux Pre Config Build ISO
  49. echo "## BigLinux Pre Config Build ISO ##"
  50. #MESA
  51. # if [ "$KERNEL" = "oldLts" -a $EDITION != "xivastudio" ]; then
  52. # echo '
  53. # mesa-amber
  54. # lib32-mesa-amber' | sudo tee -a iso-profiles/biglinux/$EDITION/Packages-Root
  55. if [ "$KERNEL" = "latest" -o "$KERNEL" = "xanmod" ]; then
  56. echo '
  57. mesa-tkg-stable
  58. lib32-mesa-tkg-stable' | sudo tee -a iso-profiles/biglinux/$EDITION/Packages-Root
  59. sudo sed -i '/libva-mesa/d' iso-profiles/biglinux/$EDITION/Packages-Desktop
  60. sudo sed -i '/libva-mesa/d' iso-profiles/biglinux/$EDITION/Packages-Mhwd
  61. sudo sed -i '/vulkan-swrast/d' iso-profiles/biglinux/$EDITION/Packages-Desktop
  62. fi
  63. #KERNEL
  64. if [ "$KERNEL" = "oldLts" ];then
  65. oldLts=$(curl -s https://www.kernel.org/feeds/kdist.xml | grep ": longterm" | sed 's/^.*<title>//' | sed 's/<\/title>.*$//' | cut -d ":" -f1 | rev | cut -d "." -f2,3 | rev | head -n2 | sed 's/\.//g' | tail -n1)
  66. KERNEL=$oldLts
  67. elif [ "$KERNEL" = "atualLts" ];then
  68. atualLts=$(curl -s https://www.kernel.org/feeds/kdist.xml | grep ": longterm" | sed 's/^.*<title>//' | sed 's/<\/title>.*$//' | cut -d ":" -f1 | rev | cut -d "." -f2,3 | rev | head -n1 | sed 's/\.//g')
  69. KERNEL=$atualLts
  70. elif [ "$KERNEL" = "latest" ];then
  71. # kernelVer=62
  72. # kernelVer=$(pacman -Sl | grep linux[0-9] | grep core | grep -vE "rc|headers" | sort | tail -n1 | cut -d " " -f2 | sed 's/linux//')
  73. kernelVer=$(curl -s https://raw.githubusercontent.com/biglinux/linux-latest/stable/PKGBUILD | awk -F= '/kernelver=/{print $2}')
  74. echo "linux-latest" | sudo tee -a iso-profiles/biglinux/$EDITION/Packages-Root
  75. KERNEL=$kernelVer
  76. elif [ -n "$(echo $KERNEL | grep xanmod)" ];then
  77. echo '
  78. linux-firmware' | sudo tee -a iso-profiles/biglinux/$EDITION/Packages-Root
  79. KERNEL=-${KERNEL}
  80. fi
  81. # Stable
  82. if [ "$BIGBRANCH" = "stable" ];then
  83. echo "BUILD_RELEASE=2023-12-25_17-39" | cut -d "_" -f1 | sudo tee -a iso-profiles/biglinux/$EDITION/root-overlay/etc/big-release
  84. fi
  85. # Beta
  86. if [ "$BIGBRANCH" = "beta" ];then
  87. echo "BUILD_RELEASE=2023-12-25_17-39" | sudo tee -a iso-profiles/biglinux/$EDITION/root-overlay/etc/big-release
  88. fi
  89. # Testing/Unstable
  90. if [ "$BIGBRANCH" = "testing" ] || [ "$BIGBRANCH" = "unstable" ];then
  91. #add repo testing
  92. sudo sed -i '/\[biglinux-stable\]/{h;s/.*/\[biglinux-testing\]/;p;x;}' iso-profiles/biglinux/$EDITION/user-repos.conf
  93. sudo sed -i '/\[biglinux-stable\]/{h;s/.*/\[biglinux-testing\]/;p;x;}' iso-profiles/biglinux/$EDITION/live-overlay/etc/pacman.conf
  94. sudo sed -i '/\[biglinux-stable\]/{h;s/.*/\[biglinux-testing\]/;p;x;}' iso-profiles/biglinux/$EDITION/root-overlay/etc/pacman.conf
  95. sudo sed -i '/\[biglinux-stable\]/{h;s/.*/SigLevel = PackageRequired/;p;x;}' iso-profiles/biglinux/$EDITION/user-repos.conf
  96. sudo sed -i '/\[biglinux-stable\]/{h;s/.*/SigLevel = PackageRequired/;p;x;}' iso-profiles/biglinux/$EDITION/live-overlay/etc/pacman.conf
  97. sudo sed -i '/\[biglinux-stable\]/{h;s/.*/SigLevel = PackageRequired/;p;x;}' iso-profiles/biglinux/$EDITION/root-overlay/etc/pacman.conf
  98. sudo sed -i '/\[biglinux-stable\]/{h;s/.*/Server = https:\/\/repo.biglinux.com.br\/testing\/$arch/;p;x;}' iso-profiles/biglinux/$EDITION/user-repos.conf
  99. sudo sed -i '/\[biglinux-stable\]/{h;s/.*/Server = https:\/\/repo.biglinux.com.br\/testing\/$arch/;p;x;}' iso-profiles/biglinux/$EDITION/live-overlay/etc/pacman.conf
  100. sudo sed -i '/\[biglinux-stable\]/{h;s/.*/Server = https:\/\/repo.biglinux.com.br\/testing\/$arch/;p;x;}' iso-profiles/biglinux/$EDITION/root-overlay/etc/pacman.conf
  101. sudo sed -i '/\[biglinux-stable\]/{h;s/.*//;p;x;}' iso-profiles/biglinux/$EDITION/user-repos.conf
  102. sudo sed -i '/\[biglinux-stable\]/{h;s/.*//;p;x;}' iso-profiles/biglinux/$EDITION/live-overlay/etc/pacman.conf
  103. sudo sed -i '/\[biglinux-stable\]/{h;s/.*//;p;x;}' iso-profiles/biglinux/$EDITION/root-overlay/etc/pacman.conf
  104. echo "BUILD_RELEASE=2023-12-25_17-39" | sudo tee -a iso-profiles/biglinux/$EDITION/root-overlay/etc/big-release
  105. # Add kde-unstable repository if BIGBRANCH equals unstable
  106. if [ "$BIGBRANCH" = "unstable" ]; then
  107. sudo sed -i '/^\[extra\]$/i [kde-unstable]\nSigLevel = PackageRequired\nInclude = /etc/pacman.d/mirrorcdn\nInclude = /etc/pacman.d/mirrorlist\n' iso-profiles/biglinux/$EDITION/user-repos.conf
  108. sudo sed -i '/^\[extra\]$/i [kde-unstable]\nSigLevel = PackageRequired\nInclude = /etc/pacman.d/mirrorcdn\nInclude = /etc/pacman.d/mirrorlist\n' iso-profiles/biglinux/$EDITION/live-overlay/etc/pacman.conf
  109. sudo sed -i '/^\[extra\]$/i [kde-unstable]\nSigLevel = PackageRequired\nInclude = /etc/pacman.d/mirrorcdn\nInclude = /etc/pacman.d/mirrorlist\n' iso-profiles/biglinux/$EDITION/root-overlay/etc/pacman.conf
  110. fi
  111. fi
  112. #Build Release and Unix Time
  113. echo "BUILD_BRANCH=$BIGBRANCH" | sudo tee -a iso-profiles/biglinux/$EDITION/root-overlay/etc/big-release
  114. echo "UNIX_TIMESTAMP=$(( $(date +%s) / 86400 ))" | sudo tee -a iso-profiles/biglinux/$EDITION/root-overlay/etc/big-release
  115. #LABEL
  116. sudo sed -i "s/label=.*/label=biglinux_2023-12-25_17-39.iso/" iso-profiles/biglinux/$EDITION/profile.conf
  117. sudo rm -r iso-profiles/custom-profiles
  118. echo $KERNEL
  119. echo $EDITION
  120. echo $MANJAROBRANCH
  121. echo $BIGBRANCH
  122. echo $MESA
  123. sudo buildiso ${SCOPE:+-f} -p $EDITION -b $MANJAROBRANCH -k linux${KERNEL} ${OFFICE:+-o}
  124. if [ -n "$(echo $KERNEL | grep xanmod)" ];then
  125. KERNEL=$(echo ${KERNEL} | sed 's/-//')
  126. fi
  127. sudo rm -Rf /var/lib/manjaro-tools/buildiso/*
  128. OUTPUT_ISO_PATH=$(find /var/cache/manjaro-tools/iso -type f -name "*.iso" -exec stat -c '%Y %n' {} \; | sort -nr | awk 'NR==1 {print $2}')
  129. #Kernel Name
  130. if [ "$KERNEL" != "xanmod" ];then
  131. KERNEL=k${KERNEL}
  132. elif [ "$KERNEL" = "xanmod" ];then
  133. xanVer=$(grep linux-xanmod $(find /var/cache/manjaro-tools/iso -type f -name "*-pkgs.txt" -exec stat -c '%Y %n' {} \; | sort -nr | awk 'NR==1 {print $2}') | grep -v headers | cut -d " " -f2 | cut -d "-" -f1 | sed ':a;$!{N;ba;};s/\(.*\)\..*/\1/' | sed 's/\.//')
  134. KERNEL=$(echo ${KERNEL} | sed 's/-//')${xanVer}
  135. fi
  136. #renome ISO
  137. # Renomear ISO
  138. if [ "$MANJAROBRANCH" = "stable" ] && [ "$BIGBRANCH" = "stable" ]; then
  139. TARGET_ISO_PATH=${NAME}_STABLE_${EDITION}_$(echo 2023-12-25_17-39 | cut -d "_" -f1 )_${KERNEL}.iso
  140. elif [ "$MANJAROBRANCH" = "stable" ] && [ "$BIGBRANCH" = "testing" ]; then
  141. TARGET_ISO_PATH=${NAME}_RC_${EDITION}_$(echo 2023-12-25_17-39 | cut -d "_" -f1 )_${KERNEL}.iso
  142. elif [ "$MANJAROBRANCH" = "testing" ] && [ "$BIGBRANCH" = "stable" ]; then
  143. TARGET_ISO_PATH=${NAME}_BETA_${EDITION}_$(echo 2023-12-25_17-39 | cut -d "_" -f1 )_${KERNEL}.iso
  144. elif [ "$MANJAROBRANCH" = "testing" ] && [ "$BIGBRANCH" = "testing" ]; then
  145. TARGET_ISO_PATH=${NAME}_BETA_${EDITION}_$(echo 2023-12-25_17-39 | cut -d "_" -f1 )_${KERNEL}.iso
  146. elif [ "$MANJAROBRANCH" = "unstable" ] && [ "$BIGBRANCH" = "stable" ]; then
  147. TARGET_ISO_PATH=${NAME}_DEVELOPMENT_${EDITION}_$(echo 2023-12-25_17-39 | cut -d "_" -f1 )_${KERNEL}.iso
  148. elif [ "$MANJAROBRANCH" = "unstable" ] && [ "$BIGBRANCH" = "testing" ]; then
  149. TARGET_ISO_PATH=${NAME}_DEVELOPMENT_${EDITION}_$(echo 2023-12-25_17-39 | cut -d "_" -f1 )_${KERNEL}.iso
  150. fi
  151. sudo mv $OUTPUT_ISO_PATH ./$TARGET_ISO_PATH
  152. # echo "::set-output name=file-path::$TARGET_ISO_PATH"
  153. echo "file-path=$TARGET_ISO_PATH" >> $GITHUB_OUTPUT
  154. FILE_PKG=$(find /var/cache/manjaro-tools/iso -type f -name "*-pkgs.txt" -exec stat -c '%Y %n' {} \; | sort -nr | awk 'NR==1 {print $2}')
  155. sudo mv $FILE_PKG ./${TARGET_ISO_PATH}.pkgs
  156. sudo rm -r iso-profiles
  157. ls -lh
  158. echo
  159. shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  160. env:
  161. NAME: biglinux
  162. EDITION: kde-unstable
  163. MANJAROBRANCH: unstable
  164. BIGBRANCH: testing
  165. SCOPE: full
  166. KERNEL: latest
  167. OFFICE:
  168. MESA:
  169. EXTRAREPO:
  170. ## BigLinux Pre Config Build ISO ##
  171. mesa-tkg-stable
  172. lib32-mesa-tkg-stable
  173. linux-latest
  174. BUILD_RELEASE=2023-12-25_17-39
  175. BUILD_BRANCH=testing
  176. UNIX_TIMESTAMP=19716
  177. 66
  178. kde-unstable
  179. unstable
  180. testing
  181. --> Profile: [kde-unstable]
  182. --> detected: user-repos.conf
  183. -> parsing repo [biglinux-update-stable] ...
  184. -> parsing repo [biglinux-testing] ...
  185. -> parsing repo [biglinux-stable] ...
  186. ==> Start building [kde-unstable]
  187. ==> Cleaning up ...
  188. -> Deleting isoroot [iso] ...
  189. --> Loading Packages: [Packages-Root] ...
  190. ==> Prepare [Base installation] (rootfs)
  191. --> mirror: https://mirror.easyname.at/manjaro/unstable/$repo/$arch
  192. ==> Creating install root at /var/lib/manjaro-tools/buildiso/kde-unstable/x86_64/rootfs
  193. -> Installing packages to /var/lib/manjaro-tools/buildiso/kde-unstable/x86_64/rootfs
  194. error: config file /etc/pacman.d/mirrorcdn could not be read: No such file or directory
  195. ==> ERROR: Failed to install packages to new root
  196. ==> ERROR: Failed to install all packages
  197. Error: Process completed with exit code 255.

comments powered by Disqus