DO 把 Arch 砍了,也没法上传镜像,I’m angry!

然后呢,有个猛男写了个脚本来安装,也是真实的不行.

让我们开始吧.这里是 REPO 的地址

请先创建一个 Debian 8 的 Droplet.然后执行以下命令,没了. PS:作者表示 Debian 8 不需要 kexec hack,所以很简单

wget https://raw.githubusercontent.com/gh2o/digitalocean-debian-to-arch/debian8/install.sh && bash install.sh

没了.

什么你还在看?好吧.事实上我们不只可以用这个方法安装 Arch Linux,理论上所有提供 Bootstrap/Stage 3 的系统.

根据作者的的解释,我们可以装个 Gentoo.

首先分 2 个区,OSROOT,用来存 rootfs,BIOSBOOT,用来当 /boot 分区.

当然先分区这是不可能的…所以先要创建一个工作文件夹,随便你叫就行,里面放置的就是 OSROOT.

然后我们把 Stage 3 解压到 OSROOT 里面,chroot 进去 安装必要的包,内核,进行必要配置.

#先挂载分区 Chroot 进去
emerge-websync
eselect profile list
eselect profile set      //这里选择 Systemd 的.
emerge -a gentoo-sources genkernel-next grub
genkernel all
emerge -auvND @world
passwd root  

接触挂载之后我们直接切换 init 过去.

systemctl switch-root /gentoo /init    //注意名字

然后现在把分区分好,原本的分区先缩小.

blockdev --rereadpt /dev/vda

安装 grub

grub2-install /dev/vda
grub2-mkconfig -o /boot/grub/grub.cfg

请重启.

然后就能 rsync 过来了.

rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /gentoo

DO 服务懒得弄(你没救了


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.