2024-02-08 10:04:26 +00:00
|
|
|
## ai `os`
|
|
|
|
|
2024-02-08 10:04:45 +00:00
|
|
|
<img src="./icon/ai.png" width="100">
|
|
|
|
|
2024-02-08 10:04:26 +00:00
|
|
|
- name : ai os
|
2024-02-08 10:04:45 +00:00
|
|
|
- base : [archlinux](https://gitlab.archlinux.org/archlinux)
|
|
|
|
|
|
|
|
### docker
|
|
|
|
|
|
|
|
```sh
|
|
|
|
$ docker run --rm syui/aios ai ai -t os
|
|
|
|
```
|
|
|
|
|
|
|
|
### archiso
|
|
|
|
|
|
|
|
- [profile.rst](https://gitlab.archlinux.org/archlinux/archiso/-/blob/master/docs/README.profile.rst)
|
|
|
|
|
|
|
|
```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
|
|
|
|
```
|
|
|
|
|
|
|
|
### system
|
|
|
|
|
|
|
|
> ./archiso/configs/releng/profiledef.sh
|
2024-02-08 10:04:26 +00:00
|
|
|
|
2024-02-08 10:04:45 +00:00
|
|
|
```sh
|
|
|
|
buildmodes=('bootstrap')
|
|
|
|
```
|
2024-02-08 10:04:26 +00:00
|
|
|
|
2024-02-08 10:04:45 +00:00
|
|
|
```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 - syui/aios
|
|
|
|
$ docker images
|
2024-02-08 10:04:26 +00:00
|
|
|
|
2024-02-08 10:04:45 +00:00
|
|
|
$ docker run --rm syui/aios cargo version
|
|
|
|
cargo 1.75.0
|
|
|
|
```
|