Fix for an error and Warning in the mkinitcpio command in the prepare_initramfs function in utils-iso-boot.sh.(WARNING: errors were encountered during the build. The image may not be complete.) #344

Open
opened 2024-03-27 06:52:31 +00:00 by phoepsilonix · 5 comments
phoepsilonix commented 2024-03-27 06:52:31 +00:00 (Migrated from gitlab2.manjaro.org)
==> Prepare [/iso/boot]
 --> overlayfs mount: [/var/lib/manjaro-tools/buildiso/gnome/x86_64/bootfs]
  -> Copying initcpio ...

    <skip>

==> Creating xz-compressed initcpio image: '/boot/initramfs.img'
WARNING: errors were encountered during the build. The image may not be complete.

One reason for this is that the symbolic links for libnss_files.so.2 and libnss_dns.so.2 do not exist in the glibc package.
We suggest commenting out the add_symlink in in miso_pxe_common.

diff --git a/initcpio/install/miso_pxe_common b/initcpio/install/miso_pxe_common
index eec9a7e..3d935f1 100644
--- a/initcpio/install/miso_pxe_common
+++ b/initcpio/install/miso_pxe_common
@@ -8,9 +8,9 @@ build() {
     add_binary /usr/lib/initcpio/ipconfig /bin/ipconfig
 
     # Add hosts support files+dns
-    add_symlink /usr/lib/libnss_files.so.2 $(readlink /usr/lib/libnss_files.so.2)
+    #add_symlink /usr/lib/libnss_files.so.2 $(readlink /usr/lib/libnss_files.so.2)
     add_binary $(readlink -f /usr/lib/libnss_files.so.2)
-    add_symlink /usr/lib/libnss_dns.so.2 $(readlink /usr/lib/libnss_dns.so.2)
+    #add_symlink /usr/lib/libnss_dns.so.2 $(readlink /usr/lib/libnss_dns.so.2)
     add_binary $(readlink -f /usr/lib/libnss_dns.so.2)
 
     add_dir /etc
``` ==> Prepare [/iso/boot] --> overlayfs mount: [/var/lib/manjaro-tools/buildiso/gnome/x86_64/bootfs] -> Copying initcpio ... <skip> ==> Creating xz-compressed initcpio image: '/boot/initramfs.img' WARNING: errors were encountered during the build. The image may not be complete. ``` One reason for this is that the symbolic links for libnss_files.so.2 and libnss_dns.so.2 do not exist in the glibc package. We suggest commenting out the add_symlink in in miso_pxe_common. ```diff diff --git a/initcpio/install/miso_pxe_common b/initcpio/install/miso_pxe_common index eec9a7e..3d935f1 100644 --- a/initcpio/install/miso_pxe_common +++ b/initcpio/install/miso_pxe_common @@ -8,9 +8,9 @@ build() { add_binary /usr/lib/initcpio/ipconfig /bin/ipconfig # Add hosts support files+dns - add_symlink /usr/lib/libnss_files.so.2 $(readlink /usr/lib/libnss_files.so.2) + #add_symlink /usr/lib/libnss_files.so.2 $(readlink /usr/lib/libnss_files.so.2) add_binary $(readlink -f /usr/lib/libnss_files.so.2) - add_symlink /usr/lib/libnss_dns.so.2 $(readlink /usr/lib/libnss_dns.so.2) + #add_symlink /usr/lib/libnss_dns.so.2 $(readlink /usr/lib/libnss_dns.so.2) add_binary $(readlink -f /usr/lib/libnss_dns.so.2) add_dir /etc ```
phoepsilonix commented 2024-03-27 06:56:02 +00:00 (Migrated from gitlab2.manjaro.org)

mentioned in issue packages/extra/manjaro-tools-git#4

mentioned in issue packages/extra/manjaro-tools-git#4
phoepsilonix commented 2024-03-28 04:40:10 +00:00 (Migrated from gitlab2.manjaro.org)

changed title from Fix for an error and Warning in the mkinitcpio command in the prepare_initramfs function in utils-iso-boot.sh. to Fix for an error and Warning in the mkinitcpio command in the prepare_initramfs function in utils-iso-boot.sh.{+(WARNING: errors were encountered during the build. The image may not be complete.)+}

changed title from **Fix for an error and Warning in the mkinitcpio command in the prepare_initramfs function in utils-iso-boot.sh.** to **Fix for an error and Warning in the mkinitcpio command in the prepare_initramfs function in utils-iso-boot.sh.{+(WARNING: errors were encountered during the build. The image may not be complete.)+}**
phoepsilonix commented 2024-03-28 04:40:10 +00:00 (Migrated from gitlab2.manjaro.org)

changed the description

changed the description
fhdk commented 2025-08-30 06:22:20 +00:00 (Migrated from gitlab2.manjaro.org)
See commit https://gitlab.manjaro.org/tools/development-tools/manjaro-tools/-/commit/be70d0203ff641cff89d1a94f6fda01c2378732c
fhdk commented 2025-08-30 06:23:01 +00:00 (Migrated from gitlab2.manjaro.org)

mentioned in commit be70d0203f

mentioned in commit be70d0203ff641cff89d1a94f6fda01c2378732c
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#344
No description provided.