Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Debirf and grub2

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
aab
Posts: 19
Joined: 2010-10-08 17:44

[Solved] Debirf and grub2

#1 Post by aab »

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

#!/bin/sh
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?
Thanks
Last edited by aab on 2011-01-07 15:09, edited 1 time in total.

User avatar
edbarx
Posts: 5401
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E
Been thanked: 2 times

Re: Debirf and grub2

#2 Post by edbarx »

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.

aab
Posts: 19
Joined: 2010-10-08 17:44

Re: Debirf and grub2

#3 Post by aab »

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.

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Debirf and grub2

#4 Post by llivv »

post what files you now have in your /boot directory/
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

aab
Posts: 19
Joined: 2010-10-08 17:44

Re: Debirf and grub2

#5 Post by aab »

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

aab
Posts: 19
Joined: 2010-10-08 17:44

Re: Debirf and grub2

#6 Post by aab »

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
}
EOF
and "Debirf xkiosk" apperars now in grub2 menu.
Thanks for the answers; i hope this is useful for someone.

Post Reply