# 使用root用户时报错:
# you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
#解决:
echo "export FORCE_UNSAFE_CONFIGURE=1" >>/etc/profile
source /etc/profile
if command -v qemu-img; then qemu-img convert -f raw -O vmdk /root/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.vmdk /root/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.vmdk.new; mv /root/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.vmdk.new /root/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-squashfs-combined.vmdk; else echo "WARNING: Install qemu-img to create VDI/VMDK images" >&2; exit 1; fi
WARNING: Install qemu-img to create VDI/VMDK images
# 转 VDI/VMDK 时报错
# 解决:
sudo apt install qemu-utils
# 完了继续编译