Create META/boot_filesystem_config.txt in target_files.zip
This file is identical to init_boot_filesystem_config.txt, so create a
copy rule to create this file.
Test: Verified that the file is identical between make and soong
Bug: 388633394
Change-Id: Ie966aa618678600e560ccfb8edab077893431d43
diff --git a/filesystem/android_device.go b/filesystem/android_device.go
index 8b0dc15..b3ad7a7 100644
--- a/filesystem/android_device.go
+++ b/filesystem/android_device.go
@@ -588,6 +588,10 @@
continue
}
builder.Command().Textf("cp").Input(fsInfos[partition].FilesystemConfig).Textf(" %s/META/%s", targetFilesDir.String(), a.filesystemConfigNameForTargetFiles(partition))
+ if partition == "ramdisk" {
+ // Create an additional copy at boot_filesystem_config.txt
+ builder.Command().Textf("cp").Input(fsInfos[partition].FilesystemConfig).Textf(" %s/META/boot_filesystem_config.txt", targetFilesDir.String())
+ }
}
// Copy ramdisk_node_list
if ramdiskNodeList := android.PathForModuleSrc(ctx, proptools.String(a.deviceProps.Ramdisk_node_list)); ramdiskNodeList != nil {