1
0
Fork 0

Resize root fily system at every startup

This commit is contained in:
Braiden Vasco 2017-07-03 10:42:07 +00:00
parent 4c1b1273e9
commit 7e821b3740

View file

@ -156,6 +156,8 @@ mount --bind /dev/pts "$ROOTFS_DIR/dev/pts"
mount -t proc /proc "$ROOTFS_DIR/proc" mount -t proc /proc "$ROOTFS_DIR/proc"
mount --bind /sys "$ROOTFS_DIR/sys" 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/sources.list "$ROOTFS_DIR/etc/apt/"
install -m 644 files/raspi.list "$ROOTFS_DIR/etc/apt/sources.list.d/" install -m 644 files/raspi.list "$ROOTFS_DIR/etc/apt/sources.list.d/"