Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED:liveCD grub trouble-always have to specify configfile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
grunthus
Apprentice
Apprentice


Joined: 21 Apr 2005
Posts: 194
Location: Shetland UK

PostPosted: Thu Jan 19, 2006 5:40 pm    Post subject: SOLVED:liveCD grub trouble-always have to specify configfile Reply with quote

Hi,

I have been working on a live CD and although I am progressing with runlevels, Xorg and the like, I always seem to have to specify the grub config file by hand. i.e. CD goes in, reboot, drops into grub shell, type: configfile=/boot/grub/menu.1st, liveCD boots up fine

The HOWTO I have followed is the one on gentoo-wiki:
http://gentoo-wiki.com/HOWTO_build_a_LiveCD_from_scratch

My current liveCD's grub configuration is (showing only first entry which is the one I'm booting - others are nofb and memtest)

/boot/grub/menu.1st
Code:

default 0
timeout 30
splashimage=(cd)/boot/grub/splash.xpm.gz

title=LiveCD genkernel
        root (cd)
        kernel (cd)/boot/kernel-genkernel-x86-2.6.14-gentoo-r5 vga=ask root=/dev/ram0 init=/linuxrc looptype=squashfs loop=/livecd.squashfs udev nodevfs cdroot dodmraid
        initrd (cd)/boot/initramfs-genkernel-x86-2.6.14-gentoo-r5


The directory structure layout looks like this (as seen from outwith chroot)
Code:
bluemell grub # pwd
/root/livecd/source/boot/grub
bluemell grub # ls -al
total 357
drwxr-xr-x  2 root root    544 Jan 17 22:36 .
drwxr-xr-x  4 root root    304 Jan 18 11:20 ..
-rw-r--r--  1 root root   7776 Jan 16 09:36 e2fs_stage1_5
-rw-r--r--  1 root root   7504 Jan 16 09:36 fat_stage1_5
-rw-r--r--  1 root root   6816 Jan 16 09:36 ffs_stage1_5
-rw-r--r--  1 root root   1624 Jan 16 09:36 grub.conf.sample
-rw-r--r--  1 root root   6816 Jan 16 09:36 iso9660_stage1_5
-rw-r--r--  1 root root   8320 Jan 16 09:36 jfs_stage1_5
-rw-r--r--  1 root root    671 Jan 18 12:29 menu.1st
-rw-r--r--  1 root root   7008 Jan 16 09:36 minix_stage1_5
-rw-r--r--  1 root root   9216 Jan 16 09:36 reiserfs_stage1_5
-rw-r--r--  1 root root  33856 Jan 16 09:36 splash.xpm.gz
-rw-r--r--  1 root root    512 Jan 16 09:36 stage1
-rw-r--r--  1 root root 108328 Jan 16 09:36 stage2
-rw-r--r--  1 root root 108328 Jan 16 09:36 stage2_eltorito
-rw-r--r--  1 root root   7156 Jan 16 09:36 ufs2_stage1_5
-rw-r--r--  1 root root   6432 Jan 16 09:36 vstafs_stage1_5
-rw-r--r--  1 root root   9256 Jan 16 09:36 xfs_stage1_5
bluemell grub #


Significant thing is no symlinking of menu.1st to grub.conf (the HOWTO says liveCD (or squashfs?) doesn't support booting symlinks)
At no point have I run the grub-install program (if I should, what is the grub root() device?)

Finally, here is the source's boot directory (from within chroot)
Code:
 bluemell boot # pwd
/boot
bluemell boot # ls -al
total 4312
drwxr-xr-x   4 root root     304 Jan 18 11:20 .
drwxr-xr-x  18 root root     432 Jan 15 19:10 ..
-rw-r--r--   1 root root       0 Oct 20 04:25 .keep
-rw-r--r--   1 root root  936431 Jan 19 17:31 System.map-genkernel-x86-2.6.14-gentoo-r5
drwxr-xr-x   2 root root     544 Jan 17 22:36 grub
-rw-r--r--   1 root root  785746 Jan 19 17:32 initramfs-genkernel-x86-2.6.14-gentoo-r5
-rw-r--r--   1 root root 2683122 Jan 19 17:31 kernel-genkernel-x86-2.6.14-gentoo-r5
drwxr-xr-x   2 root root      80 Jan 18 11:20 memtest86


What do I need to do to get grub to pull up my grub config file menu.1st automatically?
Thanks
_________________
Read 'Free Software - Free Society' by RM Stallman


Last edited by grunthus on Wed Jan 25, 2006 8:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
IQgryn
l33t
l33t


Joined: 05 Sep 2005
Posts: 764
Location: WI, USA

PostPosted: Thu Jan 19, 2006 7:43 pm    Post subject: Reply with quote

Isn't the default file that it searches for menu.lst? (That's l as in llama). Ii think menu.1st is a typo or reading error.
Back to top
View user's profile Send private message
grunthus
Apprentice
Apprentice


Joined: 21 Apr 2005
Posts: 194
Location: Shetland UK

PostPosted: Fri Jan 20, 2006 12:47 am    Post subject: Reply with quote

Excellent, we are good to go with the llama every time! I should have spotted that one, as it seems quite a common noob error to make with grub. Hmm. That's slightly embarassing that I made that mistake actually.

Thank you for spotting it!
_________________
Read 'Free Software - Free Society' by RM Stallman
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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