Compare commits
6 Commits
main
...
6956433169
Author | SHA1 | Date | |
---|---|---|---|
6956433169
|
|||
41bc4f13ca
|
|||
1bad33b6f2
|
|||
36789ddd3c
|
|||
28dcd9cb69
|
|||
ad23cc929b
|
@@ -1,6 +1,5 @@
|
|||||||
# https://github.com/containers/shortnames
|
# https://github.com/containers/shortnames
|
||||||
# ~/.config/containers/registries.conf.d/ai.conf
|
unqualified-search-registries=["git.syui.ai", "docker.io"]
|
||||||
unqualified-search-registries=["git.syui.ai", "docker.io", "ghcr.io"]
|
|
||||||
|
|
||||||
[aliases]
|
[aliases]
|
||||||
"aios"="git.syui.ai/ai/os"
|
"aios"="git.syui.ai/ai/os"
|
||||||
|
@@ -57,11 +57,13 @@ $ docker run -it ghcr.io/syui/aios ai
|
|||||||
if [ ! -d ~/ai/os/.git ];then
|
if [ ! -d ~/ai/os/.git ];then
|
||||||
mkdir -p ~/ai
|
mkdir -p ~/ai
|
||||||
git clone https://git.syui.ai/ai/os ~/ai/os
|
git clone https://git.syui.ai/ai/os ~/ai/os
|
||||||
|
else
|
||||||
|
cd ~/ai/os
|
||||||
fi
|
fi
|
||||||
if [ ! -d ~/.config/containers/registries.conf.d ];then
|
if [ ! -d ~/.config/containers/registries.conf.d ];then
|
||||||
mkdir -p ~/.config/containers/registries.conf.d
|
mkdir -p ~/.config/containers/registries.conf.d
|
||||||
fi
|
fi
|
||||||
ln -s ~/ai/os/.config/containers/registries.conf.d/ai.conf ~/.config/containers/registries.conf.d/ai.conf
|
ln -s `pwd`/.config/containers/registries.conf.d/ai.conf ~/.config/containers/registries.conf.d/ai.conf
|
||||||
```
|
```
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
@@ -1,6 +1,4 @@
|
|||||||
# https://github.com/containers/shortnames
|
unqualified-search-registries = ['docker.io', 'git.syui.ai', 'ghcr.io']
|
||||||
# ~/.config/containers/registries.conf.d/ai.conf
|
|
||||||
unqualified-search-registries = ['git.syui.ai', 'docker.io', 'ghcr.io']
|
|
||||||
|
|
||||||
[aliases]
|
[aliases]
|
||||||
"aios" = "git.syui.ai/ai/os"
|
"aios" = "git.syui.ai/ai/os"
|
||||||
|
@@ -1,9 +0,0 @@
|
|||||||
#!/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/ .
|
|
@@ -1,44 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# 変数定義
|
|
||||||
DISK="/dev/sda"
|
|
||||||
HOSTNAME="ai-arch"
|
|
||||||
USERNAME="ai"
|
|
||||||
|
|
||||||
# パーティション作成(自動)
|
|
||||||
parted $DISK mklabel gpt
|
|
||||||
parted $DISK mkpart ESP fat32 1MiB 1GiB
|
|
||||||
parted $DISK set 1 esp on
|
|
||||||
parted $DISK mkpart primary linux-swap 1GiB 5GiB
|
|
||||||
parted $DISK mkpart primary ext4 5GiB 100%
|
|
||||||
|
|
||||||
# ファイルシステム作成
|
|
||||||
mkfs.fat -F32 ${DISK}1
|
|
||||||
mkswap ${DISK}2
|
|
||||||
mkfs.ext4 ${DISK}3
|
|
||||||
|
|
||||||
# マウント
|
|
||||||
mount ${DISK}3 /mnt
|
|
||||||
mkdir -p /mnt/boot
|
|
||||||
mount ${DISK}1 /mnt/boot
|
|
||||||
swapon ${DISK}2
|
|
||||||
|
|
||||||
# インストール
|
|
||||||
pacstrap -K /mnt base linux linux-firmware base-devel vim networkmanager grub efibootmgr
|
|
||||||
|
|
||||||
# 設定
|
|
||||||
genfstab -U /mnt >> /mnt/etc/fstab
|
|
||||||
|
|
||||||
arch-chroot /mnt /bin/bash << EOF
|
|
||||||
ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
|
|
||||||
hwclock --systohc
|
|
||||||
echo "ja_JP.UTF-8 UTF-8" >> /etc/locale.gen
|
|
||||||
locale-gen
|
|
||||||
echo "LANG=ja_JP.UTF-8" > /etc/locale.conf
|
|
||||||
echo "$HOSTNAME" > /etc/hostname
|
|
||||||
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=ARCH
|
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg
|
|
||||||
systemctl enable NetworkManager
|
|
||||||
useradd -m -G wheel $USERNAME
|
|
||||||
EOF
|
|
Reference in New Issue
Block a user