mirror of
https://github.com/linux-msm/qbootctl.git
synced 2026-02-25 13:13:44 -08:00
minor cleanups, improve error handling
gracefully handle UFS_BSG not being enabled in the kernel, rather than putting the device into a semi-bricked state (oops).
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
|
||||
#include "utils.h"
|
||||
#include "gpt-utils.h"
|
||||
#include "ufs-bsg.h"
|
||||
|
||||
#include "bootctrl.h"
|
||||
|
||||
@@ -607,6 +608,10 @@ int set_active_boot_slot(unsigned slot)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (ufs_bsg_dev_open() < 0) {
|
||||
goto error;
|
||||
}
|
||||
|
||||
//The partition list just contains prefixes(without the _a/_b) of the
|
||||
//partitions that support A/B. In order to get the layout we need the
|
||||
//actual names. To do this we append the slot suffix to every member
|
||||
|
||||
Reference in New Issue
Block a user