You are not logged in.

#51 2021-01-08 20:19:32

NaNaN
Member
Registered: 2021-01-04
Posts: 65

Re: Offline Installation and efibootmgr

Hi Loqs. Thanks again.

Here is the output from mkinitcpio:

==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'archiso'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.10.3-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [memdisk]
==> ERROR: module not found: `phram'
  -> Running build hook: [archiso_shutdown]
  -> Running build hook: [archiso]
  -> Running build hook: [archiso_loop_mnt]
  -> Running build hook: [archiso_pxe_common]
==> WARNING: Possibly missing firmware for module: lantiq_gswip
==> WARNING: Possibly missing firmware for module: softing_cs
  -> Running build hook: [archiso_pxe_nbd]
  -> Running build hook: [archiso_pxe_http]
  -> Running build hook: [archiso_pxe_nfs]
  -> Running build hook: [archiso_kms]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
==> Generating module dependencies
==> Creating xz-compressed initcpio image: /boot/initramfs-linux.img
==> WARNING: errors were encountered during the build. The image may not be complete.

And the output of blkid

/dev/sdb1: PTUUID="90909090" PTTYPE="dos" PARTUUID="90909090-01"
/dev/sda1: UUID="C250-5E3C" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="ad3a050a-6427-e74b-b97c-afc51d41b7ad"
/dev/sda2: UUID="29d0e275-1368-432c-bf49-ce9d5018871c" TYPE="swap" PARTUUID="77092ec7-7446-0649-8368-b4c5b4398a70"
/dev/sda3: UUID="96a9f7af-3f6f-4136-9a15-66fe300a3d61" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="7c49d8e1-757c-5f40-81b9-3fc47501fc51"
/dev/sr0: BLOCK_SIZE="2048" UUID="2021-01-01-09-18-56-00" LABEL="ARCH_202101" TYPE="iso9660" PTTYPE="PMBR"
/dev/loop0: TYPE="squashfs"

Offline

#52 2021-01-10 17:09:48

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: Offline Installation and efibootmgr

  -> Running build hook: [archiso_shutdown]
  -> Running build hook: [archiso]
  -> Running build hook: [archiso_loop_mnt]
  -> Running build hook: [archiso_pxe_common]
==> WARNING: Possibly missing firmware for module: lantiq_gswip
==> WARNING: Possibly missing firmware for module: softing_cs
  -> Running build hook: [archiso_pxe_nbd]
  -> Running build hook: [archiso_pxe_http]
  -> Running build hook: [archiso_pxe_nfs]
  -> Running build hook: [archiso_kms]

Offline_installation#Remove_special_scripts_of_the_Live_environment
See also GRUB#Additional_arguments with respect to GRUB_DISABLE_LINUX_UUID as the generated grub,cfg is not using UUIDs and could be causing the issue.

Offline

#53 2021-01-10 18:12:31

NaNaN
Member
Registered: 2021-01-04
Posts: 65

Re: Offline Installation and efibootmgr

loqs wrote:

Offline_installation#Remove_special_scripts_of_the_Live_environment
See also GRUB#Additional_arguments with respect to GRUB_DISABLE_LINUX_UUID as the generated grub,cfg is not using UUIDs and could be causing the issue.

Hi Loqs. I went back in and triple-checked that the initialization scripts were in fact gone, and they were. I also uncommented GRUB_DISABLE_LINUX_UUID = true in grub.cfg but I am still getting the same kernel panic message when I boot debug.

Is there anything else I can try?

Offline

#54 2021-01-10 18:48:18

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: Offline Installation and efibootmgr

Did you run mkinitcpio outisde the chroot then?  If you ran it inside the chroot and the archiso hooks are not in the HOOKS array they should not be called and if they are not present in /etc/initcpio/hooks or /usr/lib/initcpio/hooks they should not be found and so should produce an error.

I was expecting GRUB_DISABLE_LINUX_UUID to already be uncommented as grub.cfg contained

		linux	/boot/vmlinuz-linux root=/dev/sda3 rw  loglevel=3 quiet

could be my lack of familiarity with grub.  At the grub menu use e to edit the Arch boot entry and see if it specifies root by UUID.

Offline

#55 2021-01-10 19:46:35

NaNaN
Member
Registered: 2021-01-04
Posts: 65

Re: Offline Installation and efibootmgr

Loqs, I did run mkinitcpio inside chroot. I didn't see the '/usr/lib/initcpio/hooks directory in the docs to be removed; I wasn't aware it even existed.

I do have a hooks directory under '/usr/lib64/initcpio'

Here is the contents of `hooks`:

drwxr-xr-x 2 root root 4096 Jan  1 04:18 .
drwxr-xr-x 5 root root 4096 Jan  1 04:18 ..
-rw-r--r-- 1 root root 8906 Dec  1 03:23 archiso
-rw-r--r-- 1 root root 1352 Dec  1 03:23 archiso_loop_mnt
-rw-r--r-- 1 root root 2794 Dec  1 03:23 archiso_pxe_common
-rw-r--r-- 1 root root 2211 Dec  1 03:23 archiso_pxe_http
-rw-r--r-- 1 root root 1555 Dec  1 03:23 archiso_pxe_nbd
-rw-r--r-- 1 root root 1214 Dec  1 03:23 archiso_pxe_nfs
-rw-r--r-- 1 root root  155 Dec  1 03:23 archiso_shutdown
-rw-r--r-- 1 root root   85 Nov 12 05:12 btrfs
-rw-r--r-- 1 root root  438 Oct 28 12:45 consolefont
-rw-r--r-- 1 root root  314 Nov 13  2019 dmraid
-rw-r--r-- 1 root root 5445 Sep  3 16:27 encrypt
-rw-r--r-- 1 root root  406 Oct 28 12:45 keymap
-rw-r--r-- 1 root root  585 Jun  2  2020 lvm2
-rw-r--r-- 1 root root  293 Oct 28 12:45 memdisk
-rw-r--r-- 1 root root 3167 Nov 13  2019 net
-rw-r--r-- 1 root root 1183 Oct 28 12:45 resume
-rw-r--r-- 1 root root  126 Oct 28 12:45 shutdown
-rw-r--r-- 1 root root  334 Oct 28 12:45 sleep
-rw-r--r-- 1 root root  529 Dec 16 09:38 udev
-rw-r--r-- 1 root root  814 Oct 28 12:45 usr

I renamed the hooks directory in /usr/lib64/initcpio.

Then, after renaming the directory and while still inside chroot, I used 'mkinitcpio -P linux' and get the following:

==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'archiso'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.10.3-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
==> ERROR: runtime script for `udev' not found
  -> Running build hook: [modconf]
  -> Running build hook: [memdisk]
