LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-11-2009, 05:14 PM   #1
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675
Blog Entries: 11

Rep: Reputation: 36
sysv-rc, squeeze updates, how do I fix these errors?


After a safe-upgrade in testing today I got a ncurses display that was telling me that I couldn't upgrade sysv-rc safely. It has to do with dependency based boot scripts as described here:

http://wiki.debian.org/LSBInitScript...dencyBasedBoot

I understand the concept behind the link, but I have some questions.

1.) has anyone written a header file for their boot scripts? It seems inordinately difficult.

2.) what happens if you get the header file wrong in /etc/insserv/overrides ?

3.) what about in the future when the package that you wrote the script for updates... Do you mess things up by having had written your own override-ed header file?

Does anybody have a link that discusses this practically? Do we just wait? Do we edit all these boot scripts? I have 7 that the link says I could go about editing. Thanks in advance.
 
Old 11-11-2009, 10:45 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Would have been useful to know exactly what the debconf output was.
Was it from the post config of sysv-rc? If so you can see it again with

Code:
dpkg-reconfigure -plow -fdialog sysv-rc
The -fdialog switch may make it easier to cut and paste the output if you want to post it here.

I'm running sid with inserv installed, and although there are warnings for scripts without lsb init info, there are no actual problems: I didn't need to do anything.

In answer to your specific questions:

1. I have not.
2. Don't know, I've not touched it.
3. Possibly, depends on if it is treated as a "conffile" by debconf

Cheers,

Evo2.
 
Old 11-12-2009, 07:24 AM   #3
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675

Original Poster
Blog Entries: 11

Rep: Reputation: 36
Quote:
# dpkg-reconfigure sysv-rc
info: Checking if it is safe to convert to dependency based boot.

error: Unable to migrate to dependency based boot sequencing.
error: Problems detected: package bittorrent left obsolete init.d script behind, package mplayer left obsolete init.d script behind, package virtualbox-ose left obsolete init.d script behind, insserv: warning: script 'K20atieventsd' missing LSB tags and overrides, insserv: warning: script 'S25libdevmapper1.02' missing LSB tags and overrides, insserv: warning: script 'libdevmapper1.02' missing LSB tags and overrides, insserv: warning: script 'atieventsd' missing LSB tags and overrides, insserv: script hwclockfirst.sh: service hwclock already provided!,

See http://wiki.debian.org/LSBInitScript...dencyBasedBoot for
more information about dependency based boot sequencing. To
reattempt the migration process run 'dpkg-reconfigure sysv-rc'.
This is the revised list. I ran the same command yesterday after posting and purged some packages that were 'removed but not purged' as I was instructed to do by the first list. I'm no longer at 7 header files, but rather 4. There are some other problems reported in the output too. I think I can just erase an 'obsolete init.d script'. Then I have to figure out what to do about hwclock and hwclockfirst.sh .

Maybe K20atieventsd points to atieventsd and I only have to make the header once. If the same holds true for libdevmapper1.02 then I only have 2 files to write.
 
Old 11-12-2009, 08:33 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
As far as I can tell your system is ok. I'm guessing 'dpkg --audit' returns nothing.

It's good that you are removing old/obsolete scripts that packages have left behind, but I think you are worrying a bit much here. Ok, so your system is not yet using dependency based booting but that does not mean that you have to fix the packages init.d scripts.

The thing to do is check that there have already been bugs filed against these packages. If not, you can file the bug. If you do want to add the init dependency where it is missing from a script, you can include it as a patch in your bug report.

Cheers,

Evo2.
 
Old 11-13-2009, 06:53 AM   #5
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675

Original Poster
Blog Entries: 11

Rep: Reputation: 36
Quote:
Originally Posted by evo2 View Post
As far as I can tell your system is ok. I'm guessing 'dpkg --audit' returns nothing.

It's good that you are removing old/obsolete scripts that packages have left behind, but I think you are worrying a bit much here. Ok, so your system is not yet using dependency based booting but that does not mean that you have to fix the packages init.d scripts.
You're right, and I probably am worrying a bit much. I did get the 'dpkg-reconfigure sysv-rc' to work, though, but not by writing those override files. Mostly I deleted things. First I purged bittorrent and libdevmapper cause I don't use them. Then I determined which of the scripts that I had in init.d could be erased. I used the following command from the web page listed in post #1:

dpkg-query -W -f='${Conffiles}\n' packagename

Then I deleted the scripts that were obsolete. This involved going to /etc/init.d/ and using 'rm' on the script, then executing the command:

update-rc.d <scriptname> remove

Then I needed to edit hwclock.sh and hwclockfirst.sh . This was probably the most difficult. In the past I've had to modify these files to get my clock to work right. Because of this I had versions of these files with the extension 'dpkg-dist'. The older versions of the files didn't have correct headers, while the newer versions didn't have my modification. What I had to do was to 'mv' the newer files to replace the older ones, and then make the modifications all over again on the new files. After that the headers were right and the computer was ready to use the dependency based boot sequence. The modification was very small.

Then I executed 'dpkg-reconfigure sysv-rc' again.

Last edited by radiodee1; 11-13-2009 at 07:25 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel 2.6.30rc7 make and compile errors on debian squeeze dougallinux Linux - Kernel 6 05-28-2009 06:08 PM
LXer: Adobe Updates Flash Player to Fix Huge Security Hole LXer Syndicated Linux News 0 12-19-2008 06:10 PM
What updates fix security issues and what are less important? decrepit Fedora 1 02-03-2007 07:21 AM
Please help, what do these errors mean and how to fix them? lexington Linux - Newbie 3 05-08-2004 12:41 PM
Few errors i would like to fix nivek7 Slackware 3 04-17-2004 01:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration