制作openeuler的livecd
下载该项目,执行下面的操作gitee openeuler livecd项目
基于openeuler环境
#安装工具,第一次可能报错,可以再执行一次
make install
x86
livecd-creator -d -v --config=./config/euler_x86_64.ks --fslabel=euler-LiveCD --cache=cache --logfile=./livecd.log
arm64真实环境
livecd-creator -d -v --config=./config/euler_aarch6464.ks --fslabel=euler-LiveCD --cache=cache --logfile=./livecd.log
x86环境制作arm64镜像
采用qemu+chroot的方式在x86环境制作arm镜像;可以自行修改ks文件,默认账号密码:root/123
mkdir -p /home/livecd/chroot
cd /home/livecd
git clone https://gitee.com/luoguangfei/openeuler-livecd-tools.git
rpm -ivh openeuler-livecd-tools/tools/*.rpm
cp -rf openeuler-livecd-tools chroot/home/livecd/
pushd openeuler-livecd-tools
chroot chroot bash -c "cd /home/livecd/openeuler-livecd-tools && make install"
popd
yum groups -y --forcearch aarch64 --installroot=/home/livecd/chroot install "Development Tools"
yum groups -y --forcearch aarch64 --installroot=/home/livecd/chroot install "Minimal Install"
mkdir -p chroot/proc
mkdir -p chroot/sys
mkdir -p chroot/dev
mkdir -p chroot/run
mount -t proc proc chroot/proc
mount -t sysfs sysfs chroot/sys
mount -t devtmpfs udev chroot/dev
mount --bind /run chroot/run
cp /etc/resolv.conf chroot/etc/
chroot chroot bash -c "mkdir -p /home/livecd && cd /home/livecd/openeuler-livecd-tools && make install && cd .. && livecd-creator -d -v --config=openeuler-livecd-tools/config/euler_aarch64.ks --fslabel=euler-LiveCD --cache=cache-aarch64 --logfile=./livecd.log"