Ticket #58 (closed enhancement: invalid)

Opened 2 years ago

Last modified 2 years ago

dmcrypt should start before partitions get mounted

Reported by: Markus Rothe <markus@unixforces.net> Owned by: roy
Priority: trivial Milestone:
Component: init.d scripts Version:
Keywords: Cc:

Description

Created an attachment (id=20)
picture showing that partitions get mounted before dmcrypt is run

Using dmcrypt with openrc 0.2.2 isn't working as expected.

The system:

  • Gentoo Linux
  • Baselayout 2.0.0
  • OpenRC 0.2.2
  • /etc/init.d/dmcrypt from sys-fs/cryptsetup-1.0.5-r1

What's wrong:

  • partitions get mounted before dmcrypt could "luksOpen" them
  • the keymap is not loaded before dmcrypt asks for the password -> if you are not running "us" keyboard but for example "de" you have to guess where the correct extra chars like ; or { are.

Current boot order:

  1. mount partitions
  2. run dmcrypt
  3. set keymap

Expected boot order:

  1. set keymap
  2. run dmcrypt
  3. mount partitions

The attached picture shows that the partitions get mounted before dmcrypt runs. The picture is a few days old and does not use openrc 0.2.2 but an older version. As you can see the keymaps were loaded before dmcrypt. This changed in recent versions! (Yea, I wanted to open this bug for a few weeks now...)

Attachments

boot_order_wrong.jpg Download (0 bytes) - added by Markus Rothe <markus@unixforces.net> 2 years ago.
picture showing that partitions get mounted before dmcrypt is run

Change History

Changed 2 years ago by Markus Rothe <markus@unixforces.net>

picture showing that partitions get mounted before dmcrypt is run

comment:290 Changed 2 years ago by roy

  • Status changed from new to resolved
  • Resolution set to invalid

I've looked at this a little and think the problem is with the dependencies in the cryptsetup and devicemapper scripts, which are Gentoo addons. Could you open a new bug at bugs.gentoo.org please and we'll take it up there?

comment:291 Changed 2 years ago by Markus Rothe <markus@unixforces.net>

I opened a bug in Gentoo's bugzilla and added you to CC.

 http://bugs.gentoo.org/show_bug.cgi?id=218920

Note: See TracTickets for help on using tickets.