Create backup image from USB / SDCARD. How to run run armbian-tf on next run #1646
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
echo "yes" >/root/.no_rootfs_resize |
Beta Was this translation helpful? Give feedback.
-
thanks @ophub I found this flag and I set it to
but after new boot the flag is still there is a flag Line 1004 in f0af993 |
Beta Was this translation helpful? Give feedback.
-
I also tried
but still no root partition resized when the |
Beta Was this translation helpful? Give feedback.
-
When build armbian os add:
If there is this file in the armbian system, it will be executed automatically when the system starts for the |
Beta Was this translation helpful? Give feedback.
-
to run the # 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:
and it works, after first boot, we have -> Maximize root partition size thanks @ophub for your help 👍 |
Beta Was this translation helpful? Give feedback.
-
very good |
Beta Was this translation helpful? Give feedback.
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
Now I'm doing:
no_rootfs_resize
to yesand it works, after first boot, we have -> Maximiz…