Resize root fily system at every startup
This commit is contained in:
parent
4c1b1273e9
commit
7e821b3740
1 changed files with 2 additions and 0 deletions
2
build.sh
2
build.sh
|
@ -156,6 +156,8 @@ mount --bind /dev/pts "$ROOTFS_DIR/dev/pts"
|
|||
mount -t proc /proc "$ROOTFS_DIR/proc"
|
||||
mount --bind /sys "$ROOTFS_DIR/sys"
|
||||
|
||||
echo 'resize2fs "$(findmnt / -o source -n)"' >> "$ROOTFS_DIR/rc.local"
|
||||
|
||||
install -m 644 files/sources.list "$ROOTFS_DIR/etc/apt/"
|
||||
install -m 644 files/raspi.list "$ROOTFS_DIR/etc/apt/sources.list.d/"
|
||||
|
||||
|
|
Reference in a new issue