This commit is contained in:
parent
c080d87f68
commit
b9f8687168
2 changed files with 4 additions and 10 deletions
|
@ -3,7 +3,7 @@ type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Update repo
|
- name: Build iso
|
||||||
image: archlinux
|
image: archlinux
|
||||||
privileged: true
|
privileged: true
|
||||||
commands:
|
commands:
|
||||||
|
|
12
build.sh
12
build.sh
|
@ -1,16 +1,11 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
set -euxo pipefail
|
||||||
#echo '
|
|
||||||
#[askiiart]
|
|
||||||
#SigLevel = Optional
|
|
||||||
#Server = https://askiiart.net/repos/archlinux/$arch' >> /etc/pacman.conf
|
|
||||||
|
|
||||||
pacman -Sy archiso git grub --noconfirm
|
pacman -Sy archiso git grub --noconfirm
|
||||||
git clone https://git.blendos.co/blendOS/image-builder.git
|
git clone https://git.blendos.co/blendOS/image-builder.git
|
||||||
cd ./image-builder/
|
cd ./image-builder/
|
||||||
sed -i 's/https:\/\/pkg-repo\.blendos\.co/https:\/\/askiiart.net\/repos\/archlinux\/$arch\nSigLevel = Optional/g' ./pacman.conf
|
sed -i 's/https:\/\/pkg-repo\.blendos\.co/https:\/\/askiiart.net\/repos\/blendos\/$arch\nSigLevel = Optional/g' ./pacman.conf
|
||||||
sed -i 's/https:\/\/pkg-repo\.blendos\.co/https:\/\/askiiart.net\/repos\/archlinux\/$arch\nSigLevel = Optional/g' ./airootfs/etc/pacman.conf
|
sed -i 's/https:\/\/pkg-repo\.blendos\.co/https:\/\/askiiart.net\/repos\/blendos\/$arch\nSigLevel = Optional/g' ./airootfs/etc/pacman.conf
|
||||||
sed -i 's/e2fsprogs/e2fsprogs\nefibootmgr/g' ./packages.x86_64
|
|
||||||
|
|
||||||
mkarchiso -v -w workdir/ -o out/ .
|
mkarchiso -v -w workdir/ -o out/ .
|
||||||
|
|
||||||
|
@ -23,7 +18,6 @@ cp -r $filename /iso/$date/
|
||||||
|
|
||||||
cd /iso/
|
cd /iso/
|
||||||
num=$(find . -mindepth 1 -maxdepth 1 -name 'blendOS-*' -type d | wc -l)
|
num=$(find . -mindepth 1 -maxdepth 1 -name 'blendOS-*' -type d | wc -l)
|
||||||
echo $num
|
|
||||||
if [ $(($num - 3)) -ge 1 ]; then
|
if [ $(($num - 3)) -ge 1 ]; then
|
||||||
rm -rf $(find . -mindepth 1 -maxdepth 1 -type d | sort | tail -n $(($num - 3)))
|
rm -rf $(find . -mindepth 1 -maxdepth 1 -type d | sort | tail -n $(($num - 3)))
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue