Skip to content

Commit

Permalink
Fixed #751. No error message no longer written if /dev is used
Browse files Browse the repository at this point in the history
  • Loading branch information
framps committed Apr 27, 2024
1 parent 5d9729b commit 536e470
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions raspiBackup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8483,6 +8483,8 @@ function synchronizeCmdlineAndfstab() {
else
rootLabelCreated=1
fi
elif grep "root=/dev/" $CMDLINE; then
logItem "/dev detected in $CMDLINE"
else
writeToConsole $MSG_LEVEL_MINIMAL $MSG_NO_UUID_SYNCHRONIZED "$cmdline" "root="
fi
Expand Down Expand Up @@ -8533,6 +8535,8 @@ function synchronizeCmdlineAndfstab() {
rootLabelCreated=1
fi
fi
elif grep "^/dev/" $FSTAB; then
logItem "/dev detected in $FSTAB"
else
writeToConsole $MSG_LEVEL_MINIMAL $MSG_NO_UUID_SYNCHRONIZED "$fstab" "/"
fi
Expand Down Expand Up @@ -8575,6 +8579,8 @@ function synchronizeCmdlineAndfstab() {
local cmd="dosfslabel $BOOT_PARTITION $oldLABEL"
writeToConsole $MSG_LEVEL_MINIMAL $MSG_LABELING_FAILED "$cmd" "$rc"
fi
elif grep "^/dev/" $FSTAB; then
logItem "/dev detected in $FSTAB"
else
writeToConsole $MSG_LEVEL_MINIMAL $MSG_NO_UUID_SYNCHRONIZED "$fstab" "/boot"
fi
Expand Down

0 comments on commit 536e470

Please sign in to comment.