Skip to content

Create backup image from USB / SDCARD. How to run run armbian-tf on next run #1646

Discussion options

You must be logged in to vote

to run the armbian-tf automatically after system starts (first time after shrinking the image) I added to the /etc/custom_service/start_service.sh

# Maximize root partition size
todo_rootfs_resize="/root/.no_rootfs_resize"
[[ -f "${todo_rootfs_resize}" && "$(cat ${todo_rootfs_resize} 2>/dev/null | xargs)" == "yes" ]] && {
    armbian-tf 2>/dev/null &&
    echo "[$(date +"%Y.%m.%d.%H:%M:%S")] Maximize root partition done!" >>${custom_log}
}

Now I'm doing:

  1. run system, add packages and adjust settings
  2. set the flag no_rootfs_resize to yes
  3. shrinking the image in Gparted
  4. burn the shrinked image to new USB/SD CARD
  5. run the system from new image

and it works, after first boot, we have -> Maximiz…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by araczkowski
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants