Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-11043

fchroot silently fails while installing/chrooting into stage3 environments on non supported cpu/instructions

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Severe (Users) Severe (Users)
    • None
    • None
    • None
    • a failed fchroot can be confusing and not provide any output indicating you are not actually in the fchroot.

      Hi,

      the current (25.02.2023) install tutorial has a section named "Install Guide: Chroot into Funtoo" where you can chroot into the expanded tarball base system. I did try to chroot by using fchroot into a westmere based gnome system on a P6200 Pentium (listed in the funtoo cpu database as a westmere system) but wasnt aware of the fact that i still was on the live systems in-memory overlayfs. No error, no warning, no faillure message at all. Trying to update the system with ego and emerging packages into that system failed with totally unexpected errors. After doing some research i found out, that though my P6200 cpu is listed as westmere, it does not support some of the instructions expected by the binaries, mainly AES and SSE4_x ones. Downgrading to a nehalem build also didnt work. The only one from the prebuild ones working is the Core2 tarball. The previous builds failed (silently) on a "Illegal Instruction" exception that made the chrooting fail.

      In short:

      Trying to chroot into a prebuild stage3 with fchroot will silently fail (no indication or warning/error message of failure of some kind). Just write a "leaviing chroot" in white color at the last line you mostly will not notice at all. On the nehalem build i didnt even got that line.

      "root # fchroot /mnt/funtoo /bin/bash --login
      fchroot #"

      simply fails leaving you in "/mnt/funtoo" or wherever you are at that moment

      Using:

      root # cd /mnt/funtoo
      root # mount --rbind /proc proc
      root # mount --rbind /sys sys
      root # mount --rbind /dev dev
      root # cp /etc/resolv.conf /mnt/funtoo/etc/
      root # chroot . /bin/su --login
      chroot #

      will throw a "Illegal Instruction" on the "chroot . /bin/su --login" line.
      But i did not get a illegal instruction exception on the nehalem build, but only the westmere build reported that failure. I couldn explain that. Booting that system from grub manually lead to a kernel panic 0x00000004 (Illegal Instruction).

      It really would be helpful to new funtoo or less experienced linux user to show some sort of failure message on the fchroot. There should be some extra checks with clear visual indication that something failed there.

      I did write about this issue to the forum if someone is interested in:

      https://forums.funtoo.org/topic/5119-cant-install-funtoo-several-error-messages

      https://forums.funtoo.org/topic/5120-what-stage3-to-use-for-pentium-6200-westmere

            Unassigned Unassigned
            kery kery
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: