Skip to content

Instantly share code, notes, and snippets.

@eddywebs
Created April 24, 2016 02:03
Show Gist options
  • Save eddywebs/e05af8b11f560e8ef0ec173cb7bfe995 to your computer and use it in GitHub Desktop.
Save eddywebs/e05af8b11f560e8ef0ec173cb7bfe995 to your computer and use it in GitHub Desktop.
auto expand rootfs on boot
sudo killall fbi >/dev/null 2>&1
dialog --infobox "\nWelcome to retro gaming console - First time boot ! hang tight - Resizing the filesystem ..." 5 60
sudo raspi-config nonint do_expand_rootfs >/dev/null 2>&1
sleep 2
dialog --infobox "\nDone. Rebooting now- ready to play in few moments..." 5 60
sudo rm -f /etc/profile.d/01-expand.sh
sleep 2
sudo reboot
@eddywebs
Copy link
Author

Add auto resize_fs() by adding file to /etc/profile.d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment