Koozali.org: home of the SME Server

error in lilo.conf templates (SME 6.01)

Henk

error in lilo.conf templates (SME 6.01)
« 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.

guest22

error in lilo.conf templates (SME 6.01)
« Reply #1 on: July 07, 2004, 10:26:47 AM »
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

Henk

error in lilo.conf templates (SME 6.01)
« Reply #2 on: July 07, 2004, 10:41:38 AM »
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

guest22

error in lilo.conf templates (SME 6.01)
« Reply #3 on: July 07, 2004, 10:57:12 AM »
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

Henk

error in lilo.conf templates (SME 6.01)
« Reply #4 on: July 07, 2004, 11:47:24 AM »
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
#------------------------------------------------------------

Anonymous

error in lilo.conf templates (SME 6.01)
« Reply #5 on: July 07, 2004, 12:55:52 PM »
Quote from: "Henk"
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

Quote

/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)

Offline Boris

  • *
  • 783
  • +0/-0
error in lilo.conf templates (SME 6.01)
« Reply #6 on: July 07, 2004, 09:44:06 PM »
Quote from: "Anonymous"
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.
...

Henk

error in lilo.conf templates (SME 6.01)
« Reply #7 on: July 08, 2004, 10:16:55 PM »
Quote


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?

Offline satovey

  • ****
  • 75
  • +0/-0
    • Yevotas Ministry Network
Re: error in lilo.conf templates (SME 6.01)
« Reply #8 on: July 27, 2004, 11:35:06 PM »
Hi,

Both
Quote from: "Henk"
linear

And
Quote from: "Henk"

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
Scott A Tovey

Henk

error in lilo.conf templates (SME 6.01)
« Reply #9 on: July 28, 2004, 10:56:11 PM »
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.

Offline satovey

  • ****
  • 75
  • +0/-0
    • Yevotas Ministry Network
error in lilo.conf templates (SME 6.01)
« Reply #10 on: July 29, 2004, 07:20:11 PM »
Quote from: "Henk"
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.
Scott A Tovey

Offline satovey

  • ****
  • 75
  • +0/-0
    • Yevotas Ministry Network
error in lilo.conf templates (SME 6.01)
« Reply #11 on: July 29, 2004, 07:20:43 PM »
Quote from: "Henk"
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:)
Scott A Tovey

Henk

error in lilo.conf templates (SME 6.01)
« Reply #12 on: July 29, 2004, 09:54:01 PM »
Quote from: "satovey"


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

Offline satovey

  • ****
  • 75
  • +0/-0
    • Yevotas Ministry Network
error in lilo.conf templates (SME 6.01)
« Reply #13 on: July 30, 2004, 04:59:48 PM »
Thanks for the info.

Scott
Scott A Tovey

guest22

error in lilo.conf templates (SME 6.01)
« Reply #14 on: July 30, 2004, 09:05:35 PM »
Hi all,

The conclusions or findings are reported to the bugtracker right?

Nice work, thanks!

RequestedDeletion