在N1的OpenWRT上安装centos环境
作者:
wangyeye | 来源:发表于
2019-10-05 08:16 被阅读0次
- 创建磁盘镜像
cd /mnt/data
dd if=/dev/zero of=centos.img bs=1M count=1024
mkfs.ext4 centos.img
mkdir /centos
mount centos.img /centos
- 安装centos
wget http://vault.centos.org/altarch/7.4.1708/isos/aarch64/CentOS-7-aarch64-rootfs-7.4.1708.tar.xz
xz -d CentOS-7-aarch64-rootfs-7.4.1708.tar.xz
tar -xvf CentOS-7-aarch64-rootfs-7.4.1708.tar -C /centos
- 进入centos环境
mount -o bind /dev /centos/dev
mount -o bind /dev/pts /centos/dev/pts
mount -o bind /proc /centos/proc
mount -o bind /sys /centos/sys
chroot /centos /bin/bash --login
- centos环境下
yum update
本文标题:在N1的OpenWRT上安装centos环境
本文链接:https://www.haomeiwen.com/subject/qcppuctx.html
网友评论