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
jasmines
  • 11,311

1 Answers1

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.

ish
  • 141,990