Browse files

SuperSU: Only include if specified - most users prefer Magisk

We can eventually migrate to adding Magisk by default if
people think it's a good idea. Chainfire has not been
keeping his SSL certificates up to date, and is no longer
supporting the SuperSU project. It is now owned by a
corporation with unknown intentions, and we would prefer
not to update the links to point to their site.

Signed-off-by: James Christopher Adduono <>
  • Loading branch information...
jcadduono committed Nov 18, 2017
1 parent 06f0851 commit 7a564734e9037ce7edbeabba0f612ac523e4fdf7
Showing with 8 additions and 6 deletions.
  1. +8 −6 nethunter-installer/
@@ -486,9 +486,9 @@ def main():
parser.add_argument('--uninstaller', '-u', action='store_true', help='Create an uninstaller')
parser.add_argument('--kernel', '-k', action='store_true', help='Build kernel installer only')
parser.add_argument('--nokernel', '-nk', action='store_true', help='Build without the kernel installer')
parser.add_argument('--nosu', '-ns', action='store_true', help='Build without SuperSU installer')
parser.add_argument('--nobrand', '-nb', action='store_true', help='Build without wallpaper or boot animation')
parser.add_argument('--nofreespace', '-nf', action='store_true', help='Build without free space check')
parser.add_argument('--supersu', '-su', action='store_true', help='Build with SuperSU installer included')
parser.add_argument('--nightly', '-ni', action='store_true', help='Use nightly mirror for Kali rootfs download (experimental)')
parser.add_argument('--generic', '-g', action='store', metavar='ARCH', help='Build a generic installer (modify ramdisk only)')
parser.add_argument('--rootfs', '-fs', action='store', metavar='SIZE', help='Build with Kali chroot rootfs (full or minimal)')
@@ -511,7 +511,7 @@ def main():
Device = 'generic'
elif args.forcedown:
if not args.nosu:
if args.supersu:
supersu(True, supersu_beta)
@@ -565,8 +565,8 @@ def main():
# We don't need the apps or SuperSU if we are only building the kernel installer
if not args.kernel:
# Download SuperSU unless we don't want it
if not args.nosu:
# Download SuperSU if we want it
if args.supersu:
supersu(args.forcedown, supersu_beta)

# Download Kali rootfs if we are building a zip with the chroot environment included
@@ -581,6 +581,8 @@ def main():
file_tag += '-' + Arch
if args.nobrand and not args.kernel:
file_tag += '-nobrand'
if args.supersu:
file_tag += '-rooted'
if args.rootfs:
file_tag += '-kalifs-' + args.rootfs
if args.release:
@@ -610,8 +612,8 @@ def main():
print('Created kernel installer: ' + file_name)

# Don't include SuperSU if --nosu is specified
if args.nosu:
# Don't include SuperSU unless --supersu is specified
if not args.supersu:

# Set up the update zip

0 comments on commit 7a56473

Please sign in to comment.