[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Workaround for installing Debian onto PowerMacs (2020-02-02 image)



Having done the complete install (including the workaround steps) yesterday, and not wanting to spend the time to do it all again, I booted into rescue mode and executes a shell in the /target system.

I had to manually mount /boot/grub from /dev/sa2 because the rescue mode didn't do it automatically.

Then to get the information Adrian wanted, I executed the following script

# df -TP
Filesystem     Type     1024-blocks    Used Available Capacity Mounted on
/dev/kmac/root ext4        19092136 1156780  16942488       7% /
devtmpfs       devtmpfs     1881600       0   1881600       0% /dev
tmpfs          tmpfs         406656    1664    404992       1% /run
/dev/sda3      ext2          242093   64566    165028      29% /boot
/dev/sda2      hfs           124990    6510    118480       6% /boot/grub

# ofpathname /dev/sda2
/ht@0,f2000000/pci@5/k2-sata-root@c/@-1/@0:2

# nvram --print-config=boot-device
/ht@0,f2000000/pci@5/k2-sata-root@c/@-1/@0:2,\grub

# grub-install --macppc-directory=/boot/grub
Installing for powerpc-ieee1275 platform.
Installation finished. No error reported.

# export boot_device=$(nvram --print-config=boot-device)

#nvsetenv boot-device ${boot_device%%\\\\BootX}\\grub

# nvram --print-config=boot-device
/ht@0,f2000000/pci@5/k2-sata-root@c/@-1/@0:2,\grub

# ls -l /boot/grub
total 88
drwxr-xr-x 1 root root     3 Feb  6 15:46 System
drwxr-xr-x 1 root root     3 Feb  6 15:46 fonts
-rw-r--r-- 1 root root 82760 Feb  7 15:30 grub
-r--r--r-- 1 root root  6018 Feb  6 15:46 grub.cfg
-rw-r--r-- 1 root root  1024 Feb  6 15:46 grubenv
-rw-r--r-- 1 root root     0 Feb  6 15:46 mach_kernel
drwxr-xr-x 1 root root   217 Feb  7 15:30 powerpc-ieee1275

Still, when I rebooted without the installer CD, I got the folder icon with blinking question mark.

Hope it helps!
Rick


Reply to: