Skip to content

Commit

Permalink
Add androidboot.selinux=permissive to cmdline
Browse files Browse the repository at this point in the history
Signed-off-by: Shaka Huang <[email protected]>
  • Loading branch information
shakalaca committed Jul 14, 2015
1 parent f2f50c9 commit e675e9c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/pack_boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ if [ -d boot/ramdisk ]; then
cd ..
fi

./mkbootimg --kernel boot/zImage --ramdisk boot/ramdisk.cpio.gz --second boot/second.bin --cmdline "$(cat boot/cmdline)" -o boot.img
CMDLINE="$(cat boot/cmdline)"
if [[ "$CMDLINE" != *"androidboot.selinux=permissive"* ]]; then
CMDLINE="$CMDLINE androidboot.selinux=permissive"
fi

./mkbootimg --kernel boot/zImage --ramdisk boot/ramdisk.cpio.gz --second boot/second.bin --cmdline "$CMDLINE" -o boot.img

0 comments on commit e675e9c

Please sign in to comment.