1 Star 3 Fork 2

eem/Deepin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
bootstrap.sh 769 Bytes
一键复制 编辑 原始数据 按行查看 历史
#! /bin/bash
[ ${USER} = root ] || {
cat << EOF
Use sudo to run as root!
EOF
exit 29
}
[ -d "$(dirname ${0%/[^/]*})/debootstrap.archives" ] && {
[ -d squashfs-root/var/cache/apt/archives ] || mkdir -p squashfs-root/var/cache/apt/archives
mount --bind "$(dirname ${0%/[^/]*})/debootstrap.archives" squashfs-root/var/cache/apt/archives
}
debootstrap --verbose --variant=minbase --components="main,contrib,non-free" apricot squashfs-root https://community-packages.deepin.com/deepin/
mountpoint -q squashfs-root/var/cache/apt/archives && umount squashfs-root/var/cache/apt/archives
[ -d "$(dirname ${0%/[^/]*})/squashfs-root" ] && rm -rf "$(dirname ${0%/[^/]*})/squashfs-root"
tar cvf - squashfs-root | tar xf - -C "$(dirname ${0%/[^/]*})"
rm -rf squashfs-root
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/de-eem/deepin.git
git@gitee.com:de-eem/deepin.git
de-eem
deepin
Deepin
master

搜索帮助