[ilugc] Current Bootloader.

  • From: bhuvanbk@xxxxxxxxxxxxxxxxx (Bhuvan A)
  • Date: Fri, 5 Jul 2002 16:48:04 +0530 (IST)

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@xxxxxxxxxxxxxxxxxxxxxxxxxxxx for more info.

---1463793919-1309993243-1025867884=:1536
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi,

Great. /proc/cmdline does contain BOOT_IMAGE for lilo and not for GRUB.  
BTW, just for fun i did try this script and it works. This script
identifies either LILO or GRUB, nothing else. Load any of these loaders
and try this script (no need to reboot).

regards,
bhuvaneswaran.

On Fri, 5 Jul 2002, Moinak Ghosh wrote:

M Ghosh > Hi,
M Ghosh > 
M Ghosh >     While poking around Google I found a link for an automated 
Kernel build
M Ghosh > and installation script someone has written at
M Ghosh > http://freshmeat.net/projects/ik/?topic_id=147
M Ghosh > 
M Ghosh > More details at http://www.linuxgazette.com/issue75/piszcz.html
M Ghosh > 
M Ghosh > The author claims that the script accurately determines the last 
bootloader
M Ghosh > used to boot the current running kernel. However it detects only 
grub and lilo.
M Ghosh > I looked at the script and the logic is -
M Ghosh > 
M Ghosh > 1) If lilo config is present and grub config is absent then 
bootloader = lilo
M Ghosh > 2) If lilo config is absent and grub config is present then 
bootloader = grub
M Ghosh > 3) if lilo config is present and grub config is present then
M Ghosh >             if "cat /proc/cmdline" contains the string "BOOT_IMAGE"
M Ghosh >                then bootloader = lilo
M Ghosh >                else bootloader = grub
M Ghosh > 
M Ghosh > Regards,
M Ghosh > Moinak.
M Ghosh > 
M Ghosh > At 05:12 PM 7/4/2002 +0530, Bhuvan A wrote:
M Ghosh > >hello prakash,
M Ghosh > >
M Ghosh > >really smart. I too tried
M Ghosh > >
M Ghosh > ># dd if=/dev/hda bs=512 count=1|strings$
M Ghosh > >and it resulted in
M Ghosh > >
M Ghosh > >1+0 records in
M Ghosh > >1+0 records out
M Ghosh > >LILO
M Ghosh > >ZRrI
M Ghosh > >D|f1
M Ghosh > >GRUB
M Ghosh > >Geom
M Ghosh > >Hard Disk
M Ghosh > >Read
M Ghosh > >  Error
M Ghosh > >
M Ghosh > >Actually in mine i overwrote LILO with GRUB and currently
M Ghosh > >GRUB exists.
M Ghosh > >
M Ghosh > >So it seems WE are still unaware of pointing current
M Ghosh > >bootloader, isnt it?
M Ghosh > >
M Ghosh > >regards,
M Ghosh > >bhuvaneswaran.
M Ghosh > >
M Ghosh > >
M Ghosh > >
M Ghosh > >---
M Ghosh > >Visit our home page at: http://www.chennailug.org
M Ghosh > >Send e-mail to "ilugc-request@xxxxxxxxxxxxxxxxxx" with 
"unsubscribe"
M Ghosh > >in either the subject or the body to unsubscribe from this list.
M Ghosh > 
M Ghosh > _______________________________________________
M Ghosh > Ilugc mailing list
M Ghosh > Ilugc@xxxxxxxxxxxxxxxxxx
M Ghosh > http://www.aero.iitm.ernet.in/mailman/listinfo/ilugc
M Ghosh > 


---1463793919-1309993243-1025867884=:1536
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="current_loader.pl"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.44.0207051648040.1536@xxxxxxxxxxxxxxxx>
Content-Description: 
Content-Disposition: attachment; filename="current_loader.pl"

Iy91c3IvYmluL3BlcmwNCg0KQGdlb21zID0gYGRkIGlmPS9kZXYvaGRhIGJz
PTUxMiBjb3VudD0xIDI+IC9kZXYvbnVsbHxzdHJpbmdzYDsNCg0KZm9yZWFj
aCAkaW5kZXggKCAwIC4uICQjZ2VvbXMpDQp7DQogIGlmICgkZ2VvbXNbJGlu
ZGV4XSAgPX4gL2dydWIvaSkNCiAgew0KICAgICRncnViICAgPSAxOw0KICAg
ICRsb2FkZXIgPSAkZ2VvbXNbJGluZGV4XTsNCiAgfQ0KICBlbHNpZiAoJGdl
b21zWyRpbmRleF0gPX4gL2xpbG8vaSkNCiAgew0KICAgICRsaWxvICAgPSAx
Ow0KICAgICRsb2FkZXIgPSAkZ2VvbXNbJGluZGV4XTsNCiAgfQ0KfQ0KDQpp
ZiAoISRncnViIGFuZCAhJGxpbG8pDQp7DQogIHByaW50ICJTb3JyeSEgVW5h
YmxlIHRvIHRyYWNlLlxuIjsNCn0NCmVsc2UNCnsNCiAgcHJpbnQgIkN1cnJl
bnQgTG9hZGVyIGlzICRsb2FkZXIiOw0KfQ0KDQo=
---1463793919-1309993243-1025867884=:1536--

Other related posts: