Skip to content

Commit

Permalink
Merge remote-tracking branch 'LineageOS/lineage-21.0' into lineage-21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Khalvat-M committed Jul 7, 2024
2 parents d735a46 + 7a568f1 commit fd9c304
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions fs_mgr/fs_mgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@
#define TUNE2FS_BIN "/system/bin/tune2fs"
#define RESIZE2FS_BIN "/system/bin/resize2fs"

#ifdef __ANDROID_RECOVERY__
#define FSCK_LOG_FILE "/dev/null"
#else
#define FSCK_LOG_FILE "/dev/fscklogs/log"
#endif

#define ZRAM_CONF_DEV "/sys/block/zram0/disksize"
#define ZRAM_CONF_MCS "/sys/block/zram0/max_comp_streams"
Expand Down
4 changes: 2 additions & 2 deletions fs_mgr/liblp/builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1043,8 +1043,8 @@ bool MetadataBuilder::UpdateBlockDeviceInfo(size_t index, const BlockDeviceInfo&
CHECK(index < block_devices_.size());

LpMetadataBlockDevice& block_device = block_devices_[index];
if (device_info.size != block_device.size) {
LERROR << "Device size does not match (got " << device_info.size << ", expected "
if (device_info.size < block_device.size) {
LERROR << "Device size does not fit (got " << device_info.size << ", expected "
<< block_device.size << ")";
return false;
}
Expand Down
3 changes: 2 additions & 1 deletion init/devices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ std::vector<std::string> DeviceHandler::GetBlockDeviceSymlinks(const Uevent& uev

auto link_path = "/dev/block/" + type + "/" + device;

bool is_boot_device = boot_devices_.find(device) != boot_devices_.end();
bool is_boot_device = boot_devices_.find(device) != boot_devices_.end() ||
boot_devices_.find("any") != boot_devices_.end();
if (!uevent.partition_name.empty()) {
std::string partition_name_sanitized(uevent.partition_name);
SanitizePartitionName(&partition_name_sanitized);
Expand Down

0 comments on commit fd9c304

Please sign in to comment.