Commit a169eecc authored by fuyanbin's avatar fuyanbin
Browse files

fix: system 分区空间不足

1. 有些文件不需要拷贝;
2. e2fsck 强制执行方法改正
parent 1df097a2
......@@ -134,7 +134,7 @@ resize_system_image() {
qemu-img resize -f raw "$c_system_file" "$image_size"
loopdev=$(losetup -P -f --show "$c_system_file")
yes | e2fsck -f "$loopdev"
e2fsck -f -y "$loopdev"
resize2fs "$loopdev"
losetup -d "$loopdev"
}
......@@ -288,7 +288,7 @@ install_dianxin() {
cp -f "$build_dir/hugep-all.zip" "$system_path"/bin/hugep-all.zip
find ./services/ -type f ! -name "*.rc" ! -name "*.zip" -exec install -m 0777 -t "$system_path"/bin/ {} \;
find ./services/ -type f ! -name "*.rc" ! -name "*.zip" ! -name "hugep" ! -name "hugep-start.sh" -exec install -m 0777 -t "$system_path"/bin/ {} \;
for file in $(find ./services/ -type f ! -name "*.rc" ! -name "*.zip")
do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment