upgrade-apply-deltafs: Stop trying to apply attributes after a faluire 12/286612/4
authorAntoni Adaszkiewicz <a.adaszkiewi@samsung.com>
Tue, 10 Jan 2023 11:30:43 +0000 (12:30 +0100)
committerAntoni Adaszkiewicz <a.adaszkiewi@samsung.com>
Tue, 10 Jan 2023 13:02:23 +0000 (14:02 +0100)
Previously we tried to apply attributes even after previous failures to
try to ensure a successful boot in order to retry upgrade process.
Currently when retrying to upgrade we start from the ground up as
thre are recovery mechanisms available (getting the system to
pre-upgrade state).

Change-Id: I817fbcfecfcaea9ab65570128b15a149df31ac91

src/upgrade-apply-deltafs/engine/SS_UPI.c

index b7e37241ed5b07f9b3ae191f88402fda4bd4528b..f93c57089f32c05e8d0e997bd180d56c29deeb39 100755 (executable)
@@ -1604,11 +1604,8 @@ int SS_FSUpdatemain(ua_dataSS_t * ua_dataSS)
        }
 
 cleanup:
-       if (ulResult == S_SS_SUCCESS) {
+       if (ulResult == S_SS_SUCCESS)
                ulResult = SS_FSSetAttributes(ua_dataSS);
-       } else {
-               SS_FSSetAttributes(ua_dataSS);  // To prevent boot failures by smack.
-       }
 
        sync();
        sleep(1);