add error msgs

This commit is contained in:
rootzoll
2025-01-15 16:25:48 +01:00
parent 08d112dc19
commit 9d84c869fd

View File

@@ -751,7 +751,7 @@ if [ "$1" = "setup" ]; then
exit 1
fi
echo "# .. copy boot"
rsync -axHAX --delete --info=progress2 ${bootPath} /mnt/disk_boot/
rsync -axHAX --delete --info=progress2 ${bootPath} /mnt/disk_boot/ || { echo "error='fail on boot copy'"; exit 1; }
# copy the system drive
echo "# .. copy system"
@@ -775,7 +775,7 @@ if [ "$1" = "setup" ]; then
--exclude=/var/cache/* \
--exclude=/var/tmp/* \
--exclude=/var/log/* \
/ /mnt/disk_system/
/ /mnt/disk_system/ || { echo "error='fail on system copy'"; exit 1; }
echo "# OK - System copied"