Skip to content

Commit

Permalink
add missing files to newroot for dream flash
Browse files Browse the repository at this point in the history
  • Loading branch information
atvcaptain committed Sep 22, 2023
1 parent ec47b24 commit c857c24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ofgwrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@ int umount_rootfs(int steps)
ret += mkdir("/newroot/usr", 777);
ret += mkdir("/newroot/usr/lib", 777);
ret += mkdir("/newroot/usr/lib/autofs", 777);
ret += mkdir("/newroot/usr/sbin", 777);
ret += mkdir("/newroot/var", 777);
ret += mkdir("/newroot/var/volatile", 777);

Expand Down Expand Up @@ -901,6 +902,9 @@ int umount_rootfs(int steps)
ret += system("cp -arf /usr/lib/autofs/* /newroot/usr/lib/autofs");
ret += system("cp -arf /etc/nsswitch* /newroot/etc");
ret += system("cp -arf /etc/resolv* /newroot/etc");
ret += system("cp -arf /usr/sbin/librecovery /newroot/usr/sbin");
ret += system("cp -arf /usr/sbin/flash-kernel /newroot/usr/sbin");
ret += system("cp -arf /usr/bin/mkbootimg /newroot/usr/bin");
}

// Switch to user mode 1
Expand Down

0 comments on commit c857c24

Please sign in to comment.