Skip to content

Commit b4d23ab

Browse files
committed
Fix initcpio binary dependencies
Signed-off-by: Hector Martin <[email protected]>
1 parent eecb95a commit b4d23ab

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

initcpio/install/asahi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ build() {
3333
# asahi-scripts dependencies
3434
add_full_dir /usr/share/asahi-scripts
3535
add_binary /usr/bin/update-vendor-firmware
36+
add_binary /usr/bin/comm
3637

3738
# Firmware update script
3839
add_runscript

update-vendor-firmware

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,14 @@ fi
4646

4747
cd "$TARGET_ROOT/$TARGET"
4848

49-
if [ -e "$TARGET_MANIFEST" ] && \
50-
cmp -s "$TARGET_MANIFEST" "$VENDORFW/manifest.txt"; then
51-
echo "Vendor firmware is up to date, nothing to do."
52-
$umount && umount /run/.system-efi
53-
exit 0
49+
if [ -e "$TARGET_MANIFEST" ]; then
50+
h_cur=$(sha1sum "$TARGET_MANIFEST" | cut -d" " -f1)
51+
h_new=$(sha1sum "$VENDORFW/manifest.txt" | cut -d" " -f1)
52+
if [ "$h_cur" == "$h_new" ]; then
53+
echo "Vendor firmware is up to date, nothing to do."
54+
$umount && umount /run/.system-efi
55+
exit 0
56+
fi
5457
fi
5558

5659
echo "Extracting updated vendor firmware..."

0 commit comments

Comments
 (0)