3

After some time on Ubuntu 12.04 (sure not since the first intallation) I noticed the following error on boot:

Begin: Running /scripts/local-top ... /scripts/local-top/cryptroot: line 24: dirname: not found

Edit: content of /usr/share/initramfs-tools/scripts/local-top/cryptroot is here: http://pastebin.com/Pf1PrRvL

I'm not using encryption, because

sudo dmsetup status

gives

No devices found
10
  • Have you tried reinstalling cryptsetup (assuming that you got it from the official repos)? sudo apt-get install --reinstall cryptsetup Jul 18, 2012 at 6:34
  • 1
    Thanks, but it doesn't solve.
    – jasmines
    Jul 18, 2012 at 6:53
  • 1
    Could you please post contents of /scripts/local-top/cryptroot? Jul 18, 2012 at 6:55
  • File doesn't exist.
    – jasmines
    Jul 18, 2012 at 6:57
  • 2
    The error message is actually saying that the dirname command is not found while testing for prerequisites for cryptroot. This should be in /usr/bin/dirname as is part of coreutils (which is a fairly fundamental package). I would suggest a (re)install of coreutils as this would appear to be broken.
    – StarNamer
    Jul 23, 2012 at 22:09

1 Answer 1

2

The error and the path given /scripts/... indicate that this is happening inside the initramfs filesystem.

I suggest backing up the contents of /boot, eg

tar -cvzf ~/boot_backup.tar.gz /boot

And then remove cryptsetup with apt-get; that should recreate the initramfs without the cryptroot script. If everything works, that's your solution. If not, you can restore the originals by extracting the backup tarball, reinstall cryptsetup, comment here and we can continue troubleshooting further.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .