View previous topic :: View next topic |
Author |
Message |
hewig-ovens n00b

Joined: 12 Feb 2010 Posts: 5 Location: china
|
Posted: Sat Feb 13, 2010 6:57 am Post subject: why /boot/boot is a symbolic link? |
|
|
#file /boot/boot
#/boot/boot: symbolic link to '.'
I am very curious about why~ _________________ it really sucks |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55178 Location: 56N 3W
|
Posted: Sat Feb 13, 2010 10:35 am Post subject: |
|
|
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
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 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 |
|
 |
hewig-ovens n00b

Joined: 12 Feb 2010 Posts: 5 Location: china
|
Posted: Sun Feb 14, 2010 7:55 am Post subject: |
|
|
NeddySeagoon,thanks very much~  _________________ it really sucks |
|
Back to top |
|
 |
|
|
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
|
|