Skip to content

Commit f684eb3

Browse files
committed
Auto resize rootfs partition after boot up
1 parent 691c37c commit f684eb3

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

package/root/etc/original_rc.local

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh -e
2+
#
3+
# rc.local
4+
#
5+
# This script is executed at the end of each multiuser runlevel.
6+
# Make sure that the script will "exit 0" on success or any other
7+
# value on error.
8+
#
9+
# In order to enable or disable this script just change the execution
10+
# bits.
11+
#
12+
# By default this script does nothing.
13+
14+
exit 0

package/root/etc/rc.local

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh -e
2+
#
3+
# rc.local
4+
#
5+
# This script is executed at the end of each multiuser runlevel.
6+
# Make sure that the script will "exit 0" on success or any other
7+
# value on error.
8+
#
9+
# In order to enable or disable this script just change the execution
10+
# bits.
11+
#
12+
# By default this script does nothing.
13+
14+
/usr/local/sbin/pinebook_autoresize_rootfs.sh
15+
16+
exit 0
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh -e
2+
#
3+
# rc.local
4+
#
5+
#This script is executed to resize the rootfs and it is execured only once after boot up
6+
#
7+
8+
if [ -e /etc/original_rc.local ]; then
9+
/usr/local/sbin/resize_rootfs.sh
10+
mv /etc/original_rc.local /etc/rc.local
11+
fi
12+
13+
rm -f "$0"
14+
15+
exit 0

0 commit comments

Comments
 (0)