Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
why /boot/boot is a symbolic link?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
hewig-ovens
n00b
n00b


Joined: 12 Feb 2010
Posts: 5
Location: china

PostPosted: Sat Feb 13, 2010 6:57 am    Post subject: why /boot/boot is a symbolic link? Reply with quote

#file /boot/boot
#/boot/boot: symbolic link to '.'
I am very curious about why~
_________________
it really sucks
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54391
Location: 56N 3W

PostPosted: Sat Feb 13, 2010 10:35 am    Post subject: Reply with quote

hewig-ovens,

Its to keep the grub documentation simple.

When you do not have a boot partition and /boot is a directory on the / (root) partiton, the pathname to your kernel is
Code:
/boot/kernel...

and the root (hdx,y) statement points to your / (root) partition.
Now everything works as expected.

When you have a real boot, the root (hdx,y) statement points to the boot partition and a kernel at /boot/kernel... will not be found as the path /boot does not exist.
As the filesystem tree is not assembled when grub boots the system, you can't point root (hd,x,y) to / as /boot is not attached.

The solution is a symlink called boot, pointing to itseld (.) so the kernel can still be at
Code:
 /boot/kernel...
but now, the symlink is used to satisfy the reference to /boot
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
hewig-ovens
n00b
n00b


Joined: 12 Feb 2010
Posts: 5
Location: china

PostPosted: Sun Feb 14, 2010 7:55 am    Post subject: Reply with quote

NeddySeagoon,thanks very much~ :idea:
_________________
it really sucks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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