In the new kernel package, extramodules have been removed from the PATH. #343

Closed
opened 2024-01-27 07:19:48 +00:00 by phoepsilonix · 9 comments
phoepsilonix commented 2024-01-27 07:19:48 +00:00 (Migrated from gitlab2.manjaro.org)

In the new kernel package, extramodules have been removed from the PATH.
Therefore, the following action will need to be taken.
You may need the KERNEL-headers package for Packages-Root.

Other proposed fixes

local _kernver=$(cat $1/boot/*.kver|awk '{print $1}')
diff --git a/lib/util-iso-boot.sh b/lib/util-iso-boot.sh
index aa012b7..29a22c3 100644
--- a/lib/util-iso-boot.sh
+++ b/lib/util-iso-boot.sh
@@ -18,7 +18,7 @@ prepare_initcpio(){
 
 prepare_initramfs(){
     cp ${DATADIR}/mkinitcpio.conf $1/etc/mkinitcpio-${iso_name}.conf
- local _kernver=$(cat $1/usr/lib/modules/*/version)
+ local _kernver=$(cat $1/usr/lib/modules/*/build/version)
     if [[ -n ${gpgkey} ]]; then
         su ${OWNER} -c "gpg --export ${gpgkey} >${USERCONFDIR}/gpgkey"
         exec 17<>${USERCONFDIR}/gpgkey
In the new kernel package, extramodules have been removed from the PATH. Therefore, the following action will need to be taken. You may need the KERNEL-headers package for Packages-Root. Other proposed fixes ``` local _kernver=$(cat $1/boot/*.kver|awk '{print $1}') ``` ``` diff --git a/lib/util-iso-boot.sh b/lib/util-iso-boot.sh index aa012b7..29a22c3 100644 --- a/lib/util-iso-boot.sh +++ b/lib/util-iso-boot.sh @@ -18,7 +18,7 @@ prepare_initcpio(){ prepare_initramfs(){ cp ${DATADIR}/mkinitcpio.conf $1/etc/mkinitcpio-${iso_name}.conf - local _kernver=$(cat $1/usr/lib/modules/*/version) + local _kernver=$(cat $1/usr/lib/modules/*/build/version) if [[ -n ${gpgkey} ]]; then su ${OWNER} -c "gpg --export ${gpgkey} >${USERCONFDIR}/gpgkey" exec 17<>${USERCONFDIR}/gpgkey ```
phoepsilonix commented 2024-01-27 08:05:00 +00:00 (Migrated from gitlab2.manjaro.org)

changed the description

changed the description
phoepsilonix commented 2024-01-27 08:05:09 +00:00 (Migrated from gitlab2.manjaro.org)

changed the description

changed the description
phoepsilonix commented 2024-01-27 11:22:54 +00:00 (Migrated from gitlab2.manjaro.org)

changed the description

changed the description
phoepsilonix commented 2024-01-27 11:23:56 +00:00 (Migrated from gitlab2.manjaro.org)

changed the description

changed the description
fhdk commented 2024-01-28 10:12:12 +00:00 (Migrated from gitlab2.manjaro.org)

Another option

local _kernver=$(cat /usr/lib/modules/*/kernelbase | awk -F'-' '{print $1}')
Another option local _kernver=$(cat /usr/lib/modules/*/kernelbase | awk -F'-' '{print $1}')
fhdk commented 2024-01-28 10:35:26 +00:00 (Migrated from gitlab2.manjaro.org)

mentioned in merge request !666

mentioned in merge request !666
fhdk commented 2024-01-28 11:37:52 +00:00 (Migrated from gitlab2.manjaro.org)

mentioned in merge request !667

mentioned in merge request !667
fhdk commented 2024-01-28 12:27:34 +00:00 (Migrated from gitlab2.manjaro.org)
https://gitlab.manjaro.org/tools/development-tools/manjaro-tools/-/merge_requests/319
fhdk (Migrated from gitlab2.manjaro.org) closed this issue 2024-01-28 12:27:34 +00:00
fhdk commented 2024-01-28 13:04:41 +00:00 (Migrated from gitlab2.manjaro.org)

Change implemented with !667 doesn't work

Using commit 9f5f2d5884 instead

bad copy paste using commit 3a5c25c063

Change implemented with !667 doesn't work Using commit 9f5f2d58846272c9775ba805fa7322736064a404 instead bad copy paste using commit 3a5c25c063d9aa795b98495f87a0b109af5b12c0
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tools/manjaro-tools#343
No description provided.