- Nov 20, 2024
-
-
This can otherwise fail if the package was only built for some architectures so far, but not for the architecture that is being generated. E.g. right now musl-1.2.5-r6 was built already for x86_64 but not aarch64, which causes errors like the following when running "pmbootstrap aportgen musl-x86_64" on aarch64: >>> musl-x86_64: Fetching musl-1.2.5-r5-x86_64-edge.apk::http://dl-4.alpinelinux.org/alpine//edge/main/x86_64/musl-1.2.5-r5.apk Connecting to dl-4.alpinelinux.org (147.75.40.42:80) Connecting to dl-4.alpinelinux.org (147.75.40.42:443) wget: server returned error: HTTP/1.1 404 Not Found >>> ERROR: musl-x86_64: checksum failed
-
- Nov 18, 2024
-
-
Oliver Smith authored
-
Fixes bec2a4b1 [ci:skip-build]: already built successfully in CI
-
-
- Nov 14, 2024
- Nov 10, 2024
-
-
Oliver Smith authored
After extending CI to always run "pmbootstrap zap -a" it revealed another bug: we did not ensure at this point that apk.static is available. Rung apk_static.init() to ensure it gets downloaded and extracted at this point if it is missing.
-
Oliver Smith authored
Make sure we don't regress in "pmbootstrap zap -a" by running it after each integration test.
-
Oliver Smith authored
The tmp dir is owned by root, when it gets created earlier by apk running as root to store the apk progress fifo. Use another directory to work around this for now (getting close to the 3.0.0 release), we can rework the apk progress fifo later on if we want. Fixes: issue 2491
-
Oliver Smith authored
Replace aports -> pmaports in these messages. $ pmbootstrap build systemd [17:37:02] NOTE: The package 'systemd' exists in extra-repos/systemd, but systemd is currently disabled [17:37:02] ERROR: Could not find package 'systemd' in pmaports
-
Oliver Smith authored
If the user tries to build a package, but it can't be found: check if systemd is disabled and the package is in extra-repos/systemd, display a hint about it. $ pmbootstrap build systemd [17:33:53] NOTE: The package 'systemd' exists in extra-repos/systemd, but systemd is currently disabled [17:33:53] ERROR: Could not find aport for package: systemd Fixes: issue 2398
-
Oliver Smith authored
Replace the boolean skip_extra_repos with a new with_extra_repos argument that can be default, enabled or disabled. This will be used to explicitly enable extra repos in a package search even if systemd is currently disabled, so we can display a hint when a package was not found because systemd is disabled in a follow-up patch.
-
Oliver Smith authored
Use the nice @Cache decorator that Caleb introduced earlier.
-
Oliver Smith authored
-
Oliver Smith authored
This caused a regression in CI tests. This reverts commit 6ee82740. Related: issue 2497
-
Oliver Smith authored
This caused a regression in CI tests. This reverts commit ae356031. Related: issue 2497
-
Oliver Smith authored
This caused a regression in CI tests. This reverts commit b888ddde. Related: issue 2497
- Nov 08, 2024
-
-
Caleb Connolly authored
Add some tests to ensure that we spit out correct deviceinfo options for boot images of header v0, 2, and 3. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Caleb Connolly authored
Add some unit tests to ensure that the parser correctly detects boot images with header v0, 2, and 3. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Caleb Connolly authored
make sure that calls to get_upstream_remote() will succeed by setting pmb.config.git_repos() for the entire run. This might pollute some other tests... TODO: make less things depend on pmaports being cloned... Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Caleb Connolly authored
Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Caleb Connolly authored
Commit 826bb4f2 (pmb: Properly type Bootimg (MR 2464)) broke the bootimg_analyze command since some assumptions in whether the bootimg dictionary had empty keys or non-existent keys were changed without their usage being updated. Fix this and apply a trivial cleanup to aportgen. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
- Nov 07, 2024
-
-
Signed-off-by:
Robert Eckelmann <longnoserob@postmarketos.org>
-
Make it clear to the user which SSH keys get copied to the device, and also link to the wiki page that tells the user how to change ssh_key_glob.
-
When generating an ssh key it's simple to change the name of the key to something that's not e.g. id_rsa.pub or id_ed25519.pub, so let's try to capture ssh keys for more users.
-
Since a user can modify the glob to be somewhat arbitrary, use that to check if any ssh keys exist and ask in pmbootstrap init. Otherwise ssh_key_glob would only work if it was a subset of ~/.ssh/id_*.pub, so e.g. ~/.ssh/id_foo.pub but ~/.ssh/foo.pub wouldn't work.
-
- Nov 06, 2024
-
-
-
Oliver Smith authored
We don't care about the output of "losetup --json" here, we just want to make sure that the argument exists. If it does not exist, we already give an error to the user. Set the output to null so it does not clutter the log since it runs with every pmbootstrap command now.
-
Oliver Smith authored
Use the absolute path for it, so it works in Debian too as we run it without sudo here to just check if the argument is supported.
-
Remove this chroot-specific helper and merge it in with the existing require_programs() logic. Now we have one unified way to discover and use programs from the host and where we can put any additional special handling we might need. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
On debian systems in particular special handling is needed for /usr/sbin. Let's do this once and then provide the host deps we use in a nice accessible dictionary. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org> Tweaked-by:
Oliver Smith <ollieparanoid@postmarketos.org>
-
Oliver Smith authored
In Debian, /usr/sbin is not in PATH of regular users unless using sudo. Fix that pmbootstrap won't find kpartx and losetup in /usr/sbin, and complains about these even though they are installed. Fixes: issue 2489
-
- Nov 04, 2024
-
-
Oliver Smith authored
The command has been removed, so remove it from README.md too.
-
Add the content from README.md to these files. Tweaked-by:
Oliver Smith <ollieparanoid@postmarketos.org>
-
Caleb Connolly authored
While there are places where it would make some sense to catch issues in the lint stage, most of the lint failures are things like shellchcek or ruff which don't actually effect the functionality of the code. Let's just run pytest at the same time as these to speed up the overall pipeline. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Caleb Connolly authored
Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
On some kernels (notably, WSL2) parted fails to inform the kernel about the new partition layout, leading to errors when trying to create the new filesystems. This change runs an additional `partprobe` after updating the partition table, informing the kernel about the new layout. Fixes: #2422 Signed-off-by:
Dominik Bayerl <dominik.bayerl@carissma.eu> [caleb: move call so it runs after partition_cgpt() as well] Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
There is a lot of context and state management needed when using pmbootstrap, sometimes it can be a lot to keep in your head. Let's print the output of "pmbootstrap status" when stuff goes wrong, this might help remind people if e.g. their pmaports checkout is on the wrong branch, or they're building for the wrong device. Additionally, don't print the "run pmbootstrap log for details" message if pmbootstrap was called with --details-to-stdout Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
- Nov 03, 2024
-
-
Oliver Smith authored
pmbootstrap requires "tomli" if running with python < 3.11, so install it.
-