# openkylin-rootfs **Repository Path**: fensl/openkylin-rootfs ## Basic Information - **Project Name**: openkylin-rootfs - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2024-08-03 - **Last Updated**: 2024-08-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 介绍 使用 Multistrap 工具制作根文件系统,Multistrap是一个工具,可以用来构建一个完整的、可启动的、根文件系统。这个根文件系统可以被 Docker 和 WSL 使用。 # 使用 1. cd到相应文件夹 2. xxxx.multistrap 是配置文件。 3. 执行 `sudo bash build.sh`,等待构建完成。 4. 构建完成后,2.0的脚本会自动打包,1.0的请执行 `sudo tar -czvf yangtze-rootfs.tar.gz -C yangtze-rootfs .`,将根文件系统打包。 # 注意事项 1. 如遇到类似如下报错: ``` No diversion 'diversion of /bin/sh by dash', none removed. This should never be reached dpkg: error processing dash (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: dash ``` 请执行 `sudo rm-rf xxxx-rootfs/var/lib/dpkg/info/yyyy*`,其中xxxx是你构建的分支名(比如nile),yyyy是出错的包名(比如dash),然后重新执行 `sudo bash build.sh`构建。 # 声明 参考 deepin-docker 制作 [deepin-docker](https://github.com/BLumia/deepin-docker)