diff options
author | V.Krishn <vkrishn@insteps.net> | 2025-01-16 18:51:39 +0000 |
---|---|---|
committer | V.Krishn <vkrishn@insteps.net> | 2025-01-16 18:51:39 +0000 |
commit | 9ad2edd4aade1618b746db43049e63e4c7708c4f (patch) | |
tree | 807098ef7c7521feacde7e0fc49d27b2b613a8ca /openrc | |
parent | 714fd960f9132224b511ccec1b7204340bbba2d2 (diff) | |
download | aportsbag-master.tar.bz2 |
Diffstat (limited to 'openrc')
-rw-r--r-- | openrc/modloop.initd | 9 | ||||
-rw-r--r-- | openrc/modloop.initd.readme | 19 |
2 files changed, 28 insertions, 0 deletions
diff --git a/openrc/modloop.initd b/openrc/modloop.initd index 7fa2ff2..e3eefc3 100644 --- a/openrc/modloop.initd +++ b/openrc/modloop.initd @@ -41,6 +41,15 @@ find_modloop() { einfo "Mounting firmware modloop" # verify_modloop "$img.firmware" || eerror "Failed to verify signature of $img.firmware!" mount -o loop,ro "$img.firmware" /.modloop/modules/firmware + # firmware modloop needs to be present either populated with firmwares + # and/or with directory skel. + for fw in $img.d/*; do # eg. valid name, modloop-lts.firmware.intel + if [ -f "$fw" ]; then + # verify_modloop "$fw" || eerror "Failed to verify signature of $fw!" + einfo "Mounting firmware modloop ${fw##*.}" + mount -o loop,ro "$fw" /.modloop/modules/firmware/${fw##*.} + fi + done fi return 0 fi diff --git a/openrc/modloop.initd.readme b/openrc/modloop.initd.readme index e2b1645..ab1f53a 100644 --- a/openrc/modloop.initd.readme +++ b/openrc/modloop.initd.readme @@ -1,5 +1,24 @@ +Fri 17 Jan 2025 12:19:32 AM EST + +This is in continuation of issue #16843. + +This modification to modloop.initd now allows mounting of squashfs firmware from +modloop-lts.d directory, onto /.modloop/modules/firmware/<folder>, after modoop-lts has been mounted. + +Eg. linux-firmware-intel-20241210-r0.apk can be made into squashfs and mounted on /.modloop/modules/firmware/intel. + +Code for rsa.sign.keys and verification has been left-out. +Also not included is code for splitting and creating modloop-lts.firmware.<dir> files, + +1. Link: [https://git.insteps.net/mess/aportsbag/tree/openrc/modloop.initd] + +Why do this? +1. This will further allow add/remove firmwares based on folder or brand. + +---- + Thu 16 Jan 2025 05:26:59 AM EST Modification to modloop.initd now allows mounting of modloop-lts.firmware file |