View previous topic :: View next topic |
Author |
Message |
friquant n00b
Joined: 26 Jan 2025 Posts: 2
|
Posted: Sun Jan 26, 2025 4:41 pm Post subject: Boot Issues 2015 Macbook Pro |
|
|
I installed gentoo onto an external drive on my 2015 Macbook Pro (macbookpro11,4) using Oddlama's gentoo-install. After rebooting, I held down the ALT key to see all available bootable drives, but the gentoo drive did not show up.
I also tried writing an EFI entry manually by first chrooting, then running:
Code: | efibootmgr --create --part 1 --label "Gentoo_usb" --disk /dev/sda1 --loader '\EFI\gentoo\bootx64.efi' -u 'init=/usr/lib/systemd/systemd root=/dev/sda2 rootfstype=ext4 raid=noautodetect'
|
The first time I rebooted after running `efibootmgr`, it actually worked---booted straight to gentoo! But subsequent reboots it only boots whatever is on the internal SSD, and holding ALT upon booting, the gentoo (USB) never shows up in the list.
What should I be inspecting in order to see what's missing here? In reading about boot loaders, and reading the README for gentoo-install, it's not clear to me exactly what gentoo-install is using for a boot loader.[/code] |
|
Back to top |
|
|
friquant n00b
Joined: 26 Jan 2025 Posts: 2
|
Posted: Sun Jan 26, 2025 11:29 pm Post subject: |
|
|
On a different post I saw these questions asked:
1. Booted into archlinux.
2.
Code: |
# from archlinux
$ efibootmgr
BootCurrent: 0000
Timeout: 5 seconds
BootOrder: 0005,0004,0003,0002,0001,0000,0080
Boot0000* FreeBSD HD(1,GPT,e5b0fd8b-c60f-11ef-8409-dd82cca81fa4,0x28,0x82000)/\efi\freebsd\loader.efi
Boot0001* gentoo HD(1,GPT,7d1bea94-705c-48c7-af20-162e6b726c7d,0x800,0x200000)/\vmlinuz.efi69006e0069007400720064003d005c0069006e0069007400720061006d00660073002e0069006d0067002000720064002e00760063006f006e0073006f006c0065002e006b00650079006d00610070003d006d00610063002d0075007300200072006f006f0074003d0055005500490044003d00350062003300390039003500640037002d0063006300380031002d0034003600310031002d0061003900300034002d00640038003600360031006100380037003900620063003900
Boot0002* Gentoo_usb HD(1,GPT,7d1bea94-705c-48c7-af20-162e6b726c7d,0x800,0x200000)/\EFI\gentoo\bootx64.efi69006e00690074003d002f007500730072002f006c00690062002f00730079007300740065006d0064002f00730079007300740065006d006400200072006f006f0074003d002f006400650076002f007300640061003100200072006f006f0074006600730074007900700065003d006500780074003400200072006100690064002d006e006f006100750074006f00640065007400650063007400
Boot0003* gentoo__try2_only-disk-loader HD(1,GPT,7d1bea94-705c-48c7-af20-162e6b726c7d,0x800,0x200000)/\EFI\gentoo\bootx64.efi
Boot0004* gentoo__try3_disk-loader-root HD(1,GPT,7d1bea94-705c-48c7-af20-162e6b726c7d,0x800,0x200000)/\EFI\gentoo\bootx64.efi72006f006f0074003d002f006400650076002f007300640061003200200072006f006f0074006600730074007900700065003d006500780074003400
Boot0005* rEFInd Boot Manager HD(1,GPT,9a23ff7e-b1d0-44fb-8eb9-4845e7f17e14,0x800,0x200000)/\EFI\refind\refind_x64.efi
Boot0080* Mac OS X PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)/Sata(0,0,0)/HD(2,GPT,fdbf9518-9399-4b8c-a307-58a24a9fd13c,0x64028,0x1d322330)/VenMedia(be74fcf7-0b7c-49f3-9147-01f4042e6842,957cf1b98a19304ab312863f4219c894)/\3C9D8437-563D-34E3-B91A-938F9BD3965A\System\Library\CoreServices\boot.efi
Boot0081* Mac OS X PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)/Sata(0,0,0)/HD(3,GPT,7c821df1-313e-44a5-b280-8c789cb21ed3,0x1d250438,0x135f20)
Boot0082* PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)/Sata(0,0,0)/HD(2,GPT,fdbf9518-9399-4b8c-a307-58a24a9fd13c,0x64028,0x1d322330)/VenMedia(be74fcf7-0b7c-49f3-9147-01f4042e6842,957cf1b98a19304ab312863f4219c894)/\3C9D8437-563D-34E3-B91A-938F9BD3965A\System\Library\CoreServices\boot.efi
BootFFFF* PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)/Sata(0,0,0)/HD(3,GPT,0791d0b0-f68e-4432-8aa1-09ecb463d8b7,0xa546358,0x8c00000)/\System\Library\CoreServices\boot.efi
|
3. chrooted into installation
4. Here are the requested outputs
Code: |
$ emerge --info
Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/desktop/systemd, gcc-14, glibc-2.40-r5, 6.11.6-arch1-1 x86_64)
=================================================================
System uname: Linux-6.11.6-arch1-1-x86_64-Intel-R-_Core-TM-_i7-4770HQ_CPU_@_2.20GHz-with-glibc2.40
KiB Mem: 16251424 total, 14352032 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Fri, 24 Jan 2025 19:03:22 +0000
Head commit of repository gentoo: 94481288235386df90badc87574084f3374d0c27
sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
app-misc/pax-utils: 1.3.8::gentoo
app-shells/bash: 5.2_p37::gentoo
dev-build/autoconf: 2.72-r1::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.30.6::gentoo
dev-build/libtool: 2.5.4::gentoo
dev-build/make: 4.4.1-r100::gentoo
dev-build/meson: 1.5.2::gentoo
dev-lang/perl: 5.40.0-r1::gentoo
dev-lang/python: 3.12.8_p1::gentoo, 3.13.1_p1::gentoo
dev-lang/rust-bin: 1.83.0::gentoo
llvm-core/clang: 18.1.8-r6::gentoo, 19.1.4::gentoo
llvm-core/llvm: 18.1.8-r6::gentoo, 19.1.4::gentoo
sys-apps/baselayout: 2.17::gentoo
sys-apps/sandbox: 2.39::gentoo
sys-apps/systemd: 256.7::gentoo
sys-devel/binutils: 2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc: 14.2.1_p20241221::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.40-r5::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: git
sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
priority: -1000
volatile: False
sync-git-verify-commit-signature: yes
Binary Repositories:
gentoobinhost
priority: 1
sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=9 --load-average=8"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEFLAGS="-j8"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/usr/bin/zsh"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus dri dts dvd dvdr encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg kf6compat lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp pam pango pcre pdf png policykit ppds qml qt5 qt6 readline sdl seccomp sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_13" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
|
Code: |
$ mount
/dev/sda2 on / type ext4 (rw,relatime)
/proc on /proc type proc (rw,relatime)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755,inode64)
copytoram on /run/archiso/copytoram type tmpfs (rw,relatime,size=12188568k,mode=755,inode64)
cowspace on /run/archiso/cowspace type tmpfs (rw,relatime,size=262144k,mode=755,inode64)
/dev/loop0 on /run/archiso/airootfs type squashfs (ro,relatime,errors=continue,threads=single)
tmpfs on /run/credentials/systemd-journald.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-network-generator.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-udev-load-credentials.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-tmpfiles-setup-dev-early.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-sysctl.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-sysusers.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-tmpfiles-setup-dev.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-tmpfiles-setup.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-networkd.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-vconsole-setup.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-resolved.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-firstboot.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/getty@tty1.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=1625140k,nr_inodes=406285,mode=700,inode64)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,nr_inodes=1048576,inode64)
airootfs on /tmp/gentoo-install/bind type overlay (rw,relatime,lowerdir=/run/archiso/airootfs,upperdir=/run/archiso/cowspace/persistent_/x86_64/upperdir,workdir=/run/archiso/cowspace/persistent_/x86_64/workdir,uuid=on)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=8045228k,nr_inodes=2011307,mode=755,inode64)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,nosuid,nodev,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
|
Code: |
$ ls -lR /boot
/boot:
total 46040
-rw-r--r-- 1 root root 148480 Jan 24 14:50 amd-uc.img
drwx------ 2 root root 4096 Jan 24 14:36 efi
-rw------- 1 root root 28952957 Jan 24 14:46 initramfs-6.6.67-gentoo-dist.img
-rw-r--r-- 1 root root 18033648 Jan 24 14:46 kernel-6.6.67-gentoo-dist
/boot/efi:
total 0
|
Code: |
$ ls -lR /efi
ls: cannot access '/efi': No such file or directory
|
Code: |
$ fdisk -l
Disk /dev/nvme0n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: Timetec PCIe 256GB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E5B02F1B-C60F-11EF-8409-DD82CCA81FA4
Device Start End Sectors Size Type
/dev/nvme0n1p1 40 532519 532480 260M EFI System
/dev/nvme0n1p2 532520 533543 1024 512K FreeBSD boot
/dev/nvme0n1p3 534528 500117503 499582976 238.2G FreeBSD ZFS
Disk /dev/loop0: 889.62 MiB, 932835328 bytes, 1821944 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: 541010A9E680
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: EB3C50B0-9B28-4200-B80C-D90A40DBE51D
Device Start End Sectors Size Type
/dev/sda1 2048 2099199 2097152 1G EFI System
/dev/sda2 2099200 1953525134 1951425935 930.5G Linux filesystem
|
Code: |
$ grep -r --exclude-dir=savedconfig "" /etc/portage
/etc/portage/repos.conf/gentoo.conf:[DEFAULT]
/etc/portage/repos.conf/gentoo.conf:main-repo = gentoo
/etc/portage/repos.conf/gentoo.conf:
/etc/portage/repos.conf/gentoo.conf:[gentoo]
/etc/portage/repos.conf/gentoo.conf:location = /var/db/repos/gentoo
/etc/portage/repos.conf/gentoo.conf:sync-type = git
/etc/portage/repos.conf/gentoo.conf:sync-uri = https://anongit.gentoo.org/git/repo/sync/gentoo.git
/etc/portage/repos.conf/gentoo.conf:auto-sync = yes
/etc/portage/repos.conf/gentoo.conf:sync-depth = 1
/etc/portage/repos.conf/gentoo.conf:sync-git-verify-commit-signature = yes
/etc/portage/repos.conf/gentoo.conf:sync-openpgp-key-path = /usr/share/openpgp-keys/gentoo-release.asc
/etc/portage/make.conf:# These settings were set by the catalyst build script that automatically
/etc/portage/make.conf:# built this stage.
/etc/portage/make.conf:# Please consult /usr/share/portage/config/make.conf.example for a more
/etc/portage/make.conf:# detailed example.
/etc/portage/make.conf:COMMON_FLAGS="-O2 -pipe"
/etc/portage/make.conf:CFLAGS="${COMMON_FLAGS}"
/etc/portage/make.conf:CXXFLAGS="${COMMON_FLAGS}"
/etc/portage/make.conf:FCFLAGS="${COMMON_FLAGS}"
/etc/portage/make.conf:FFLAGS="${COMMON_FLAGS}"
/etc/portage/make.conf:
/etc/portage/make.conf:# NOTE: This stage was built with the bindist USE flag enabled
/etc/portage/make.conf:
/etc/portage/make.conf:# This sets the language of build output to English.
/etc/portage/make.conf:# Please keep this setting intact when reporting bugs.
/etc/portage/make.conf:LC_MESSAGES=C.utf8
/etc/portage/package.use/installkernel:sys-kernel/installkernel dracut
/etc/portage/package.license:sys-kernel/linux-firmware linux-fw-redistributable no-source-code
/etc/portage/binrepos.conf/gentoobinhost.conf:# These settings were set by the catalyst build script that automatically
/etc/portage/binrepos.conf/gentoobinhost.conf:# built this stage.
/etc/portage/binrepos.conf/gentoobinhost.conf:# Please consider using a local mirror.
/etc/portage/binrepos.conf/gentoobinhost.conf:
/etc/portage/binrepos.conf/gentoobinhost.conf:[gentoobinhost]
/etc/portage/binrepos.conf/gentoobinhost.conf:priority = 1
/etc/portage/binrepos.conf/gentoobinhost.conf:sync-uri = https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64
|
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|