Skip to content

Commit

Permalink
copy blkid only for dreambox
Browse files Browse the repository at this point in the history
  • Loading branch information
atvcaptain committed Oct 14, 2023
1 parent f556a70 commit d170a15
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions ofgwrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -1131,25 +1131,31 @@ int umount_rootfs(int steps)
ret += system("cp -arf /bin/sh* /newroot/bin");
ret += system("cp -arf /bin/bash* /newroot/bin");
ret += system("cp -arf /sbin/init* /newroot/sbin");
ret += system("cp -arf /sbin/blkid* /newroot/sbin");
ret += system("cp -arf /lib64/libc* /newroot/lib64");
ret += system("cp -arf /lib64/libblkid.* /newroot/lib64");
ret += system("cp -arf /lib64/ld* /newroot/lib64");
ret += system("cp -arf /lib64/libtinfo* /newroot/lib64");
ret += system("cp -arf /lib64/libdl* /newroot/lib64");
if (android)
{
ret += system("cp -arf /sbin/blkid* /newroot/sbin");
ret += system("cp -arf /lib64/libblkid.* /newroot/lib64");
}
}
else
{
ret = system("cp -arf /bin/busybox* /newroot/bin");
ret += system("cp -arf /bin/sh* /newroot/bin");
ret += system("cp -arf /bin/bash* /newroot/bin");
ret += system("cp -arf /sbin/init* /newroot/sbin");
ret += system("cp -arf /sbin/blkid* /newroot/sbin");
ret += system("cp -arf /lib/libc* /newroot/lib");
ret += system("cp -arf /lib/libblkid.* /newroot/lib");
ret += system("cp -arf /lib/ld* /newroot/lib");
ret += system("cp -arf /lib/libtinfo* /newroot/lib");
ret += system("cp -arf /lib/libdl* /newroot/lib");
if (android)
{
ret += system("cp -arf /sbin/blkid* /newroot/sbin");
ret += system("cp -arf /lib/libblkid.* /newroot/lib");
}
}

if (ret != 0)
Expand Down

0 comments on commit d170a15

Please sign in to comment.