From c478cdb609b5f9437f34dff35c0d61bbd72f0db6 Mon Sep 17 00:00:00 2001 From: antonmolodykh Date: Wed, 13 Dec 2017 18:20:47 +0600 Subject: [PATCH] Add auto-resize of disk on first boot --- docs/create_disk_image.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/create_disk_image.md b/docs/create_disk_image.md index 2c9f67ed..350c94c5 100644 --- a/docs/create_disk_image.md +++ b/docs/create_disk_image.md @@ -10,5 +10,9 @@ * Run the installer and install the production branch * Verify that everything works * Run `apt-get clean` + * Run `sudo wget -O /etc/init.d/resize2fs_once https://github.com/RPi-Distro/pi-gen/raw/dev/stage2/01-sys-tweaks/files/resize2fs_once` + * Run `sudo chmod +x /etc/init.d/resize2fs_once` + * Run `sudo systemctl enable resize2fs_once` + * Add `init=/usr/lib/raspi-config/init_resize.sh` in `/boot/cmdline.txt` * Shut down the system * Create the disk image