libsnapshot: dump rollback indicator
Test: snapshotctl dump
Bug: 149956852
Change-Id: Ib0308ab75d6dce4047b46d06cece95eed23620a9
(cherry picked from commit 738a94b798
)
Merged-In: Ib0308ab75d6dce4047b46d06cece95eed23620a9
This commit is contained in:
parent
3a5e138964
commit
37f5bb9faa
1 changed files with 3 additions and 0 deletions
|
@ -2435,6 +2435,9 @@ bool SnapshotManager::Dump(std::ostream& os) {
|
|||
|
||||
ss << "Current slot: " << device_->GetSlotSuffix() << std::endl;
|
||||
ss << "Boot indicator: booting from " << GetCurrentSlot() << " slot" << std::endl;
|
||||
ss << "Rollback indicator: "
|
||||
<< (access(GetRollbackIndicatorPath().c_str(), F_OK) == 0 ? "exists" : strerror(errno))
|
||||
<< std::endl;
|
||||
|
||||
bool ok = true;
|
||||
std::vector<std::string> snapshots;
|
||||
|
|
Loading…
Reference in a new issue