debootstrap
是一個(gè)可以快速獲得基本 Debian 系統(tǒng)的一個(gè)工具
可以利用它來定制生成debian根文件系統(tǒng)
sudo apt install debootstrap #安裝命令
sudo mkdir /mnt/root #指定生成文件系統(tǒng)的目錄
#安裝命令
sudo debootstrap --arch=i386 --include=systemd,systemd-coredump,makedev,locales,vim,openssh-server,bash-completion bullseye /mnt/root https://mirrors.tuna.tsinghua.edu.cn/debian/
- --arch=i386 獲取32位文件系統(tǒng)
- bullseye debian11的系統(tǒng)代號(hào)
- --include 定制文件系統(tǒng)所包含的軟件包
- 最后鏈接是從清華源獲取軟件包, 在國內(nèi)速度快很多