feat: add linux kernel initramfs and related tools

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
2026-09-07 03:13:55 +00:00
parent 5c89842dc0
commit 47ade913e2
10 changed files with 230 additions and 14 deletions
+8
View File
@@ -65,3 +65,11 @@ class PkgComposer:
def link_external(self, src: str, dst: str):
os.symlink(src, f"{self.workdir}/bundle/{dst}")
def add(self, src: str, dst: str | None = None):
if dst is None:
dst = src
if os.path.islink(src) or os.path.isfile(src):
self.addfile(src, dst)
else:
self.add_dir(src, dst, True)