add scpt
Some checks failed
build and push image / Release (push) Failing after 1m43s

This commit is contained in:
2025-08-10 07:56:31 +09:00
parent ccd4aab9af
commit 94d16d9a21
2 changed files with 53 additions and 0 deletions

9
scpt/img.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
pacman -Syuu --noconfirm git base-devel archiso
git clone https://gitlab.archlinux.org/archlinux/archiso
./archiso/archiso/mkarchiso -v -o ./ ./archiso/configs/releng/
mkdir -p work/x86_64/airootfs/var/lib/machines/arch
pacstrap -c work/x86_64/airootfs/var/lib/machines/arch base
arch-chroot work/x86_64/airootfs/ /bin/sh -c 'pacman-key --init'
arch-chroot work/x86_64/airootfs/ /bin/sh -c 'pacman-key --populate archlinux'
tar -zcvf archlinux.tar.gz -C work/x86_64/airootfs/ .