==> ERROR: module not found: `phram'
==> ERROR: runtime script for `memdisk' not found
  -> Running build hook: [archiso_shutdown]
==> ERROR: runtime script for `archiso_shutdown' not found
  -> Running build hook: [archiso]
==> ERROR: runtime script for `archiso' not found
  -> Running build hook: [archiso_loop_mnt]
==> ERROR: runtime script for `archiso_loop_mnt' not found
  -> Running build hook: [archiso_pxe_common]
==> WARNING: Possibly missing firmware for module: lantiq_gswip
==> WARNING: Possibly missing firmware for module: softing_cs
==> ERROR: runtime script for `archiso_pxe_common' not found
  -> Running build hook: [archiso_pxe_nbd]
==> ERROR: runtime script for `archiso_pxe_nbd' not found
  -> Running build hook: [archiso_pxe_http]
==> ERROR: runtime script for `archiso_pxe_http' not found
  -> Running build hook: [archiso_pxe_nfs]
==> ERROR: runtime script for `archiso_pxe_nfs' not found
  -> Running build hook: [archiso_kms]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
==> Generating module dependencies
==> Creating xz-compressed initcpio image: /boot/initramfs-linux.img
==> WARNING: errors were encountered during the build. The image may not be complete.

GRUB_DISABLE_LINUX_UUID was commented out for sure. I just checked and it's still uncommented.

In the GRUB loader, I see '--set=root 96a9f7....a3d61 '

Just so we're on the exact same page, I just want to tell you that after I uncommented out GRUB_DISABLE_LINUX_UUID, I did not rerun grub-install or grub-mkconfig. Should I have rerun those commands?

Offline

#56 2021-01-10 19:54:17

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: Offline Installation and efibootmgr

Comment out GRUB_DISABLE_LINUX_UUID.  I thought it might be uncommented.  Then rerun grub-mkconfig.

Check /etc/mkinitcpio.conf HOOKS array to see if it contains the archiso hooks.  You need to remove them from whatever config file is including them.
Then rebuild the initrd.

Offline

#57 2021-01-10 20:28:17

NaNaN
Member
Registered: 2021-01-04
Posts: 65

Re: Offline Installation and efibootmgr

Loqs, I commented out GRUB_DISABLE_LINUX_UUID.

I also uncommented out from /etc/mkinitcpio.conf file, the "sane" configuration which it says, "should boot". When I try and rebuild the initrd, I only get one error now: 'runtime script for udev not found'. So, I see that udev is required so I wanted to make sure it's on the system. pacman -Qs udev shows: system and service manager

I'm still looking myself to see if I can find this script. Would you have any suggestions?

Offline

#58 2021-01-10 20:32:32

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: Offline Installation and efibootmgr

pacman -Qkk systemd

As /usr/lib/initcpio/hooks/udev is provided by systemd.

Offline

#59 2021-01-10 20:38:22

NaNaN
Member
Registered: 2021-01-04
Posts: 65

Re: Offline Installation and efibootmgr

I ran the pacman command and got:

warning: systemd: /usr/lib/initcpio/hooks (No such file or directory)
warning: systemd: /usr/lib/initcpio/hooks/udev (No such file or directory)
warning: systemd: /var/log/journal (GID mismatch)
systemd: 1839 total files, 3 altered files

This is because I renamed the hooks directory. Should I rename it back to hooks?

Offline

#60 2021-01-10 20:44:01

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: Offline Installation and efibootmgr

What exactly did you rename?  What was the original name and what did you change it to?

Offline

#61 2021-01-10 20:52:24

NaNaN
Member
Registered: 2021-01-04
Posts: 65

Re: Offline Installation and efibootmgr

In post #54 I think I misinterpreted

and if they are not present in /etc/initcpio/hooks or /usr/lib/initcpio/hooks

I thought the 'hooks' directory contained the hooks that were making mkinitcpio error out, so I just renamed the directory.

I renamed that directory back to hooks and rebuilt the initd, rebooted, and viola, I'm in!!!!!!!!!!!

Thank you!!!

Is there some project I can donate to your cause? A beer? Anything?

Offline

Board footer

Powered by FluxBB