diff --git a/README.md b/README.md index 0989daf..f611fff 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,59 @@ ## ai `os` + + - name : ai os +- base : [archlinux](https://gitlab.archlinux.org/archlinux) -- base : [archlinux](https://gitlab.archlinux.org/archlinux/archlinux-docker) +```sh +$ pacman -S archiso +``` +```sh +$ git clone https://git.syui.ai/ai/os +$ cd os +$ git clone https://gitlab.archlinux.org/archlinux/archlinux-docker +$ git clone https://gitlab.archlinux.org/archlinux/archiso + +$ cp ./profiledef.sh ./archiso/configs/releng/profiledef.sh + +$ mkarchiso -v -o ./ ./archiso/configs/releng +``` + +- [profile.rst](https://gitlab.archlinux.org/archlinux/archiso/-/blob/master/docs/README.profile.rst) + +### docker + +```sh +$ docker pull syui/aios +``` + +```sh +$ docker run --rm syui/aios ai ai -t os +``` + +> archiso/configs/releng/profiledef.sh + +```sh +buildmodes=('bootstrap') +``` + +```sh +$ mkarchiso -v -o ./ ./archiso/configs/releng +$ tar xf aios-bootstrap*.tar.gz +$ 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 +$ sed -i s/CheckSpace/#CheckeSpace/ root.x86_64/etc/pacman.conf +$ arch-chroot ./root.86_64 +--- +$ pacman -S base base-devel linux vim git zsh rust +$ pacman-key --init +$ pacman-key --populate archlinux +$ exit +--- +$ tar -C root.86_64 -c . | docker import - aios +$ docker images + +$ docker run --rm aios cargo version +cargo 1.75.0 +``` diff --git a/archiso b/archiso new file mode 160000 index 0000000..1f65b69 --- /dev/null +++ b/archiso @@ -0,0 +1 @@ +Subproject commit 1f65b695d309d6089bdc2251bb4c9aa00bd11a51 diff --git a/archlinux-docker b/archlinux-docker new file mode 160000 index 0000000..98cd791 --- /dev/null +++ b/archlinux-docker @@ -0,0 +1 @@ +Subproject commit 98cd79111dd530447f491d547d14f3c38e227e46 diff --git a/icon/ai.png b/icon/ai.png new file mode 100644 index 0000000..d21dabe Binary files /dev/null and b/icon/ai.png differ diff --git a/icon/avatar.png b/icon/avatar.png new file mode 100644 index 0000000..f091ef1 Binary files /dev/null and b/icon/avatar.png differ diff --git a/icon/wall.png b/icon/wall.png new file mode 100644 index 0000000..8717aa8 Binary files /dev/null and b/icon/wall.png differ diff --git a/profiledef.sh b/profiledef.sh new file mode 100644 index 0000000..a401581 --- /dev/null +++ b/profiledef.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash +# shellcheck disable=SC2034 + +iso_name="aios" +iso_label="AI_$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y%m)" +iso_publisher="ai os " +iso_application="ai os Live/Rescue DVD" +iso_version="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)" +install_dir="ai" +buildmodes=('iso') +bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito' + 'uefi-ia32.grub.esp' 'uefi-x64.grub.esp' + 'uefi-ia32.grub.eltorito' 'uefi-x64.grub.eltorito') +arch="x86_64" +pacman_conf="pacman.conf" +airootfs_image_type="squashfs" +airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M' '-Xdict-size' '1M') +file_permissions=( + ["/etc/shadow"]="0:0:400" + ["/root"]="0:0:750" + ["/root/.automated_script.sh"]="0:0:755" + ["/root/.gnupg"]="0:0:700" + ["/usr/local/bin/choose-mirror"]="0:0:755" + ["/usr/local/bin/Installation_guide"]="0:0:755" + ["/usr/local/bin/livecd-sound"]="0:0:755" +)