1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
"""
bootstrapping debian functions for for dmm.
"""
from command_runner import command_runner
def debootstrap(destination, release, mirror, debootstrapopts):
"""
Use debootstrap to bootstrap a Debian system.
"""
ecode, result = command_runner("debootstrap %s %s %s %s" % (debootstrapopts,
release,
destination,
mirror))
def mmdebstrap(destination, release, mirror, debootstrapopts):
"""
Use mmdebstrap to bootstrap a Debian system.
"""
print("mmdebstrap %s %s" % (release, destination))
ecode, result = command_runner("mmdebstrap %s %s" % (release, destination))
print ("ecode: ", ecode)
print ("result: ", result)
|