GalaticStryder / kernel_lge_msm8974

Lambda Kernel for the LG G2
http://forum.xda-developers.com/lg-g2/development/kernel-lambda-kernel-t3270424
Other
24 stars 13 forks source link

update-binary fails if tmp files already exist #10

Open aggregate1166877 opened 6 years ago

aggregate1166877 commented 6 years ago

I had a situation where a problem outside of the scope of this flasher meant I had to reflash the zip. Upon rerunning, I got the error "Recovery busybox setup failed. Aborting..."

Some hacking revealed that update-binary runs $bb ln -s $bb /tmp/anykernel/bin/$i;, which failed in my case because the soft links already existed. I resolved the issue by changing the ln command to $bb ln -sfn $bb /tmp/anykernel/bin/$i;.

I am unsure if the -fn options work with all versions of busybox, but I thought I'd mention this here in case it'd helpful.