Skip to content

Commit 3b767c4

Browse files
Treehugger RobotGerrit Code Review
Treehugger Robot
authored and
Gerrit Code Review
committed
Merge "Use default dsu slot name when host is Android Q"
2 parents 56850e1 + b445a01 commit 3b767c4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

fs_mgr/fs_mgr_fstab.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,8 +694,11 @@ bool ReadFstabFromFile(const std::string& path, Fstab* fstab) {
694694
if (!is_proc_mounts && !access(android::gsi::kGsiBootedIndicatorFile, F_OK)) {
695695
std::string dsu_slot;
696696
if (!android::gsi::GetActiveDsu(&dsu_slot)) {
697-
PERROR << __FUNCTION__ << "(): failed to get active dsu slot";
698-
return false;
697+
// This is expected to fail if host is android Q, since Q doesn't
698+
// support DSU slotting.
699+
// In that case, just use the default slot name "dsu".
700+
PWARNING << __FUNCTION__ << "(): failed to get active dsu slot";
701+
dsu_slot = "dsu";
699702
}
700703
std::string lp_names;
701704
ReadFileToString(gsi::kGsiLpNamesFile, &lp_names);

0 commit comments

Comments
 (0)