-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBLFS.py
More file actions
31 lines (28 loc) · 804 Bytes
/
BLFS.py
File metadata and controls
31 lines (28 loc) · 804 Bytes
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
26
27
28
29
30
31
from LFSAbs import LFSAbs
from LFS import LFS
""" http://www.linuxfromscratch.org/blfs/view/svn """
class BLFS(LFSAbs):
def __init__(self, lfs):
self.lfs = lfs
def buildDistro(self):
pass
def main():
# TODO need distcc + ccache
tools = Tools()
lfs = LFS(tools)
blfs = BLFS(lfs)
try:
tools.cleanupAndBuildDistro()
lfs .buildDistro()
# TODO reboot into qemu vm & finish compiling
blfs .buildDistro()
finally:
blfs .forceCleanup()
lfs .forceCleanup()
tools.forceCleanup()
# TODO install to zeroed disk
# TODO compress and ramboot
# TODO reboot into qemu vm & run integration test
# TODO install
# TODO put wm (and other progs?) in docker
if __name__ == "__main__": main()