fix
This commit is contained in:
parent
23a90cec83
commit
497eb3dd7b
33
build.zsh
33
build.zsh
@ -1,17 +1,18 @@
|
|||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
git clone https://gitlab.archlinux.org/archlinux/archiso
|
pacman -Syuu --noconfirm base-devel archiso docker git
|
||||||
cp -rf ./cfg/profiledef.sh /usr/share/archiso/configs/releng/
|
git clone https://gitlab.archlinux.org/archlinux/archiso
|
||||||
cp -rf ./cfg/profiledef.sh ./archiso/configs/releng/profiledef.sh
|
cp -rf ./cfg/profiledef.sh /usr/share/archiso/configs/releng/
|
||||||
cp -rf ./cfg/profiledef.sh ./archiso/configs/baseline/profiledef.sh
|
cp -rf ./cfg/profiledef.sh ./archiso/configs/releng/profiledef.sh
|
||||||
cp -rf ./scpt/mkarchiso ./archiso/archiso/mkarchiso
|
cp -rf ./cfg/profiledef.sh ./archiso/configs/baseline/profiledef.sh
|
||||||
./archiso/archiso/mkarchiso -v -o ./ ./archiso/configs/releng
|
cp -rf ./scpt/mkarchiso ./archiso/archiso/mkarchiso
|
||||||
tar xf ./aios-bootstrap*.tar.gz
|
./archiso/archiso/mkarchiso -v -o ./ ./archiso/configs/releng/
|
||||||
echo -e 'Server = http://mirrors.cat.net/archlinux/$repo/os/$arch\nServer = https://geo.mirror.pkgbuild.com/$repo/os/$arch' >> ./root.x86_64/etc/pacman.d/mirrorlist
|
tar xf aios-bootstrap*.tar.gz
|
||||||
sed -i s/CheckSpace/#CheckeSpace/ root.x86_64/etc/pacman.conf
|
echo -e 'Server = http://mirrors.cat.net/archlinux/$repo/os/$arch
|
||||||
arch-chroot root.x86_64 /bin/sh -c 'pacman-key --init'
|
Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch' >> ./root.x86_64/etc/pacman.d/mirrorlist
|
||||||
arch-chroot root.x86_64 /bin/sh -c 'pacman-key --populate archlinux'
|
sed -i s/CheckSpace/#CheckeSpace/ root.x86_64/etc/pacman.conf
|
||||||
arch-chroot root.x86_64 /bin/sh -c 'pacman -Syu --noconfirm base base-devel linux vim git zsh rust openssh openssl jq'
|
arch-chroot root.x86_64 /bin/sh -c 'pacman-key --init'
|
||||||
arch-chroot root.x86_64 /bin/sh -c 'chsh -s /bin/zsh'
|
arch-chroot root.x86_64 /bin/sh -c 'pacman-key --populate archlinux'
|
||||||
arch-chroot root.x86_64 /bin/sh -c 'git clone https://git.syui.ai/ai/bot && cd bot && cargo build && cp -rf ./target/debug/ai /bin/ && ai ai'
|
arch-chroot root.x86_64 /bin/sh -c 'pacman -Syu --noconfirm base base-devel linux vim git zsh rust openssh openssl jq'
|
||||||
tar -C ./root.x86_64 -c . | docker import - syui/aios
|
arch-chroot root.x86_64 /bin/sh -c 'chsh -s /bin/zsh'
|
||||||
tar -zcvf aios-bootstrap.tar.gz root.x86_64/
|
arch-chroot root.x86_64 /bin/sh -c 'git clone https://git.syui.ai/ai/bot && cd bot && cargo build && cp -rf ./target/debug/ai /bin/ && ai ai'
|
||||||
|
tar -zcvf aios-bootstrap.tar.gz root.x86_64/
|
||||||
|
@ -66,3 +66,6 @@ yml_b=`cat $dd/cfg/build.sh`
|
|||||||
echo $yml_a
|
echo $yml_a
|
||||||
echo $yml_b
|
echo $yml_b
|
||||||
echo $yml_c
|
echo $yml_c
|
||||||
|
|
||||||
|
echo '#!/bin/zsh' >! $dd/build.zsh
|
||||||
|
echo $yml_b >> $dd/build.zsh
|
||||||
|
Loading…
Reference in New Issue
Block a user