-
Notifications
You must be signed in to change notification settings - Fork 19.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meson: auto-repartition for EMMC (#11679)
- Loading branch information
Showing
4 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Put your custom commands here that should be executed once | ||
# the system init finished. By default this file does nothing. | ||
|
||
bash /root/resize.sh | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
parted /dev/mmcblk1 resizepart 2 100% | ||
losetup /dev/loop0 /dev/mmcblk1p2 | ||
resize2fs -f /dev/loop0 | ||
echo "# Put your custom commands here that should be executed once | ||
# the system init finished. By default this file does nothing. | ||
exit 0">/etc/rc.local | ||
rm -rf /root/resize.sh && reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f3df2a6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不建议这样 这样做rclocal里一直都有这条命令 建议echo掉
最好的方法是吧脚本 放在uci_default文件夹 这样运行一次即可
另外你的depends应该也要加上bash吧
脚本是用的我这里的吧 https://github.com/lunatickochiya/Lunatic-s805-rockchip-Action/blob/master/package/kochiya/autoset/files/resize.sh
f3df2a6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uci-defaults +1
f3df2a6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是否扩容,应该交给用户决定吧