Skip to content
This repository has been archived by the owner on Dec 28, 2018. It is now read-only.

Commit

Permalink
fix: ensure /init gets not deleted too early
Browse files Browse the repository at this point in the history
Change-Id: If3fa4c8502b658ec4f0af3fb3811919aca868779
  • Loading branch information
steadfasterX committed Jun 14, 2017
1 parent a72a538 commit a590301
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fishing/FIsH
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ if [ -f ${BTMGRPATH}/${RAMDISK} ];then

# rm symlinks & files.
ECHOL "### Remove symlinks and files in rootfs"
EXECL ${BUSYBOX} find . -maxdepth 1 \( -type l -o -type f \) -exec ${RM} -fv {} \; 2>&1
for rootfile in $(${BUSYBOX} find . -maxdepth 1 \( -type l -o -type f \)|$GREP -v './init$');do
${RM} -fv $rootfile
done

# Remove some directories
ECHOL "### Remove directories..."
Expand Down

0 comments on commit a590301

Please sign in to comment.