Skip to content
Snippets Groups Projects
Commit a504cea4 authored by Dmitry Petrov's avatar Dmitry Petrov
Browse files

prepare-bootpartition: fix checking of result

Fix missing invert of exit code for "sed" command to correctly return error.
parent 29c7a97d
No related branches found
No related tags found
1 merge request!49Install scripts: fix a path postinstall-status file and fix error handling
...@@ -86,7 +86,7 @@ done ...@@ -86,7 +86,7 @@ done
#====================================================================== #======================================================================
# The sed pattern replaces the partitions only when the line starts with # The sed pattern replaces the partitions only when the line starts with
# BOOTPARTITIONS= # BOOTPARTITIONS=
if sed -i /usr/libexec/prepare-common.sh \ if ! sed -i /usr/libexec/prepare-common.sh \
-e "/^BOOTPARTITIONS=/s|/by-label/LINUX *|/by-label/$PARTITION_LABEL |" \ -e "/^BOOTPARTITIONS=/s|/by-label/LINUX *|/by-label/$PARTITION_LABEL |" \
-e "/^BOOTPARTITIONS=/s|/dev/mmcblk[^\"]*|$BOOTPARTITION|" -e "/^BOOTPARTITIONS=/s|/dev/mmcblk[^\"]*|$BOOTPARTITION|"
then then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment