Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #220122

linux-image-4.9.0-12-amd64 breaks LUKS root

From David Christensen <dpchrist@holgerdanske.com>
Newsgroups linux.debian.user
Subject linux-image-4.9.0-12-amd64 breaks LUKS root
Date 2020-03-15 07:20 +0100
Message-ID <zKuMV-4oz-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


debian-user:

I have Debian machine:

         2020-03-14 22:57:21 root@po ~
         # cat /etc/debian_version ; uname -a
         9.12
         Linux po 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u2 
(2019-11-11) x86_
64 GNU/Linux


When I install linux-image-4.9.0-12-amd64:

2020-03-14 22:58:13 root@po ~
# time apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
   linux-image-4.9.0-12-amd64
The following packages will be upgraded:
   linux-image-amd64
1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 39.3 MB of archives.
After this operation, 193 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.us.debian.org/debian stretch/main amd64 
linux-image-4.9.0-12-amd64 amd64 4.9.210-1 [39.3 MB]
Get:2 http://ftp.us.debian.org/debian stretch/main amd64 
linux-image-amd64 amd64 4.9+80+deb9u10 [7158 B]
Fetched 39.3 MB in 12s (3074 kB/s) 

Reading changelogs... Done
Selecting previously unselected package linux-image-4.9.0-12-amd64.
(Reading database ... 106060 files and directories currently installed.)
Preparing to unpack .../linux-image-4.9.0-12-amd64_4.9.210-1_amd64.deb ...
Unpacking linux-image-4.9.0-12-amd64 (4.9.210-1) ...
Preparing to unpack .../linux-image-amd64_4.9+80+deb9u10_amd64.deb ...
Unpacking linux-image-amd64 (4.9+80+deb9u10) over (4.9+80+deb9u9) ...
Setting up linux-image-4.9.0-12-amd64 (4.9.210-1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.9.0-11-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-4.9.0-11-amd64
I: /vmlinuz is now a symlink to boot/vmlinuz-4.9.0-12-amd64
I: /initrd.img is now a symlink to boot/initrd.img-4.9.0-12-amd64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.9.0-12-amd64
cryptsetup: WARNING: target sda2_crypt has a random key, skipped
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found background image: .background_cache.png
Found linux image: /boot/vmlinuz-4.9.0-12-amd64
Found initrd image: /boot/initrd.img-4.9.0-12-amd64
Found linux image: /boot/vmlinuz-4.9.0-11-amd64
Found initrd image: /boot/initrd.img-4.9.0-11-amd64
Found linux image: /boot/vmlinuz-4.9.0-9-amd64
Found initrd image: /boot/initrd.img-4.9.0-9-amd64
done
Setting up linux-image-amd64 (4.9+80+deb9u10) ...

real	0m34.738s
user	0m9.616s
sys	0m3.132s


And then reboot, it refuses to accept the (correct) LUKS passphrase:

<snip>
Please unlock disk /dev/disk/by-partuuid/xxxxxxxx-xx (sda3_crypt):
cryptsetup (sda3_crypt) : unknown fstype, bad password or options?
Please unlock disk /dev/disk/by-partuuid/xxxxxxxx-xx (sda3_crypt):
cryptsetup (sda3_crypt) : unknown fstype, bad password or options?
Please unlock disk /dev/disk/by-partuuid/xxxxxxxx-xx (sda3_crypt):
cryptsetup (sda3_crypt) : unknown fstype, bad password or options?
cryptsetup (sda3_crypt) : maximum number of tries exceeded
cryptsetup: going to sleep for 60 seconds...



I tried a rescue using the debian-9.11.0-amd64-xfce-CD-1 USB stick:

Debian GNU/Linux installer boot menu

-> Advanced options

-> Rescue mode

Language -> C

Continent or region -> North America

Country -> United States

Keymap -> American English

Hostname -> po

Domain -> tracy.holgerdanske.com

Time zone -> Pacific

Passphrase for /dev/sdb3 -> ********

Device to use as root filesystem -> /dev/mapper/sdb3_crypt

Mount seperate /boot partition -> Yes

Rescue operations -> Reinstall GRUB boot loader

Device -> /dev/sdb

Rescue operations -> Reboot


Nope:

<snip>
Please unlock disk /dev/disk/by-partuuid/xxxxxxxx-xx (sda3_crypt):
cryptsetup (sda3_crypt) : unknown fstype, bad password or options?
Please unlock disk /dev/disk/by-partuuid/xxxxxxxx-xx (sda3_crypt):
cryptsetup (sda3_crypt) : unknown fstype, bad password or options?
Please unlock disk /dev/disk/by-partuuid/xxxxxxxx-xx (sda3_crypt):
cryptsetup (sda3_crypt) : unknown fstype, bad password or options?
cryptsetup (sda3_crypt) : maximum number of tries exceeded
cryptsetup: going to sleep for 60 seconds...


Thankfully, my other machines still work.


Suggestions?


David

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

linux-image-4.9.0-12-amd64 breaks LUKS root David Christensen <dpchrist@holgerdanske.com> - 2020-03-15 07:20 +0100
  Re: linux-image-4.9.0-12-amd64 breaks LUKS root David Christensen <dpchrist@holgerdanske.com> - 2020-03-30 02:00 +0200
    Re: linux-image-4.9.0-12-amd64 breaks LUKS root deloptes <deloptes@gmail.com> - 2020-03-30 09:00 +0200
      Re: linux-image-4.9.0-12-amd64 breaks LUKS root David Christensen <dpchrist@holgerdanske.com> - 2020-03-30 11:00 +0200
        Re: linux-image-4.9.0-12-amd64 breaks LUKS root deloptes <deloptes@gmail.com> - 2020-03-30 12:00 +0200
          Re: linux-image-4.9.0-12-amd64 breaks LUKS root David Christensen <dpchrist@holgerdanske.com> - 2020-07-27 01:50 +0200
            Re: linux-image-4.9.0-12-amd64 breaks LUKS root David <bouncingcats@gmail.com> - 2020-07-27 03:20 +0200
              Re: linux-image-4.9.0-12-amd64 breaks LUKS root David Christensen <dpchrist@holgerdanske.com> - 2020-07-27 06:20 +0200
            Re: linux-image-4.9.0-12-amd64 breaks LUKS root David Wright <deblis@lionunicorn.co.uk> - 2020-07-27 05:50 +0200
              Re: linux-image-4.9.0-12-amd64 breaks LUKS root David Christensen <dpchrist@holgerdanske.com> - 2020-07-27 07:30 +0200
                Re: linux-image-4.9.0-12-amd64 breaks LUKS root David Wright <deblis@lionunicorn.co.uk> - 2020-07-30 04:10 +0200

csiph-web