[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grub-help
Subject:    Re: grub in mac
From:       Peter Cheung <mcheung63 () hotmail ! com>
Date:       2015-11-14 16:21:05
Message-ID: BLU436-SMTP368B57689FDFAE2860F604B5100 () phx ! gbl
[Download RAW message or body]

Let me checkout why the code fail, please wait

> Andrei Borzenkov <arvidjaar@gmail.com> 於 2015年11月14日 下午9:10 寫道:
> 
> 14.11.2015 07:48, mcheung63@hotmail.com пишет:
> > I fixed the problem, the root cause is : the following if-loop is never be true \
> > in apple
> 
> Please explain. Your logs clearly show that special in mount point is character \
> device, so this is obviously true in this case (and for mount point device size was \
> also correct). 
> Did you try using /dev/rdisk as install device as I suggested?
> 
> > 
> > #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 <arvidjaar@gmail.com> 於 2015年11月13日 上午2:13 \
> > > 寫道: 
> > > 12.11.2015 13:16, mcheung63@hotmail.com пишет:
> > > > 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
> > > Help-grub@gnu.org
> > > https://lists.gnu.org/mailman/listinfo/help-grub
> > 
> 


_______________________________________________
Help-grub mailing list
Help-grub@gnu.org
https://lists.gnu.org/mailman/listinfo/help-grub


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic