Jump to content
Read the Funtoo Newsletter: Summer 2023 ×

lego12239

Members
  • Posts

    26
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by lego12239

  1. Look, to boot to your clean(base) funtoo system you don't need to do chroot or emerge/ego. Just:

    - make partition
    - make fs
    - mount this partition
    - unpack stage3 (cd /mnt; unxz -c ~/stage3-intel64-nehalem-1.4-release-std-2020-09-07.tar.xz | tar -x --numeric-owner --xattrs --xattrs-include='*' --acls )
    - clear root passwd (delete "x" in /mnt/etc/passwd)
    - install boot loader:

       - without EFI:
       grub-install --target=i386-pc --boot-directory=/mnt/boot/ /dev/sdc
       - with EFI:
    mkdir /mnt/boot/efi; mount /dev/sdc2 /mnt/boot/efi; grub-install --target=x86_64-efi --boot-directory=/mnt/boot/ --efi-directory=/mnt/boot/efi --removable

    - write a simple /mnt/boot/grub/grub.cfg, like:
     

    set timeout=2
    
    menuentry 'Funtoo' {
            insmod gzio
            insmod part_msdos
            insmod ext2
            set root='(hd0,msdos3)'
            echo    'Loading kernel...'
            linux   /boot/kernel-debian-sources-x86_64-4.8.15-1 root=/dev/sda3 ro
            echo    'Loading initial ramdisk...'
            initrd  /boot/initramfs-debian-sources-x86_64-4.8.15-1
    }

    - umount /mnt/boot/efi; umount /mnt;
    - reboot to fresh OS
    - login as root
    - set new passwod for root with passwd program
    - ego sync; epro mix-ins no-systemd; emerge -auND @world
    - etc

    The goal of these steps are to minimize actions in the installation environment and do most of them in the fresh Funtoo instance(this is simpler).

  2. 34 minutes ago, kery said:

    Hi folks,

    So, what i found out so far:
    - inside the fchroot (pretty sure something here failed) running a "cat /etc/fstab" reveals a "overlay / overlay defaults 0 0". If i am right, i should see the sample fstab here instead
    - "df -h /" says "overlay 1.8G 544M 1.3G 31%".
    - "grub-install --target=i386-pc --no-floppy /dev/sda fails with "grub-install: error: failed to get path of 'overlay'"
     

    Try to specify a path to boot dir with --boot-directory option. Like this:

     

    grub-install --target=i386-pc --no-floppy --boot-directory=/mnt/funtoo/boot/ /dev/sda

     

  3. On 9/10/2021 at 9:46 AM, drobbins said:

    I have a full time job and also a toddler, a wife, two kids in college, and two more kids in elementary and middle school ?

    ? Daniel, i have only 2 kids and no free time at all. I want to send a few patches for funtoo network scripts infrastructure duringabout several month, but  I stupidly do not have enough time for this :-D. How do you manage all this :-D?

  4. IIUC, if you get a power failure, then all new data will be lost, isn't it(or you mount /home from ssd/hdd?)? If your workflow consist of running several programs, then after first run every program should start fast in any case, due to fs blocks cache. Thus, how this speeds are differ(program second start from ssd/hdd and from tmpfs)?

  5. On 11/30/2020 at 3:43 PM, rekena said:

    but the grub does not load me

    What does it mean? What error message or what behaviour do you see?

     

     

    On 11/30/2020 at 3:43 PM, rekena said:

    linux /kernel-debian-sources-x86_64-5.9.6_p1

    On 11/30/2020 at 3:43 PM, rekena said:

    initrd /initramfs-debian-sources-x86_64-5.9.6_p1

    Do you really have kernel and initramfs in the fs root(instead of /boot)?

     

×
×
  • Create New...