-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcustomize_iso
More file actions
executable file
·30 lines (22 loc) · 1.03 KB
/
customize_iso
File metadata and controls
executable file
·30 lines (22 loc) · 1.03 KB
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
#!/usr/bin/env python
import os
import sys
def main(args):
global script_dir
global remaster_iso_dir
script_dir = os.path.dirname(sys.argv[0])
remaster_iso_dir = os.path.expanduser('/iso/remaster-iso')
#remaster_iso_dir = os.path.expanduser('~/tmp/remaster-iso')
remaster_root_dir = os.path.expanduser('/iso/remaster-root')
#remaster_root_dir = os.path.expanduser('~/tmp/remaster-root')
patch_cmd = "patch %s/preseed/ubuntu.seed %s/patch/ubuntu.seed.patch"%(remaster_iso_dir,script_dir)
status = os.system(patch_cmd)
patch_cmd = "patch %s/usr/bin/ubiquity-dm %s/patch/ubiquity-dm.patch"%(remaster_root_dir,script_dir)
status = os.system(patch_cmd)
patch_cmd = "cat %s/inst_packages >> %s/casper/filesystem.manifest-remove"%(script_dir,remaster_iso_dir)
status = os.system(patch_cmd)
patch_cmd = "patch %s/isolinux/gfxboot.cfg %s/patch/gfxboot.cfg.patch"%(remaster_iso_dir,script_dir)
status = os.system(patch_cmd)
#update_package_cache()
if __name__ == '__main__':
main(sys.argv)