2

I'm preparing an image for download based on Raspbian. I can resize the partition manually using raspi-config. However, I'd prefer this to be automatic during first boot (maybe with a timeout for cancelling if such is possible).

Apparently BerryBoot is able to do this automatically- would appreciate a hint how this is done.

1

1 Answer 1

0
  1. make yourself a script that deletes or disables itself after first run (init for background or .profile for foreground)
grep -v custom_script.sh ~/.profile > ~/.profile.new && mv ~/.profile.new ~/.profile
  1. extract the bits you want from raspi-config (line 36 to to 116)
> file $(which raspi-config)
/usr/bin/raspi-config: POSIX shell script, ASCII text executable
2
  • Could you elaborate how the script would disable/delete itself?
    – andig
    Commented Feb 27, 2015 at 7:36
  • @andig elaboration added Commented Feb 27, 2015 at 21:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.