机器:x86 arch Linux vmware 17虚拟机
官方文档:https://wiki.fydetabduo.com/os-release-board/ArchLinux/arch-compile
安装环境
sudo pacman -Sy --noconfirm --needed python parted btrfs-progs git wget arch-install-scripts gptfdisk dosfstools multipath-tools
sudo pacman -Sy rsync base-devel python-pipenv pre-commit
sudo pacman -S --noconfirm qemu-user-static qemu-user-static-binfmt
debian specific
#安装yay
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
yay -S --noconfirm --needed mmdebstrap debian-archive-keyring perl arch-test-bin pod2man
重启binfmt
sudo systemctl restart systemd-binfmt
构建imageforce包
官方文档中的imageforce包404,这里自己构建
git clone https://github.com/Linux-for-Fydetab-Duo/imageforge
cd imageforge/
pre-commit install
makepkg -si
构建镜像
git clone https://github.com/Linux-for-Fydetab-Duo/images.git
cd images/
#arch
sudo ./fydetab-arch/profiledef -c fydetab-arch -w ./work -o ./out
#debian
sudo ./fydetab-debian/profiledef -c ./fydetab-debian -w ./work -o ./out
构建完成截图Arch
构建完成截图debian
刷机可以参考:Fydetab Duo写入Arch Linux/Debian Linux记录
视频参考:https://www.bilibili.com/video/BV1ghwLeRE35/