Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8042

Advanced users • Re: Filesystem expansion / reboot clashing with my own 1st-run script

$
0
0
You could make it so that it detects the 1strun.txt and renames it 1strun_b.txt, then exits. Then on the boot after the resize it deletes the 1strun_b.txt file and goes to the setup page.

I think there's just the one reboot for resize. There may be another for software updates.
Yeah I've disabled auto updates so there *should* only be one reboot.

Current experiment is to put the file deletion at the end of the script with a "sleep 30" before it, which seems to work but it's a little bit inelegant.

Statistics: Posted by John_U — Thu Jul 17, 2025 4:36 pm



Viewing all articles
Browse latest Browse all 8042

Trending Articles