[Solved] Debirf and grub2

Kernels & Hardware, configuring network, installing services

[Solved] Debirf and grub2

Postby aab » 2011-01-03 17:34

Ok, after reading http://forums.debian.net/viewtopic.php?f=16&t=34902 about debirf, i decided to give it a try.
The steps were easy enough to follow; only i've had to do it as root and only using a kernel already on the system building the new kernel and initrd. Otherwise, the process could not be completed.
After that, i had to include the new created "disk image" into grub2; the link above provides a way to do it, but with grub (grub-legacy).
I followed the instructions on http://ubuntuforums.org/showthread.php?t=1195275 (section 6, Adding Entries to Grub 2) to create a custom grub2 entry; the file /etc/grub.d/40_custom with the following content:
Code: Select all
echo "Adding 40_custom menu entries." >&2
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry   "Debirf xkiosk" {
linux   /home/aab3r/.debirf/xkiosk/vmlinuz-2.6.32-5-686 setkmap=es
initrd   /home/aab3r/.debirf/xkiosk/debirf-xkiosk_squeeze_2.6.32-5-686.cgz}

I've chmod+x the file, and then, if i execute "update-grub", i get a line saying "Adding 40_custom menu entries.", but the menu entry won't appear when i reboot.
Is there any other way to add custom entries to grub2?
Last edited by aab on 2011-01-07 15:09, edited 1 time in total.
Posts: 19
Joined: 2010-10-08 17:44

Re: Debirf and grub2

Postby edbarx » 2011-01-03 19:23

Are you sure you are keeping the kernels under /home?
Debian == { > 30, 000 packages }; Debian != systemd
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.
User avatar
Posts: 5399
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E

Re: Debirf and grub2

Postby aab » 2011-01-04 18:32

edbarx wrote:Are you sure you are keeping the kernels under /home?

Hi, thanks for the reply.
Yes, that's where debirf created it; following the link i posted it seemed ok.
EDIT: Just in case, i've moved both kernel and initrd files into /boot, re-run update-grub... no success.
Posts: 19
Joined: 2010-10-08 17:44

Re: Debirf and grub2

Postby llivv » 2011-01-04 21:36

post what files you now have in your /boot directory/
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.
User avatar
Posts: 5484
Joined: 2007-02-14 18:10
Location: cold storage

Re: Debirf and grub2

Postby aab » 2011-01-05 15:45

llivv wrote:post what files you now have in your /boot directory/

As you can see, i've last liquorix kernel, last squeeze kernel and debirf created kernel:
Code: Select all
ls /boot/
config-2.6.32-5-686 initrd.img-2.6.32-5-686 System.map-2.6.36-2.dmz.7-liquorix-686 config-2.6.36-2.dmz.7-liquorix-686 initrd.img-2.6.32-5-686.dpkg-bak vmlinuz-2.6.32-5-686 debirf-xkiosk_squeeze_2.6.32-5-686.cgz  initrd.img-2.6.36-2.dmz.7-liquorix-686  vmlinuz-2.6.36-2.dmz.7-liquorix-686 grub System.map-2.6.32-5-686
Posts: 19
Joined: 2010-10-08 17:44

Re: Debirf and grub2

Postby aab » 2011-01-07 15:09

Ok, it's solved now.
After reading some grub2 documentation, i created a "42_debirf" entry in /etc/grub.d, with the following contents:
Code: Select all
echo "Adding Debirf grub2 entry"
cat << EOF
menuentry "Debirf xkiosk" {
#insmod part_msdos
#insmod ext2
#set root=(hd0,2)
#search --no-floppy --fs-uuid --set e7e5b6aa-2838-4a1c-b871-1f7d9109105a
echo    'Loading Debirf_xkiosk ...'
linux   /boot/vmlinuz-2.6.36-2.dmz.8-liquorix-686
initrd  /boot/debirf-xkiosk_squeeze_2.6.36-2.dmz.8-liquorix-686.cgz

and "Debirf xkiosk" apperars now in grub2 menu.
Thanks for the answers; i hope this is useful for someone.
Posts: 19
Joined: 2010-10-08 17:44

Return to System configuration

Who is online

Users browsing this forum: Hallvor and 9 guests