- Jul 20, 2023
-
-
It is needed for booting with UUIDs Link: https://gitlab.com/postmarketOS/pmaports/-/issues/1531 Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Tested-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C168964079267.5324.15935279761788836851-1@git.sr.ht%3E
-
Current setup leaves 991 unused sectors which causes root partition to be resized on boot. Fix it. Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C168962297313.22523.18408902364202107570-1@git.sr.ht%3E
-
- Jul 13, 2023
-
-
When build_default_device_arch is set in your local pmbootstrap config, some tests fail because pmbootstrap tries to cross compile. Make sure this option is disabled in the test context. Signed-off-by:
Caleb Connolly <kc@postmarketos.org> Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230629-suffix-type-hint-v1-5-e92802ae20a8@postmarketos.org%3E
-
don't assume that master is the default branch name. Signed-off-by:
Caleb Connolly <kc@postmarketos.org> Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230629-suffix-type-hint-v1-3-e92802ae20a8@postmarketos.org%3E
-
Since introducing git hooks, these tests fail locally because copytree can't handle the relative symlinks. Add a helper for this common pattern and set ignore_dangling_symlinks to safely skip these symlinks. Signed-off-by:
Caleb Connolly <kc@postmarketos.org> Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230629-suffix-type-hint-v1-2-e92802ae20a8@postmarketos.org%3E
-
By configuring proxy vars in run_core.core, we can ensure that the environment is always aware of any configured proxy, whether it's running natively or in a chroot. fixes https://gitlab.com/postmarketOS/pmbootstrap/-/issues/2249 Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230713021822.15223-2-clayton@craftyguy.net%3E
-
Since we're using mtkclient a lot anyways, it makes sense to add support for it to pmbootstrap. This was originally implemented by JustSoup321, but they had issues submitting the patch, so I've cleaned it up for upstream submission. Co-Authored-By:
JustSoup321 <brandonboese@protonmail.com> Co-Authored-By:
Oliver Smith <ollieparanoid@postmarketos.org> Signed-off-by:
hexaheximal <hexaheximal@proton.me> Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230712231807.22590-1-hexaheximal@proton.me%3E
-
The changes in pmaports!4234 cause cargo build scripts to be built for and run on the host (native) architecture, so their dependencies must be present in the native chroot. pmbootstrap can't tell which of the dependencies specified in makedepends are actually needed by build scripts, so just duplicate all of them in the native chroot. Acked-by:
Caleb Connolly <kc@postmarketos.org> Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230710135001.184769-1-otto.pflueger@abscue.de%3E
-
Some people may use U-Boot instead of depthcharge and they don't want cgpt Reviewed-by:
Luca Weiss <luca@z3ntu.xyz> Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C168861285289.22824.11703157261469263638-0@git.sr.ht%3E
-
- Jul 05, 2023
-
-
This workaround is not needed anymore. Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Reviewed-by:
Luca Weiss <luca@z3ntu.xyz> Reviewed-by:
Clayton Craft <clayton@craftyguy.net> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C168844148723.7161.318848193297628515-1@git.sr.ht%3E
-
Some devices (veyron) have read-only primary GPT record on eMMC and parted can't handle it. It results in U-Boot not being able to boot from eMMC. Fix it by setting efi flag with cgpt instead of parted. Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Reviewed-by:
Luca Weiss <luca@z3ntu.xyz> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C168844148723.7161.318848193297628515-0@git.sr.ht%3E
-
It has happened more than once that Python 3.9+ type annotation have slipped into the code and broken earlier Python versions. Enable the eval-annotations flag in vermin to catch that. Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230625193650.528651-2-luca@z3ntu.xyz%3E
-
The 'list' type annotation only works from Python 3.9 and since we still support Python 3.7 we should use the version from the typing package instead. Closes: https://gitlab.com/postmarketOS/pmbootstrap/-/issues/2247 Fixes: d31313f7 ("Don't use 'sudo' when running as root") Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230625193650.528651-1-luca@z3ntu.xyz%3E
-
Suggest to change suffix to bash: POSIX does not provide a way to detect sourced script path, and the working method in this script is bash-specific. (The sh-method would not working in some cases like shell in shell) Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230618045230.28622-1-11857526-nexplorer-3e@users.noreply.gitlab.com%3E
-
- Jun 15, 2023
-
-
Oliver Smith authored
With this code path, pmbootstrap would start a distccd + sshd in the native chroot, and configure it so it runs the cross compiler. The foreign arch chroots would then call this cross compiler from localhost by calling the distcc client instead of gcc. This code has been obsoleted by the much simpler crossdirect in 2019. Let's finally remove it. Fixes: issue 2179 Reviewed-by:
Luca Weiss <luca@z3ntu.xyz> Reviewed-by:
Clayton Craft <clayton@craftyguy.net> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230613161437.570196-4-ollieparanoid@postmarketos.org%3E
-
Oliver Smith authored
With an upcoming patch to remove the legacy distcc code, the --no-crossdirect argument would do the same as --no-cross: perform the build entirely in qemu. So remove the argument. I doubt anybody was using it anyway. Reviewed-by:
Luca Weiss <luca@z3ntu.xyz> Reviewed-by:
Clayton Craft <clayton@craftyguy.net> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230613161437.570196-3-ollieparanoid@postmarketos.org%3E
-
Oliver Smith authored
Get rid of a workaround that isn't needed anymore. Also this makes use of the get_gcc_version() function that is otherwise only needed for the long obsolete distcc code, which I'm about to remove in the next patch. Reviewed-by:
Luca Weiss <luca@z3ntu.xyz> Reviewed-by:
Clayton Craft <clayton@craftyguy.net> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230613161437.570196-2-ollieparanoid@postmarketos.org%3E
-
Oliver Smith authored
It is not necessary to install build-base or abuild inside the chroot before running apkbuild-lint. I've verified that the output of "pmbootstrap lint" is the same without it. Drop it to make it faster. Reviewed-by:
Clayton Craft <clayton@craftyguy.net> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230613151807.568708-2-ollieparanoid@postmarketos.org%3E
-
Oliver Smith authored
Use init_abuild_minimal instead of init to avoid installing gcc etc. when generating checksums. This function has been added previously in c6bcb0da ("Speed up 'pmbootstrap checksum'"). Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230613151807.568708-1-ollieparanoid@postmarketos.org%3E
-
- Jun 13, 2023
-
-
pmb.config.sudo expects a list of commands + args, so when a string is passed (e.g. "true"), it results in pmb trying to execute the equivalent of "$ t r u e": (8/119) Installing linux-purism-librem5 (6.3.4-r0) doas: t: command not found doas: t: command not found doas: t: command not found doas: t: command not found Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230613141929.15718-1-clayton@craftyguy.net%3E
-
- Jun 12, 2023
-
-
This makes sure that the "/etc/localtime" file being created points to the tzdata directory (/usr/share/zoneinfo), instead of to the custom "/etc/zoneinfo" created by alpine to save space. This is relevant because it otherwise will point to a directory that contains incomplete tzdata, and can produce unexpected results in some circumnstances. Signed-off-by:
Pablo Correa Gómez <ablocorrea@hotmail.com> Tested-by:
Clayton Craft <clayton@craftyguy.net> Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230611150743.23310-3-ablocorrea@hotmail.com%3E
-
Some refactoring for the next commit Signed-off-by:
Pablo Correa Gómez <ablocorrea@hotmail.com> Tested-by:
Clayton Craft <clayton@craftyguy.net> Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230611150743.23310-2-ablocorrea@hotmail.com%3E
-
Currently we're already showing a long list of unsupported releases, which should not really be used by any user. Hide them by just showing the first 3 releases in the list which avoids adding complicated custom logic to e.g. channels.cfg. Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230607205714.84945-1-luca@z3ntu.xyz%3E
-
For kernel selection we already choose a default like this, which makes sense since there's no point in having a preselected choice which doesn't exist (anymore). Also useful for some test suites where it runs "yes | pmbootstrap init" which would hang on this question. Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230607204449.84020-2-luca@z3ntu.xyz%3E
-
Weston is since long not a good default choice anymore. Switch it to console which is a (mostly) unopinionated default choice. Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230607204449.84020-1-luca@z3ntu.xyz%3E
-
A long long time ago we renamed flash_system to flash_rootfs, and now it's time to finally remove this alias since nobody should be using it anymore. Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230605220329.14328-4-luca@z3ntu.xyz%3E
-
A long time ago we renamed the flash_system action into flash_rootfs. Since we still kept some variables around, it's finally time to clean that up. Keep backwards compatibility for now since we cannot update pmaports at the same time since the new deviceinfo names won't be supported in older pmbootstrap versions. Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230605220329.14328-3-luca@z3ntu.xyz%3E
-
We should have the variables we use in this array. Add the missing rockchip flags there. Fixes: 18a16c78 ("pmb: flasher: add support for rk partitions (MR 2165)") Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230605220329.14328-2-luca@z3ntu.xyz%3E
-
Nowadays userdata partition is way bigger than system partition and is the preferred partition to use for the postmarketOS installation. Change the default so "pmbootstrap flasher flash_rootfs" uses that partition by default. Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230605220329.14328-1-luca@z3ntu.xyz%3E
-
Oliver Smith authored
Replace the (outdated) list of locales supported in musl with a list from all locales supported by glibc. The list of locales is taken from the patch that is applied to musl-locales in alpine. Related: https://gitlab.alpinelinux.org/alpine/aports/-/commit/2dc905dc773cbf7083dad72b33affa8f92f6e6fb Closes: pmbootstrap issue 1997 Reviewed-by:
Pablo Correa Gómez <ablocorrea@hotmail.com> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230603160540.18732-1-ollieparanoid@postmarketos.org%3E
-
- Jun 05, 2023
-
-
Oliver Smith authored
After refactoring the patch, it now directly installs the lk2nd package. Fixes: 68231d93 ("pmb.flasher: Improve flash_lk2nd action")
-
* Check that we're not already running lk2nd as flashing boot partition inside lk2nd is different to flashing boot partition outside. We could improve this in the future to use "flash lk2nd lk2nd.img" as documented in the file. * Grab the lk2nd package from the device package and install that. The device package is expected to have a dependency on the correct lk2nd package. * Remove some log message in unusual styles for pmbootstrap. * Group flash_lk2nd action together with the other flash actions and use string comparison. See also: https://gitlab.com/postmarketOS/pmaports/-/issues/2074 Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230605104026.744005-1-luca@z3ntu.xyz%3E
-
In the QEMU 7.1 release the deprecated -soundhw option was removed. Replace it with -audio so we can have audio working again in QEMU. See also https://www.qemu.org/docs/master/about/removed-features.html Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230605102320.739043-1-luca@z3ntu.xyz%3E
-
The recent changes to the sudo code forgot this usage here which broke with the sudo timer config option enabled. Fixes: d31313f7 ("Don't use 'sudo' when running as root") Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230605092217.725218-1-luca@z3ntu.xyz%3E
-
The Type | OtherType syntax for writing unions was introduced in Python 3.10. We want to support Python 3.7, so use an Optional type hint instead which declares the same thing and is supported by 3.7. Fixes: d31313f7 ("Don't use 'sudo' when running as root") Reviewed-by:
Luca Weiss <luca@z3ntu.xyz> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230605063142.6843-1-newbyte@postmarketos.org%3E
-
- Jun 04, 2023
-
-
This cancels the need to install and configure `sudo` or `doas` on single-user installations (e.g.: a VM dedicated to running pmbootstrap). Fixes: https://gitlab.com/postmarketOS/pmbootstrap/-/issues/2224 Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230529203922.22161-1-hugo@whynothugo.nl%3E