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

linux kernel on HFS+ volume



Hi,

I currently try to boot a GNU/Linux installation on a HFS+ partition  
where Mac OS X is also installed, using tricks similar to these:
http://www.linuxfromscratch.org/hints/downloads/files/ 
lfs_next_to_existing_systems.txt

With only one partition:
* Free disk space would not be fragmented because of partitioning
* To install GNU/Linux on a new Mac, its hard disk wouldn't have to be  
partitioned and all software re-installed
* Installation and removal of GNU/Linux would be very Mac-like: To  
install, just copy a directory from a disk image, to remove, delete it.

I managed to create a yaboot boot folder on the HFS+ directory, using  
the procedure described below the line.

However, I can't get yaboot to load a kernel from a HFS+ partition.  
yaboot.conf says:
[...]  /boot should never be an HFS filesystem.  [...]

Why? Is there something that can be done? Will yaboot 2 support this?

Thanks,

Martin


------------------------------------------
HowTo create a boot folder booting yaboot:

Using Mac OS X, put inside /boot:
* the yaboot binary
* a yaboo.conf with instructions on how to boot GNU/Linux
* ofboot.b, copied from a bootstrap partition. Edit it so that the part  
after the partition number for OS X says:
     ",\System\Library\CoreServices\BootX".
     Then, make sure that the "type" is "tbxi". !! emacs and vi remove  
the type when editing the file !! You can verify with  
"/Developer/Tools/GetFileInfo", and you can set the type with  
"/Developer/Tools/SetFile -t tbxi /boot/ofboot.b"
* an empty file called "Finder" (if you want "Startup Disk" of Mac OS X  
to recognize it as a System folder)
* a file called "System". (for same reasson as "Finder"). Its resource  
will tell the "Startup Disk" of Mac OS X what version of "Mac OS" the  
boot folder contains. Create the resource:
/Developer/Tools/Rez -o System << "EOF"
data 'vers' (1, purgeable) { $"1000 8000 0000 06" $"79 6162 6f6f 74" };
EOF