Skip to content

Commit 01b8d51

Browse files
committed
initcpio: Don't try to copy vendorfw to root filesystem if missing
This can happen on systems with broken firmware extraction/missing upgrade to the the cpio mechanism. In this case the systems can be temporarily fixed by unpacking the firmware to the real rootfs, but then we shouldn't overlay it with an empty tmpfs in the initramfs. Signed-off-by: Hector Martin <[email protected]>
1 parent 9818eaf commit 01b8d51

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

initcpio/hooks/asahi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ run_earlyhook() {
5050
}
5151

5252
run_latehook() {
53+
[ -e /vendorfw ] || return
5354
msg ":: Asahi: Copying vendor firmware to tmpfs under root filesystem..."
5455
mkdir -p /new_root/lib/firmware/vendor
5556
mount -t tmpfs vendorfw /new_root/lib/firmware/vendor

0 commit comments

Comments
 (0)