Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 17512

Summary: The correct way to do Lilo bootdisks
Product: [OLD] Docs-user Reporter: Ingo -LaSombra- Hoffmann <ingo.hoffmann>
Component: Gentoo Linux x86 Installation GuideAssignee: Docs Team <docs-team>
Status: RESOLVED INVALID    
Severity: enhancement CC: azarah
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ingo -LaSombra- Hoffmann 2003-03-14 09:37:48 UTC
1. ln -sf /boot/System.map /
2. ln -sf /boot/bzImage /vmlinuz
3. mkboot

That's it :)
Simple as that, after mkboot you'll have a very functional Lilo bootdisk.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-16 13:29:17 UTC
Ok, so why dont you just do:

  # mkboot /boot/bzImage

?

I vote to close this, as the manpage say:

------------------------------------------------
SYNOPSYS
       mkboot [-r rootpartition] [-i] [kernel]

------------------------------------------------

meaning it should be obvious to supply the path of the kernel
if not the default.
Comment 2 Ingo -LaSombra- Hoffmann 2003-03-16 13:36:22 UTC
Because I tried this many times and it trashed my kernel and my System.map doing unnecessary symlinks. This way I showed worked smoothly.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-19 09:52:54 UTC
You do not need any special symlinks, etc.  Just make sure System.map and bzImage with lilo's stuff is in /boot.  Noting special.

------------------
workshop root # ls /boot/
System.map  boot  boot.0200  boot.b  bzImage
workshop root # mkboot /boot/bzImage 

Insert a floppy diskette into your boot drive, and press <Return>. 

Creating a lilo bootdisk...
+ mkdir /tmp/boot12489
+ mke2fs -q /dev/fd0
mke2fs 1.32 (09-Nov-2002)
+ mount -t ext2 /dev/fd0 /tmp/boot12489
+ cp /boot/boot.b /tmp/boot12489/boot.b
+ cp /boot/bzImage /tmp/boot12489/vmlinuz
+ cd /tmp/boot12489
+ cat
+ lilo -C lilo.conf
Warning: COMPACT may conflict with LBA32 on some systems
Added linux *
++ set +e
++ cd /
++ umount /dev/fd0
++ rmdir /tmp/boot12489
...Success.
workshop root # ls /boot/
System.map  boot  boot.0200  boot.b  bzImage
workshop root # ls /
bin  boot  dev  etc  home  lib  lost+found  mnt  opt  proc  root  sbin  space  tmp  usr  var
workshop root # mount /mnt/floppy/
ls /workshop root # ls /mnt/floppy/
boot.b  lilo.conf  lost+found  map  vmlinuz
workshop root # 
Comment 4 Ingo -LaSombra- Hoffmann 2003-03-19 16:14:09 UTC
Hmmmmm, strange... but ok as soon this hits the Install Documentation, don't you think? 
:-)