More cpio features

This commit is contained in:
topjohnwu
2017-03-10 04:08:17 +08:00
parent 1e3bcfc8cd
commit 3f3568d8af
11 changed files with 578 additions and 77 deletions

View File

@@ -29,7 +29,7 @@ void repack(const char* orig_image, const char* out_image) {
mmap_ro(orig_image, &orig, &size);
// Parse original image
printf("\nParsing boot image: [%s]\n\n", orig_image);
printf("Parsing boot image: [%s]\n\n", orig_image);
parse_img(orig, size);
// Create new image
@@ -105,7 +105,7 @@ void repack(const char* orig_image, const char* out_image) {
}
// Write header back
printf("\nRepack to boot image: [%s]\n\n", out_image);
printf("Repack to boot image: [%s]\n\n", out_image);
print_info();
lseek(fd, 0, SEEK_SET);
write(fd, &hdr, sizeof(hdr));