Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

In my ubuntu-based system, everytime update-initramfs gets called I got errors like this:

.: 6: Can't open /scripts/casper-functions

So I took a look around and found the script casper-functions in /usr/share/initramfs-tools/scripts.

Using grep I found the scripts referencing /scripts/casper-functions.

Now I have two possibilities:

  1. Comment out the lines referenciing the script (which shouldn't make any difference, I think, because it's not working anyway.)

  2. Fix all refences to this script. (And fix a reference in the script itself)

I tried both and ran

dpkg-reconfigure console-setup

There haven't been any errors reported in any case. But before I do either of this (and reboot) I would like to know what this script does. I'm not really familiar with sh-scripts, so I couldn't figure it out, yet.

UPDATE: I replaced all references of /scripts/casper-functions with /usr/share/initramfs-tools/scripts/casper-functions and replaced /scripts/functions with /usr/share/initramfs-tools/scripts/functions in casper-functions.

As result a created live-cd (remastersys - backup) won't boot anymore (it did boot before). So probably neither option may be well...

How can I get rid of these error messages then? I read something about "uninstalling canonincal-census-package", but I don't have it installed and I can't find it via apt-get. So I'm not able to install and uninstall it again as suggested in some forums.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

I appear to have done a successful workaround with the commands:

cd /
ln -s /usr/share/initramfs-tools/scripts
share|improve this answer
    
Sounds simple. Why didn't I come up with this myself. Thanks. –  AlexS May 25 '12 at 14:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.