Skip to content

Commit

Permalink
Expand root filesystem at first boot
Browse files Browse the repository at this point in the history
Fix #26

It involves a double boot because a reboot is needed
to refresh the partition table.
  • Loading branch information
ggiamarchi committed Aug 10, 2016
1 parent 6011927 commit c5dfbff
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/ruggedpod/finish/files/etc/rc5.d/S00ExpandFilesystem
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

set -eux

raspi-config --expand-rootfs

rm -f /etc/rc5.d/S00ExpandFilesystem
reboot
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -ex

chmod +x /etc/rc5.d/S00ExpandFilesystem
2 changes: 2 additions & 0 deletions modules/ruggedpod/provision/files/etc/apt/sources.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
deb http://archive.raspbian.org/raspbian jessie main contrib non-free
deb http://archive.raspberrypi.org/debian jessie main
5 changes: 5 additions & 0 deletions modules/ruggedpod/provision/scripts/00-update-apt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -eux

apt-get update
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -eux

apt-get install -y --force-yes raspi-config

0 comments on commit c5dfbff

Please sign in to comment.