Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Henk on July 07, 2004, 12:08:20 AM
-
Rebuilding lilo.conf from the templates gives me this lilo.conf:
----------------
prompt
timeout=50
default=vmlinuz
boot=/dev/md0
map=/boot/map
install=/boot/boot.b
message=/boot/sme_server.pcx
linear
image=/boot/vmlinuz-2.4.20-18.7smp
label=Mitel-SME-smp
initrd=/boot/initrd-2.4.20-18.7smp.img
read-only
root=/dev/md1
image=/boot/vmlinuz-2.4.20-18.7
label=Mitel-SME-up
initrd=/boot/initrd-2.4.20-18.7.img
read-only
root=/dev/md1
lba3
--------------
The line default=vmlinuz has to be default=Mitel-SME-up and the lba3 on the end gives a syntax error.
-
Are you sure you didn't change anything in the original templates or added custom templates?
Just did a quick test (6.0.1-1) on expanding /etc/lilo.conf and it's producing the right config file...
RequestedDeletion
-
I didn´t change the templates, and I have no custom templates.
I´ve tested again, and discovered that the problem is different. The /etc/lilo.conf is updated after expanding the templates, but nothing is changed besides the file creation date and time.
I don´t know when or how the posted /etc/lilo.conf was created, I never changed anything by hand. I have installed the raidmonitor contrib, maybe that´s where the lilo.conf is from.
But fact is that expanding the template only changed the date and time of file creation, and not the content of /etc/lilo.conf
-
Which contrib did you exactly use ? and from where ?
Try moving /etc/lilo.conf to a temp place and expand it again to see what file is being produced.
RequestedDeletion
-
I´m using this contrib:
http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/raidmonitor/
Works great as far as i know.
/sbin/e-smith/expand-template /etc/lilo.conf gives this result:
WARNING in /etc/e-smith/templates//etc/lilo.conf/template-begin: Cannot open inp
ut file /etc/lilo.conf: No such file or directory
WARNING in /etc/e-smith/templates//etc/lilo.conf/template-begin: readline() on c
losed filehandle esmith::__TEMPLATE__::1::RD at /etc/e-smith/templates//etc/lilo
.conf/template-begin line 11.
WARNING: Template processing succeeded for //etc/lilo.conf: 2 fragments generate
d warnings
at /sbin/e-smith/expand-template line 49
[root@qs2 etc]#
Content of my lilo.conf after this is:
#------------------------------------------------------------
# BE CAREFUL WHEN MODIFYING THIS FILE! It is updated automatically
# by the SME server software. A few settings are altered by the
# template processing of the file and white space is removed,
# but otherwise changes to the file are preserved.
#
# For more information, see http://www.e-smith.org/custom/ and
# the template fragments in /etc/e-smith/templates/etc/lilo.conf/.
#
# copyright (C) 2002 Mitel Networks Corporation
#------------------------------------------------------------
-
I´m using this contrib:
http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/raidmonitor/
Works great as far as i know.
That's ok, but pls keep in mind that author never confirmed
it's working for 6.x
/sbin/e-smith/expand-template /etc/lilo.conf gives this result:
WARNING in /etc/e-smith/templates//etc/lilo.conf/template-begin: Cannot open inp
ut file /etc/lilo.conf: No such file or directory
There it goes wrong, the double forward slash... Something IS wrong with the templates of action scripts.
RequestedDeletion (forgot to log in)
-
That's ok, but pls keep in mind that author never confirmed
it's working for 6.x
I can confirm that Darrell’s raidmonitor works with SME6.x
Its only cron managed script comparing /proc/mdstat with saved one and pretty much version independent. The only template it add is cron fragment.
-
There it goes wrong, the double forward slash... Something IS wrong with the templates of action scripts.
Do you mean it´s a bug, or is this only wrong on my server?
-
Hi,
Both
linear
And
lba3
refers to the way lilo sees the hardrive.
lba3 should be lba32.
And you may need to remove linear for lba32
to work properly.
Let me know if this works.
Hope this helps.
Scott
-
Thanks, adding lba32 did the trick to startup from harddisk again. Before that I had to use the resque disk.
But fact is that the lilo.conf templates don't work properly.
-
Thanks, adding lba32 did the trick to startup from harddisk again. Before that I had to use the resque disk.
But fact is that the lilo.conf templates don't work properly.
Did you have to remove the linear statement?
Also, which file did you modify? I have looked
at the template files for lilo and they realy
don't make much sence. The files apear to be
all script and no parameters. Probably retrieving
perameters from a db file.
I have a problem booting from both the install cd
and the rescue disk. I haven't delved to deeply
into this as I don't know where to start.
Thanks for the info.
-
Thanks, adding lba32 did the trick to startup from harddisk again. Before that I had to use the resque disk.
But fact is that the lilo.conf templates don't work properly.
Glad I could help:)
-
Did you have to remove the linear statement?
Also, which file did you modify? I have looked
at the template files for lilo and they realy
don't make much sence. The files apear to be
all script and no parameters. Probably retrieving
perameters from a db file.
I have a problem booting from both the install cd
and the rescue disk. I haven't delved to deeply
into this as I don't know where to start.
Thanks for the info.
I did remove de linear statement. I edited the file /etc/lilo.conf
My lilo.conf at the moment is:
#------------------------------------------------------------
# BE CAREFUL WHEN MODIFYING THIS FILE! It is updated automatically
# by the SME server software. A few settings are altered by the
# template processing of the file and white space is removed,
# but otherwise changes to the file are preserved.
#
# For more information, see http://www.e-smith.org/custom/ and
# the template fragments in /etc/e-smith/templates/etc/lilo.conf/.
#
# copyright (C) 2002 Mitel Networks Corporation
#------------------------------------------------------------
prompt
timeout=50
default=Mitel-SME-up
boot=/dev/md0
map=/boot/map
install=/boot/boot.b
#linear
lba32
message=/boot/sme_server.pcx
image=/boot/vmlinuz-2.4.20-18.7smp
label=Mitel-SME-smp
initrd=/boot/initrd-2.4.20-18.7smp.img
read-only
root=/dev/md1
image=/boot/vmlinuz-2.4.20-18.7
label=Mitel-SME-up
initrd=/boot/initrd-2.4.20-18.7.img
read-only
root=/dev/md1
-
Thanks for the info.
Scott
-
Hi all,
The conclusions or findings are reported to the bugtracker right?
Nice work, thanks!
RequestedDeletion
-
Hi all,
The conclusions or findings are reported to the bugtracker right?
Nice work, thanks!
RequestedDeletion
I didn't yet, but reported it a minute ago.
-
Thank you. (Dank je wel ;-) )
RequestedDeletion
-
Sorry, just a "signet" to follow/refound this subject easyly.