Last active
August 29, 2015 14:07
-
-
Save jrziviani/2e610a9beef65c54b735 to your computer and use it in GitHub Desktop.
Blivet sample using kickstart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pykickstart.parser import * | |
from pykickstart.version import makeVersion | |
import blivet | |
# parse kickstart | |
ksparser = KickstartParser(makeVersion()) | |
ksparser.readKickstart("test.ks") | |
# create blivet object | |
b = blivet.Blivet(ksparser.handler) | |
b.reset() | |
# do partitioning based on kickstart definitions | |
blivet.partitioning.doPartitioning(b) | |
b.doIt() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment