-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebootstrap-stage1
More file actions
executable file
·37 lines (32 loc) · 873 Bytes
/
debootstrap-stage1
File metadata and controls
executable file
·37 lines (32 loc) · 873 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
32
33
34
35
36
37
#!/usr/bin/env python3
import argparse
from initramfs_wrap import add_cache_dir_parser, debootstrap_stage1
def main():
parser = argparse.ArgumentParser(description="Download and extract packages")
parser.add_argument(
"--chroot",
help="Destination directory",
required=True,
)
parser.add_argument(
"--arch",
help="Target architecture",
required=True,
)
parser.add_argument(
"--suite",
help="Target distro",
default="buster",
)
add_cache_dir_parser(parser)
parser.add_argument(
"--extra-package",
help="Additional packages to install",
action="append",
)
args = parser.parse_args()
debootstrap_stage1(
args.chroot, args.arch, args.suite, args.cache_dir, args.extra_package
)
if __name__ == "__main__":
main()