1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-12 19:09:56 +03:00

export: allow to export vmlinuz files which have any suffix

This is useful, for example, to export alpine linux kernels.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2621
This commit is contained in:
Pablo Correa Gómez 2025-06-09 17:57:38 +02:00
parent 562e6519d5
commit d9560962ac
No known key found for this signature in database
GPG key ID: 7A342565FF635F79

View file

@ -51,7 +51,6 @@ def symlinks(flavor: str, folder: Path) -> None:
path_boot / f"boot.img{suffix}",
path_boot / f"uInitrd{suffix}",
path_boot / f"uImage{suffix}",
path_boot / f"vmlinuz{suffix}",
path_boot / "dtbo.img",
chroot_native / "home/pmos/rootfs" / f"{device}.img",
chroot_native / "home/pmos/rootfs" / f"{device}-boot.img",
@ -60,7 +59,8 @@ def symlinks(flavor: str, folder: Path) -> None:
path_boot / "lk2nd.img",
]
files += list(path_boot.glob(f"initramfs{suffix}*"))
files += list(path_boot.glob("initramfs*"))
files += list(path_boot.glob("vmlinuz*"))
# Iterate through all files
for file in files: