SystemRescueCd forums
View unanswered posts | View active topics It is currently 25 Feb 2017, 12:41

Post new topic Reply to topic  [ 2 posts ] 
 Questions and bug report 
Author Message

Joined: 03 Jan 2008, 14:24
Posts: 21
Reply with quote
Post Questions and bug report

First, the bug :-)

The command "sysresccd-custom setkmap xx" makes the "setkmap=xx" accumulate in isolinux.cfg if used multiple times. I realized this by fine tuning my customized version of SysRescCD and reussing this command each time I was rebuilding the CD. Digging in sysrescd-custom shell script showed a simple "sed" command to replace "append" with "append setkmap=xx".

So, I suggest to change the actual sed command :
sed -e "s:append:append setkmap=${KEYMAP}:g" /path/to/isolinux.cfg > ...

with :
sed -r -e "s:setkmap=[a-z0-9]+ ::g ; s:append:append setkmap=${KEYMAP}:g" /path/to/isolinux.cfg > ...

Thus ensuring that only one version of "setkmap=xx" is present. Note: "-r" in sed is to activate entended regex.

Now the question :-)

In "/etc/init.d/autoconfig", there's a line "echo "6" > /proc/sys/kernel/printk" near the end and this puzzles me a bit. I know the idea is to revert to kernel default (as "0" is set at the start of the function) but :

1/ It invalidates any related setting we do in /etc/sysctl.conf (It took me quite some time to find out why my setting wasn't taken in account in the boot process while working perfectly in command line)

2/ It seems to me this a bit useless to get debug info right on the console as syslog-ng is configured to use vt12 as a permanent realtime "log viewer".

3/ Consequence of 2 : It messes up the output of commands when kernel or syslog have something to report

So, is it really necessary to keep this line in /etc/init.d/autoconfig ?

18 Mar 2008, 12:08
Site Admin

Joined: 17 Jul 2003, 09:44
Posts: 2707
Reply with quote
Thanks for all your useful comment, I will investigate around it. The sysresccd-custom fix is ready for 1.0.1-beta7. And the /etc/init.d/autoconfig script do not change the printk settings anymore.

18 Mar 2008, 13:55
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.