[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grub in mac
From: |
address@hidden |
Subject: |
Re: grub in mac |
Date: |
Sat, 14 Nov 2015 12:48:14 +0800 |
I fixed the problem, the root cause is : the following if-loop is never be true
in apple
#if GRUB_DISK_DEVS_ARE_CHAR
if (S_ISCHR (st.st_mode))
#else
if (S_ISBLK (st.st_mode))
#endif
ret = grub_util_get_fd_size_os (fd, name, log_secsize);
So i force the line "ret = grub_util_get_fd_size_os (fd, name, log_secsize);”
to be execute, then everything work. I am using this command "hdiutil attach
-imagekey diskimage-class=CRawDiskImage -nomount hd.img” to mount my loopback.
thanks
from Peter
> Andrei Borzenkov <address@hidden> 於 2015年11月13日 上午2:13 寫道:
>
> 12.11.2015 13:16, address@hidden пишет:
>> I am in mac, grub called grub_util_get_fd_size() in unix/hostdisk.c, should
>> i copy it to apple/hostdisk.c and fix the bug?
>>
>
> Apparently GRUB expects char devices on Apple. Try
>
> grub-install ... /dev/rdisk2
>
> instead. If it does not work, please send verbose log again.
>
>
>
>
> _______________________________________________
> Help-grub mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-grub
- RE: grub in mac, (continued)
- RE: grub in mac, Peter Cheung, 2015/11/10
- Re: grub in mac, Andrei Borzenkov, 2015/11/10
- RE: grub in mac, Peter Cheung, 2015/11/10
- Re: grub in mac, Andrei Borzenkov, 2015/11/11
- RE: grub in mac, Peter Cheung, 2015/11/12
- Re: grub in mac, Andrei Borzenkov, 2015/11/12
- Re: grub in mac, address@hidden, 2015/11/12
- Re: grub in mac, address@hidden, 2015/11/12
- Re: grub in mac, address@hidden, 2015/11/12
- Re: grub in mac, Andrei Borzenkov, 2015/11/12
- Re: grub in mac,
address@hidden <=
- Re: grub in mac, Andrei Borzenkov, 2015/11/14
- Re: grub in mac, Peter Cheung, 2015/11/15
- RE: grub in mac, Peter Cheung, 2015/11/10