Command to reproduce:
grep -L '^maintainer="[^"]\+"$' device/{main,community,testing,downstream}/*/APKBUILD | sed 's/\/APKBUILD//' | xargs -i sh -c 'sed -i "1s;^;# Archived: unmaintained\n;" {}/APKBUILD && mv {} device/archived/ && git add {} && git add device/archived/'
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8883>
6 lines
230 B
Bash
6 lines
230 B
Bash
#!/bin/sh
|
|
|
|
# $1 is path to generated initramfs, we want to work on boot.img
|
|
bootimgfile=$(echo "${1}" | sed 's/initramfs/boot.img/g')
|
|
avbtool add_hash_footer --partition_name boot --image "${bootimgfile}" --dynamic_partition_size
|