You are not logged in.

#1 2017-08-04 18:05:25

osteichthyes
Member
Registered: 2016-04-20
Posts: 38

Luks encrypted home not mounting

For about two years, I have had my home on a separate, luks encrypted partition, which mounts on login. Yesterday, when I logged in (either via tty or gdm), it failed to mount my home. In tty, the cursor just flashed forever, in gdm the little gear icon just spun. Logs showed cryptsetup giving exit code 1 (bad parameters). But the command is pretty simply

 
/usr/bin/cryptsetup open /dev/disk/by-partlabel/home home

Oddly enough, if I hit the power button and prompt a suspend, then wake it, my home is mounted.

Nothing relevant to pam_exec, luks, or cryptsetup seems to have updated recently (except systemd). I'm at a bit of a loss.

Last edited by osteichthyes (2017-08-04 18:07:11)

Offline

#2 2017-08-05 10:15:22

smlb
Member
From: /dev/null
Registered: 2013-05-20
Posts: 60
Website

Re: Luks encrypted home not mounting

Take a look at this: https://bugs.archlinux.org/task/54825

It's a known bug happening quite a lot recently.

Offline

#3 2017-08-05 19:18:33

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Luks encrypted home not mounting

Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2017-08-05 19:43:06

osteichthyes
Member
Registered: 2016-04-20
Posts: 38

Re: Luks encrypted home not mounting

Thanks for moving, sorry about that. Thanks for the bug report. I couldn't find it.

Offline

#5 2017-08-05 19:49:38

osteichthyes
Member
Registered: 2016-04-20
Posts: 38

Re: Luks encrypted home not mounting

That bug report looks like it's been closed and the 31 July commit seems to have been intended to fix it. This issue started for me after then.

Offline

#6 2017-08-05 19:55:37

loqs
Member
Registered: 2014-03-06
Posts: 17,194

Re: Luks encrypted home not mounting

Post the pacman.log from update that caused the issue onwards.
Please also provide specific details of what is calling the command you posted in #1 and the related journal / log output.
Edit:
Some more details provided in this bug report https://bugs.archlinux.org/task/55043

Last edited by loqs (2017-08-05 20:29:38)

Offline

#7 2017-08-07 02:56:44

osteichthyes
Member
Registered: 2016-04-20
Posts: 38

Re: Luks encrypted home not mounting

I've been away from my computer. I'll post logs tomorrow.

Offline

#8 2017-08-07 22:47:16

osteichthyes
Member
Registered: 2016-04-20
Posts: 38

Re: Luks encrypted home not mounting

I cut a few mkinitcpios out to keep the length down. Unfortunately, I experimented with different terminal emulators, so there are some odd installs and immediate uninstalls.

The issue appears to have begun between 31 July and 03 Aug (hence reinstalling pam and systemd on the 3rd)

You will notice I have both linux and linux-hardened kernels -- both have this issue.

[2017-07-28 01:18] [PACMAN] Running 'pacman -Syu terminology'
[2017-07-28 01:18] [PACMAN] synchronizing package lists
[2017-07-28 01:18] [PACMAN] starting full system upgrade
[2017-07-28 01:18] [ALPM] transaction started
[2017-07-28 01:18] [ALPM] installed bullet (2.86-2)
[2017-07-28 01:18] [ALPM] installed luajit (2.0.5-1)
[2017-07-28 01:18] [ALPM] installed printproto (1.0.5-3)
[2017-07-28 01:18] [ALPM] installed libxp (1.0.3-1)
[2017-07-28 01:18] [ALPM] installed efl (1.18.4-3)
[2017-07-28 01:18] [ALPM] installed terminology (1.0.0-1)
[2017-07-28 01:18] [ALPM] upgraded faac (1.28-5 -> 1.29.3-1)
[2017-07-28 01:18] [ALPM] upgraded faad2 (2.7-4 -> 2.8.1-1)
[2017-07-28 01:18] [ALPM] upgraded gtk-update-icon-cache (3.22.16-1 -> 3.22.17-1)
[2017-07-28 01:18] [ALPM] upgraded gtk3 (3.22.16-1 -> 3.22.17-1)
[2017-07-28 01:18] [ALPM] upgraded libproxy (0.4.15-3 -> 0.4.15-4)
[2017-07-28 01:18] [ALPM] upgraded gnome-online-accounts (3.24.1-1 -> 3.24.1+4+g6e8f45ff-1)
[2017-07-28 01:18] [ALPM] upgraded gtk3-print-backends (3.22.16-1 -> 3.22.17-1)
[2017-07-28 01:18] [ALPM] upgraded gvfs (1.32.1+3+gd852665e-1 -> 1.32.1+5+gf0d758df-1)
[2017-07-28 01:18] [ALPM] upgraded gvfs-goa (1.32.1+3+gd852665e-1 -> 1.32.1+5+gf0d758df-1)
[2017-07-28 01:18] [ALPM] upgraded gvfs-google (1.32.1+3+gd852665e-1 -> 1.32.1+5+gf0d758df-1)
[2017-07-28 01:18] [ALPM] upgraded gvfs-smb (1.32.1+3+gd852665e-1 -> 1.32.1+5+gf0d758df-1)
[2017-07-28 01:18] [ALPM] upgraded lib32-glibc (2.25-4 -> 2.25-7)
[2017-07-28 01:18] [ALPM] upgraded libwnck3 (3.24.0-1 -> 3.24.1-1)
[2017-07-28 01:18] [ALPM] upgraded mpg123 (1.25.3-1 -> 1.25.4-1)
[2017-07-28 01:19] [ALPM] upgraded python-setuptools (1:36.2.3-1 -> 1:36.2.4-1)
[2017-07-28 01:19] [ALPM] upgraded python2-setuptools (1:36.2.3-1 -> 1:36.2.4-1)
[2017-07-28 01:19] [ALPM] upgraded wlc (0.0.9-1 -> 0.0.10-1)
[2017-07-28 01:19] [ALPM] upgraded sway (0.13.0-1 -> 0.14.0-1)
[2017-07-28 01:19] [ALPM] transaction completed
[2017-07-28 01:19] [ALPM] running 'gio-querymodules.hook'...
[2017-07-28 01:19] [ALPM] running 'glib-compile-schemas.hook'...
[2017-07-28 01:19] [ALPM] running 'gtk-query-immodules-3.0.hook'...
[2017-07-28 01:19] [ALPM] running 'gtk-update-icon-cache.hook'...
[2017-07-28 01:19] [ALPM] running 'gvfsd.hook'...
[2017-07-28 01:19] [ALPM] running 'systemd-tmpfiles.hook'...
[2017-07-28 01:19] [ALPM] running 'systemd-update.hook'...
[2017-07-28 01:19] [ALPM] running 'update-desktop-database.hook'...
[2017-07-28 01:19] [ALPM] running 'update-mime-database.hook'...
[2017-07-28 01:22] [PACMAN] Running 'pacman -Rns terminology'
[2017-07-28 01:22] [ALPM] transaction started
[2017-07-28 01:22] [ALPM] removed terminology (1.0.0-1)
[2017-07-28 01:22] [ALPM] removed efl (1.18.4-3)
[2017-07-28 01:22] [ALPM] removed luajit (2.0.5-1)
[2017-07-28 01:22] [ALPM] removed libxp (1.0.3-1)
[2017-07-28 01:22] [ALPM] removed printproto (1.0.5-3)
[2017-07-28 01:22] [ALPM] removed bullet (2.86-2)
[2017-07-28 01:22] [ALPM] transaction completed
[2017-07-28 01:22] [ALPM] running 'gtk-update-icon-cache.hook'...
[2017-07-28 01:22] [ALPM] running 'systemd-update.hook'...
[2017-07-28 01:22] [ALPM] running 'update-desktop-database.hook'...
[2017-07-28 01:22] [ALPM] running 'update-mime-database.hook'...
[2017-07-28 01:22] [PACMAN] Running 'pacman -Syu love'
[2017-07-28 01:22] [PACMAN] synchronizing package lists
[2017-07-28 01:22] [PACMAN] starting full system upgrade
[2017-07-28 01:23] [ALPM] transaction started
[2017-07-28 01:23] [ALPM] installed luajit (2.0.5-1)
[2017-07-28 01:23] [ALPM] installed physfs (2.0.3-3)
[2017-07-28 01:23] [ALPM] installed devil (1.7.8-24)
[2017-07-28 01:23] [ALPM] installed love (0.10.2-1)
[2017-07-28 01:23] [ALPM] transaction completed
[2017-07-28 01:23] [ALPM] running 'gtk-update-icon-cache.hook'...
[2017-07-28 01:23] [ALPM] running 'systemd-update.hook'...
[2017-07-28 01:23] [ALPM] running 'texinfo-install.hook'...
[2017-07-28 01:23] [ALPM] running 'update-desktop-database.hook'...
[2017-07-28 01:23] [ALPM] running 'update-mime-database.hook'...
[2017-07-28 01:29] [PACMAN] Running 'pacman -Syu love08'
[2017-07-28 01:29] [PACMAN] synchronizing package lists
[2017-07-28 01:29] [PACMAN] starting full system upgrade
[2017-07-28 01:29] [ALPM] transaction started
[2017-07-28 01:29] [ALPM] installed love08 (0.8.0-2)
[2017-07-28 01:29] [ALPM] transaction completed
[2017-07-28 01:29] [ALPM] running 'systemd-update.hook'...
[2017-07-28 04:09] [PACMAN] Running 'pacman -Syu'
[2017-07-28 04:09] [PACMAN] synchronizing package lists
[2017-07-28 04:09] [PACMAN] starting full system upgrade
[2017-07-28 04:09] [ALPM] transaction started
[2017-07-28 04:09] [ALPM] upgraded gjs (1.48.5-1 -> 1.48.6-1)
[2017-07-28 04:09] [ALPM] transaction completed
[2017-07-28 04:09] [ALPM] running 'systemd-update.hook'...
[2017-07-28 04:11] [PACMAN] Running 'pacman -Ud --ask 36 --noconfirm /home/scott/.cache/pacaur/google-chrome/google-chrome-60.0.3112.78-1-x86_64.pkg.tar.gz'
[2017-07-28 04:11] [ALPM] transaction started
[2017-07-28 04:11] [ALPM] upgraded google-chrome (59.0.3071.115-1 -> 60.0.3112.78-1)
[2017-07-28 04:11] [ALPM-SCRIPTLET] ==> NOTE: Custom flags should be put directly in: ~/.config/chrome-flags.conf
[2017-07-28 04:11] [ALPM-SCRIPTLET] ==> NOTE: The launcher is called: 'google-chrome-stable'
[2017-07-28 04:11] [ALPM] transaction completed
[2017-07-28 04:11] [ALPM] running 'gtk-update-icon-cache.hook'...
[2017-07-28 04:11] [ALPM] running 'systemd-update.hook'...
[2017-07-28 04:11] [ALPM] running 'update-desktop-database.hook'...
[2017-07-31 14:15] [PACMAN] Running 'pacman -Syu'
[2017-07-31 14:15] [PACMAN] synchronizing package lists
[2017-07-31 14:15] [PACMAN] starting full system upgrade
[2017-07-31 14:16] [ALPM] transaction started
[2017-07-31 14:16] [ALPM] upgraded libutil-linux (2.29.2-2 -> 2.30.1-2)
[2017-07-31 14:16] [ALPM] upgraded avahi (0.6.32-3 -> 0.7-1)
[2017-07-31 14:16] [ALPM] upgraded openssl (1.1.0.f-1 -> 1.1.0.f-2)
[2017-07-31 14:16] [ALPM] upgraded bind-tools (9.11.1.P3-1 -> 9.11.2-2)
[2017-07-31 14:16] [ALPM] warning: /etc/bluetooth/main.conf installed as /etc/bluetooth/main.conf.pacnew
[2017-07-31 14:16] [ALPM] upgraded bluez (5.45-1 -> 5.46-1)
[2017-07-31 14:16] [ALPM] upgraded bluez-libs (5.45-1 -> 5.46-1)
[2017-07-31 14:16] [ALPM] upgraded fontconfig (2.12.3-1 -> 2.12.4-1)
[2017-07-31 14:16] [ALPM-SCRIPTLET] Rebuilding fontconfig cache... done.
[2017-07-31 14:16] [ALPM] upgraded util-linux (2.29.2-2 -> 2.30.1-2)
[2017-07-31 14:16] [ALPM] upgraded libdrm (2.4.81-1 -> 2.4.82-1)
[2017-07-31 14:16] [ALPM] upgraded cups-filters (1.14.1-1 -> 1.16.0-1)
[2017-07-31 14:16] [ALPM] upgraded gnome-logs (3.24.1+1+gf949685-1 -> 3.24.2-1)
[2017-07-31 14:16] [ALPM] upgraded gptfdisk (1.0.1-2 -> 1.0.3-1)
[2017-07-31 14:16] [ALPM] upgraded gsfonts (20170501-1 -> 20170720-1)
[2017-07-31 14:16] [ALPM] upgraded jre8-openjdk-headless (8.u141-1 -> 8.u144-1)
[2017-07-31 14:16] [ALPM] upgraded jre8-openjdk (8.u141-1 -> 8.u144-1)
[2017-07-31 14:16] [ALPM] upgraded libgit2-glib (0.25.0-2 -> 0.26.0-1)
[2017-07-31 14:16] [ALPM] upgraded libpipeline (1.4.1-1 -> 1.4.2-1)
[2017-07-31 14:16] [ALPM] upgraded libsrtp (1:1.5.4-1 -> 1:1.5.4-2)
[2017-07-31 14:16] [ALPM] upgraded linux-firmware (20170422.ade8332-1 -> 20170622.7d2c913-1)
[2017-07-31 14:16] [ALPM] upgraded linux (4.11.9-1 -> 4.12.3-1)
[2017-07-31 14:16] [ALPM-SCRIPTLET] >>> Updating module dependencies. Please wait ...
[2017-07-31 14:16] [ALPM] upgraded linux-docs (4.11.9-1 -> 4.12.3-1)
[2017-07-31 14:16] [ALPM] upgraded linux-hardened (4.12.3.a-1 -> 4.12.4.a-1)
[2017-07-31 14:16] [ALPM-SCRIPTLET] >>> Updating module dependencies. Please wait ...
[2017-07-31 14:16] [ALPM] upgraded linux-hardened-docs (4.12.3.a-1 -> 4.12.4.a-1)
[2017-07-31 14:16] [ALPM] upgraded linux-hardened-headers (4.12.3.a-1 -> 4.12.4.a-1)
[2017-07-31 14:16] [ALPM] upgraded linux-headers (4.11.9-1 -> 4.12.3-1)
[2017-07-31 14:16] [ALPM] upgraded man-pages (4.11-1 -> 4.12-1)
[2017-07-31 14:16] [ALPM] upgraded nano (2.8.5-1 -> 2.8.6-1)
[2017-07-31 14:16] [ALPM] warning: /etc/pacman.d/mirrorlist installed as /etc/pacman.d/mirrorlist.pacnew
[2017-07-31 14:16] [ALPM] upgraded pacman-mirrorlist (20170714-1 -> 20170729-1)
[2017-07-31 14:16] [ALPM] upgraded sdl (1.2.15-8 -> 1.2.15-9)
[2017-07-31 14:16] [ALPM] upgraded whois (5.2.16-1 -> 5.2.17-1)
[2017-07-31 14:16] [ALPM] transaction completed
[2017-07-31 14:16] [ALPM] running '90-linux-hardened.hook'...
[2017-07-31 14:16] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-hardened.preset: 'default'
SNIP -- mkinitcpio (excluded for brevity)
[2017-07-31 14:17] [ALPM-SCRIPTLET] ==> Image generation successful
[2017-07-31 14:17] [ALPM] running 'fontconfig.hook'...
[2017-07-31 14:17] [ALPM] running 'glib-compile-schemas.hook'...
[2017-07-31 14:17] [ALPM] running 'gtk-update-icon-cache.hook'...
[2017-07-31 14:17] [ALPM] running 'systemd-sysusers.hook'...
[2017-07-31 14:17] [ALPM] running 'systemd-tmpfiles.hook'...
[2017-07-31 14:17] [ALPM] running 'systemd-update.hook'...
[2017-07-31 14:17] [ALPM] running 'texinfo-install.hook'...
[2017-07-31 14:17] [ALPM] running 'update-desktop-database.hook'...
[2017-07-31 14:17] [ALPM] running 'xorg-mkfontdir.hook'...
[2017-07-31 14:23] [PACMAN] Running 'pacman -Syu'
[2017-07-31 14:23] [PACMAN] synchronizing package lists
[2017-07-31 14:23] [PACMAN] starting full system upgrade
[2017-08-03 12:30] [PACMAN] Running 'pacman -Syu'
[2017-08-03 12:30] [PACMAN] synchronizing package lists
[2017-08-03 12:30] [PACMAN] starting full system upgrade
[2017-08-03 12:30] [ALPM] transaction started
[2017-08-03 12:30] [ALPM] upgraded libgcrypt (1.7.8-1 -> 1.8.0-1)
[2017-08-03 12:30] [ALPM] upgraded libsystemd (234.11-1 -> 234.11-3)
[2017-08-03 12:30] [ALPM] upgraded systemd (234.11-1 -> 234.11-3)
[2017-08-03 12:30] [ALPM] upgraded libpng (1.6.30-1 -> 1.6.31-1)
[2017-08-03 12:30] [ALPM] upgraded sqlite (3.19.3-1 -> 3.20.0-1)
[2017-08-03 12:30] [ALPM] upgraded brasero (3.12.1-2 -> 3.12.2-1)
[2017-08-03 12:30] [ALPM] upgraded chromium (60.0.3112.78-1 -> 60.0.3112.90-1)
[2017-08-03 12:30] [ALPM] upgraded poppler (0.56.0-1 -> 0.57.0-1)
[2017-08-03 12:30] [ALPM] upgraded cups-filters (1.16.0-1 -> 1.16.0-2)
[2017-08-03 12:30] [ALPM] upgraded gambas3-gb-desktop-gnome (3.9.2-7 -> 3.9.2-8)
[2017-08-03 12:30] [ALPM] upgraded gambas3-runtime (3.9.2-7 -> 3.9.2-8)
[2017-08-03 12:30] [ALPM] upgraded gambas3-gb-image (3.9.2-7 -> 3.9.2-8)
[2017-08-03 12:30] [ALPM] upgraded gambas3-gb-gtk (3.9.2-7 -> 3.9.2-8)
[2017-08-03 12:30] [ALPM] upgraded gambas3-gb-opengl (3.9.2-7 -> 3.9.2-8)
[2017-08-03 12:30] [ALPM] upgraded gambas3-gb-gtk-opengl (3.9.2-7 -> 3.9.2-8)
[2017-08-03 12:30] [ALPM] upgraded gdal (2.1.2-2 -> 2.2.0-3)
[2017-08-03 12:30] [ALPM] upgraded ghostscript (9.21-2 -> 9.21-3)
[2017-08-03 12:30] [ALPM] upgraded git (2.13.3-2 -> 2.13.4-1)
[2017-08-03 12:30] [ALPM] upgraded gnome-online-accounts (3.24.1+4+g6e8f45ff-1 -> 3.24.2-1)
[2017-08-03 12:30] [ALPM] upgraded poppler-glib (0.56.0-1 -> 0.57.0-1)
[2017-08-03 12:30] [ALPM] upgraded inkscape (0.92.1-4 -> 0.92.1-5)
[2017-08-03 12:30] [ALPM] upgraded libmwaw (0.3.11-1 -> 0.3.12-1)
[2017-08-03 12:30] [ALPM] upgraded libwps (0.4.6-1 -> 0.4.7-1)
[2017-08-03 12:30] [ALPM] installed xmlsec (1.2.24-1)
[2017-08-03 12:31] [ALPM] upgraded libreoffice-fresh (5.3.4-1 -> 5.4.0-2)
[2017-08-03 12:31] [ALPM] upgraded moreutils (0.60-1 -> 0.61-1)
[2017-08-03 12:31] [ALPM] upgraded nmap (7.50-1 -> 7.60-1)
[2017-08-03 12:31] [ALPM] upgraded openal (1.18.0-2 -> 1.18.1-1)
[2017-08-03 12:31] [ALPM] upgraded poppler-qt5 (0.56.0-1 -> 0.57.0-1)
[2017-08-03 12:31] [ALPM] upgraded python-urllib3 (1.21.1-1 -> 1.22-1)
[2017-08-03 12:31] [ALPM] upgraded python-setuptools (1:36.2.4-1 -> 1:36.2.7-1)
[2017-08-03 12:31] [ALPM] upgraded python-requests (2.18.1-1 -> 2.18.3-1)
[2017-08-03 12:31] [ALPM] upgraded python2-psycopg2 (2.7.2-1 -> 2.7.3-1)
[2017-08-03 12:31] [ALPM] upgraded python2-setuptools (1:36.2.4-1 -> 1:36.2.7-1)
[2017-08-03 12:31] [ALPM] upgraded recode (3.6-9 -> 3.6-10)
[2017-08-03 12:31] [ALPM] upgraded systemd-sysvcompat (234.11-1 -> 234.11-3)
[2017-08-03 12:31] [ALPM] upgraded talloc (2.1.9-1 -> 2.1.10-1)
[2017-08-03 12:31] [ALPM] upgraded vim-runtime (8.0.0722-1 -> 8.0.0851-1)
[2017-08-03 12:31] [ALPM] upgraded vim (8.0.0722-1 -> 8.0.0851-1)
[2017-08-03 12:31] [ALPM] transaction completed
[2017-08-03 12:31] [ALPM] running '90-linux-hardened.hook'...
[2017-08-03 12:31] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-hardened.preset: 'default'
SNIP -- mkinitcpio (excluded for brevity)
[2017-08-03 12:31] [ALPM-SCRIPTLET] ==> Image generation successful
[2017-08-03 12:31] [ALPM] running 'glib-compile-schemas.hook'...
[2017-08-03 12:31] [ALPM] running 'gtk-update-icon-cache.hook'...
[2017-08-03 12:31] [ALPM] running 'systemd-boot.hook'...
[2017-08-03 12:31] [ALPM-SCRIPTLET] Using EFI System Partition at /boot.
[2017-08-03 12:31] [ALPM-SCRIPTLET] Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/boot/EFI/systemd/systemd-bootx64.efi".
[2017-08-03 12:31] [ALPM-SCRIPTLET] Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/boot/EFI/BOOT/BOOTX64.EFI".
[2017-08-03 12:31] [ALPM] running 'systemd-hwdb.hook'...
[2017-08-03 12:31] [ALPM] running 'systemd-sysusers.hook'...
[2017-08-03 12:31] [ALPM] running 'systemd-tmpfiles.hook'...
[2017-08-03 12:31] [ALPM] running 'systemd-update.hook'...
[2017-08-03 12:31] [ALPM] running 'texinfo-install.hook'...
[2017-08-03 12:31] [ALPM] running 'update-desktop-database.hook'...
[2017-08-03 12:31] [ALPM] running 'update-mime-database.hook'...
[2017-08-03 13:24] [PACMAN] Running 'pacman -Rns lib'
[2017-08-03 13:24] [PACMAN] Running 'pacman -Rns lib32-glibc'
[2017-08-03 13:25] [PACMAN] Running 'pacman -Rns glibc'
[2017-08-03 13:25] [PACMAN] Running 'pacman -S'
[2017-08-03 13:25] Exited with code 1
[2017-08-03 13:33] [PACMAN] Running 'pacman -Syyu'
[2017-08-03 13:33] [PACMAN] synchronizing package lists
[2017-08-03 13:33] [PACMAN] starting full system upgrade
[2017-08-03 13:33] [PACMAN] Running 'pacman -Syyu pam'
[2017-08-03 13:33] [PACMAN] synchronizing package lists
[2017-08-03 13:33] [PACMAN] starting full system upgrade
[2017-08-03 13:33] [ALPM] transaction started
[2017-08-03 13:33] [ALPM] reinstalled pam (1.3.0-1)
[2017-08-03 13:33] [ALPM] transaction completed
[2017-08-03 13:33] [ALPM] running 'systemd-update.hook'...
[2017-08-03 13:33] [PACMAN] Running 'pacman -Syyu pambase'
[2017-08-03 13:33] [PACMAN] synchronizing package lists
[2017-08-03 13:33] [PACMAN] starting full system upgrade
[2017-08-03 13:33] [ALPM] transaction started
[2017-08-03 13:33] [ALPM] reinstalled pambase (20130928-1)
[2017-08-03 13:33] [ALPM] transaction completed
[2017-08-03 13:33] [PACMAN] Running 'pacman -Syyu'
[2017-08-03 13:33] [PACMAN] synchronizing package lists
[2017-08-03 13:34] [PACMAN] starting full system upgrade
[2017-08-03 13:42] [PACMAN] Running 'pacman -Syyu'
[2017-08-03 13:42] [PACMAN] synchronizing package lists
[2017-08-03 13:42] [PACMAN] Running 'pacman -Syyu'
[2017-08-03 13:42] [PACMAN] synchronizing package lists
[2017-08-04 12:39] [PACMAN] Running 'pacman -Syu seahorse'
[2017-08-04 12:39] [PACMAN] synchronizing package lists
[2017-08-04 12:39] [PACMAN] starting full system upgrade
[2017-08-04 12:39] [PACMAN] Running 'pacman -Syu'
[2017-08-04 12:39] [PACMAN] synchronizing package lists
[2017-08-04 12:39] [PACMAN] starting full system upgrade
[2017-08-04 12:39] [ALPM] transaction started
[2017-08-04 12:39] [ALPM] upgraded libsystemd (234.11-3 -> 234.11-4)
[2017-08-04 12:39] [ALPM] upgraded gambas3-gb-desktop-gnome (3.9.2-8 -> 3.9.2-9)
[2017-08-04 12:39] [ALPM] upgraded gambas3-runtime (3.9.2-8 -> 3.9.2-9)
[2017-08-04 12:39] [ALPM] upgraded gambas3-gb-image (3.9.2-8 -> 3.9.2-9)
[2017-08-04 12:39] [ALPM] upgraded gambas3-gb-gtk (3.9.2-8 -> 3.9.2-9)
[2017-08-04 12:39] [ALPM] upgraded glew (2.0.0-1 -> 2.1.0-1)
[2017-08-04 12:39] [ALPM] upgraded gambas3-gb-opengl (3.9.2-8 -> 3.9.2-9)
[2017-08-04 12:39] [ALPM] upgraded gambas3-gb-gtk-opengl (3.9.2-8 -> 3.9.2-9)
[2017-08-04 12:39] [ALPM] upgraded gnupg (2.1.21-3 -> 2.1.22-1)
[2017-08-04 12:39] [ALPM] upgraded gtkspell (2.0.16-3 -> 2.0.16-4)
[2017-08-04 12:39] [ALPM] upgraded hplip (3.17.6-2 -> 3.17.7-1)
[2017-08-04 12:39] [ALPM] upgraded systemd (234.11-3 -> 234.11-4)
[2017-08-04 12:39] [ALPM] upgraded linux (4.12.3-1 -> 4.12.4-1)
[2017-08-04 12:39] [ALPM-SCRIPTLET] >>> Updating module dependencies. Please wait ...
[2017-08-04 12:39] [ALPM] upgraded linux-docs (4.12.3-1 -> 4.12.4-1)
[2017-08-04 12:39] [ALPM] upgraded linux-headers (4.12.3-1 -> 4.12.4-1)
[2017-08-04 12:39] [ALPM] upgraded systemd-sysvcompat (234.11-3 -> 234.11-4)
[2017-08-04 12:39] [ALPM] transaction completed
[2017-08-04 12:39] [ALPM] running '90-linux-hardened.hook'...
[2017-08-04 12:39] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-hardened.preset: 'default'
SNIP -- mkinitcpio (excluded for brevity)
[2017-08-04 12:40] [ALPM] running 'systemd-boot.hook'...
[2017-08-04 12:40] [ALPM-SCRIPTLET] Using EFI System Partition at /boot.
[2017-08-04 12:40] [ALPM-SCRIPTLET] Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/boot/EFI/systemd/systemd-bootx64.efi".
[2017-08-04 12:40] [ALPM-SCRIPTLET] Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/boot/EFI/BOOT/BOOTX64.EFI".
[2017-08-04 12:40] [ALPM] running 'systemd-hwdb.hook'...
[2017-08-04 12:40] [ALPM] running 'systemd-sysusers.hook'...
[2017-08-04 12:40] [ALPM] running 'systemd-tmpfiles.hook'...
[2017-08-04 12:40] [ALPM] running 'systemd-update.hook'...
[2017-08-04 12:40] [ALPM] running 'texinfo-install.hook'...
[2017-08-04 12:40] [ALPM] running 'update-desktop-database.hook'...
[2017-08-04 12:41] [PACMAN] Running 'pacman -Syu seahorse-nautilus'
[2017-08-04 12:41] [PACMAN] synchronizing package lists
[2017-08-04 12:41] [PACMAN] starting full system upgrade
[2017-08-04 12:41] [ALPM] transaction started
[2017-08-04 12:41] [ALPM] reinstalled seahorse-nautilus (3.11.92+17+gca04c23-1)
[2017-08-04 12:41] [ALPM] transaction completed
[2017-08-04 12:41] [ALPM] running 'glib-compile-schemas.hook'...
[2017-08-04 12:41] [ALPM] running 'systemd-update.hook'...
[2017-08-04 12:41] [ALPM] running 'update-desktop-database.hook'...
[2017-08-04 12:41] [PACMAN] Running 'pacman -Syu seahorse'
[2017-08-04 12:41] [PACMAN] synchronizing package lists
[2017-08-04 12:41] [PACMAN] starting full system upgrade
[2017-08-04 12:41] [ALPM] transaction started
[2017-08-04 12:41] [ALPM] reinstalled seahorse (3.20.0+94+g4c671a78-1)
[2017-08-04 12:41] [ALPM] transaction completed
[2017-08-04 12:41] [ALPM] running 'glib-compile-schemas.hook'...
[2017-08-04 12:41] [ALPM] running 'gtk-update-icon-cache.hook'...
[2017-08-04 12:41] [ALPM] running 'systemd-update.hook'...
[2017-08-04 12:41] [ALPM] running 'update-desktop-database.hook'...
[2017-08-04 12:41] [PACMAN] Running 'pacman -Syu openssh'
[2017-08-04 12:41] [PACMAN] synchronizing package lists
[2017-08-04 12:41] [PACMAN] starting full system upgrade
[2017-08-04 12:41] [ALPM] transaction started
[2017-08-04 12:41] [ALPM] reinstalled openssh (7.5p1-2)
[2017-08-04 12:41] [ALPM] transaction completed
[2017-08-04 12:41] [ALPM] running 'systemd-tmpfiles.hook'...
[2017-08-04 12:41] [ALPM] running 'systemd-update.hook'...
[2017-08-04 12:42] [PACMAN] Running 'pacman -Syu gnome-keyring'
[2017-08-04 12:42] [PACMAN] synchronizing package lists
[2017-08-04 12:42] [PACMAN] starting full system upgrade
[2017-08-04 12:42] [ALPM] transaction started
[2017-08-04 12:42] [ALPM] reinstalled gnome-keyring (1:3.20.0+57+g9db67ef6-1)
[2017-08-04 12:42] [ALPM] transaction completed
[2017-08-04 12:42] [ALPM] running 'glib-compile-schemas.hook'...
[2017-08-04 12:42] [ALPM] running 'systemd-update.hook'...
[2017-08-04 12:42] [PACMAN] Running 'pacman -Syu gnome-keyring-sharp'
[2017-08-04 12:42] [PACMAN] synchronizing package lists
[2017-08-04 12:42] [PACMAN] starting full system upgrade
[2017-08-04 12:45] [PACMAN] Running 'pacman -Rns gnome-keyring-sharp'
[2017-08-04 12:45] [PACMAN] Running 'pacman -Syu'
[2017-08-04 12:45] [PACMAN] synchronizing package lists
[2017-08-04 12:45] [PACMAN] starting full system upgrade

Last edited by osteichthyes (2017-08-07 22:48:27)

Offline

#9 2017-08-07 23:36:39

loqs
Member
Registered: 2014-03-06
Posts: 17,194

Re: Luks encrypted home not mounting

linux was updated from 4.11.y to 4.12.y but linux hardened was already on 4.12.y,  systemd 234.11-2 included crypt related changes as already noted but you are not using systemd to unlock the volume.
Perhaps the requested journal / log will provide some insight.  You could also try downgrading the packages and seeing if that resolves the issue.

Offline

#10 2017-08-08 23:33:17

osteichthyes
Member
Registered: 2016-04-20
Posts: 38

Re: Luks encrypted home not mounting

Yes, I've attempted on a few different kernel versions.

First, cryptsetup dumps error code 1:

Aug 08 16:18:46 LenovoFlex4 systemd[659]: pam_exec(systemd-user:session): /usr/bin/cryptsetup failed: exit code 1

Then error code 2

Aug 08 16:19:15 LenovoFlex4 gdm-password][1990]: pam_exec(gdm-password:auth): /usr/bin/cryptsetup failed: exit code 2

Then if I suspend and recover, error code 5

Aug 08 16:20:19 LenovoFlex4 gdm-password][4841]: pam_exec(gdm-password:session): /usr/bin/cryptsetup failed: exit code 5

5 means it's already active, so that makes sense. 2 mean no permission, but that's not consistent. Error 1 is the issue.

My implementation is identical to this: https://wiki.archlinux.org/index.php/Dm … g_at_login
I also would guess that the error 2 is the result of the note, that in order to get this method to work with lightdm or gdm, you must include a session pam_exec as well (see second note near top of page).

The volume is unlocked by pam_exect, which I guess uses systemd as the errors are logged to systemd. Also, the volume is not automounted, but is mounted by systemd

That's the only relevant log, but I can post more if it would help.

Last edited by osteichthyes (2017-08-14 00:32:09)

Offline

#11 2017-08-14 00:32:40

osteichthyes
Member
Registered: 2016-04-20
Posts: 38

Re: Luks encrypted home not mounting

Would more logs be helpful?

Thanks!

Offline

#12 2017-08-14 07:44:03

loqs
Member
Registered: 2014-03-06
Posts: 17,194

Re: Luks encrypted home not mounting

Is the issue resolved if you downgrade systemd,  libsystemd and systemd-sysvcompat from 234.11-3 to 234.11-1?

Offline

#13 2017-08-14 22:15:45

osteichthyes
Member
Registered: 2016-04-20
Posts: 38

Re: Luks encrypted home not mounting

I tried both 233.75 and 234.11.1 -- neither fixed the issue.

I also tried disabling gdm, in case this was in some way an issue.

I also tried changing my pam-exec from /dev/disk/by-partlabel/home to /dev/sda3 -- none of that worked.

Here is my pam exec line of  /etc/pam.d/system-login

auth       optional   pam_exec.so expose_authtok quiet /usr/bin/cryptsetup open /dev/disk/by-partlabel/home home-scott
...
session    optional   pam_exec.so quiet /usr/bin/cryptsetup open /dev/disk/by-partlabel/home home-scott

Following the tutorial on the wiki, /etc/systemd/system/cryptsetup-scott.service

[Unit]
DefaultDependencies=no
BindsTo=dev-disk-by\x2dpartlabel-home.device
After=dev-disk-by\x2dpartlabel-home.device
BindsTo=dev-mapper-home\x2dscott.device
Requires=home-scott.mount
Before=home-scott.mount
Conflicts=umount.target
Before=umount.target

[Service]
Type=oneshot
RemainAfterExit=yes
TimeoutSec=0
ExecStop=/usr/bin/cryptsetup close home-scott

[Install]
RequiredBy=dev-mapper-home\x2dscott.device

/etc/systemd/system/home-scott.mount.d/logout.conf

[Unit]
Requires=user@1001.service

/etc/systemd/system/user@1001.service.d/homedir.conf

[Unit]
Requires=home-scott.mount
After=home-scott.mount

I'm at a loss about what could be wrong at this point. I'm going to remove the quiet from the pam exec line to see if anything more interesting shakes out.

Offline

#14 2017-08-14 22:25:16

osteichthyes
Member
Registered: 2016-04-20
Posts: 38

Re: Luks encrypted home not mounting

This time, after the suspend and resume, the following appeared

... Boot, systemd starting
Aug 14 15:16:42 LenovoFlex4 kernel: device-mapper: uevent: version 1.0.3
Aug 14 15:16:42 LenovoFlex4 kernel: device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel@redhat.com
Aug 14 15:16:42 LenovoFlex4 systemd[622]: pam_exec(systemd-user:session): /usr/bin/cryptsetup failed: exit code 1
Aug 14 15:16:42 LenovoFlex4 systemd[622]: pam_exec(systemd-user:session): conversation failed
Aug 14 15:16:42 LenovoFlex4 systemd[622]: pam_unix(systemd-user:session): session opened for user gdm by (uid=0)
Aug 14 15:16:42 LenovoFlex4 systemd[622]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
... (More unrelated)
... SUSPEND
Aug 14 15:17:17 LenovoFlex4 gdm-password][911]: pam_exec(gdm-password:session): /usr/bin/cryptsetup failed: exit code 5
... (A FEW UNRELATED LINES)
-- Unit user@1001.service has begun starting up.
Aug 14 15:17:17 LenovoFlex4 systemd[1234]: pam_exec(systemd-user:session): /usr/bin/cryptsetup failed: exit code 5
Aug 14 15:17:17 LenovoFlex4 systemd[1234]: pam_exec(systemd-user:session): conversation failed

Offline

#15 2017-08-14 22:58:13

loqs
Member
Registered: 2014-03-06
Posts: 17,194

Re: Luks encrypted home not mounting

Try using Arch_Linux_Archive#How_to_restore_all_packages_to_a_specific_date to rollback all packages to the date you believe the system last functioned correctly on.

Offline

#16 2017-08-16 22:12:07

osteichthyes
Member
Registered: 2016-04-20
Posts: 38

Re: Luks encrypted home not mounting

I did the downgrade, as recommended by loqs.

First, I downgraded to 30 July, the problem persisted. Then I downgraded to 28 July and the problem was resovled. Here's the contents of my pacman log from the downgrade between 30 July and 28 July.

[2017-08-16 15:19] [PACMAN] synchronizing package lists
[2017-08-16 15:19] [PACMAN] starting full system upgrade
[2017-08-16 15:20] [ALPM] transaction started
[2017-08-16 15:20] [ALPM] downgraded libutil-linux (2.30.1-2 -> 2.29.2-2)
[2017-08-16 15:20] [ALPM] downgraded avahi (0.7-1 -> 0.6.32-3)
[2017-08-16 15:20] [ALPM] warning: /etc/bluetooth/main.conf installed as /etc/bluetooth/main.conf.pacnew
[2017-08-16 15:20] [ALPM] downgraded bluez (5.46-1 -> 5.45-1)
[2017-08-16 15:20] [ALPM] downgraded bluez-libs (5.46-1 -> 5.45-1)
[2017-08-16 15:20] [ALPM] downgraded fontconfig (2.12.4-1 -> 2.12.3-1)
[2017-08-16 15:20] [ALPM-SCRIPTLET] Rebuilding fontconfig cache... done.
[2017-08-16 15:20] [ALPM] downgraded openssl (1.1.0.f-2 -> 1.1.0.f-1)
[2017-08-16 15:20] [ALPM] downgraded util-linux (2.30.1-2 -> 2.29.2-2)
[2017-08-16 15:20] [ALPM] downgraded libdrm (2.4.82-1 -> 2.4.81-1)
[2017-08-16 15:20] [ALPM] downgraded cups-filters (1.16.0-1 -> 1.14.1-1)
[2017-08-16 15:20] [ALPM] downgraded gnome-logs (3.24.2-1 -> 3.24.1+1+gf949685-1)
[2017-08-16 15:20] [ALPM] downgraded gptfdisk (1.0.3-1 -> 1.0.1-2)
[2017-08-16 15:21] [ALPM] downgraded jre8-openjdk-headless (8.u144-1 -> 8.u141-1)
[2017-08-16 15:21] [ALPM] downgraded jre8-openjdk (8.u144-1 -> 8.u141-1)
[2017-08-16 15:21] [ALPM] downgraded libpipeline (1.4.2-1 -> 1.4.1-1)
[2017-08-16 15:21] [ALPM] downgraded libsrtp (1:1.5.4-2 -> 1:1.5.4-1)
[2017-08-16 15:21] [ALPM] downgraded linux-firmware (20170622.7d2c913-1 -> 20170422.ade8332-1)
[2017-08-16 15:21] [ALPM] downgraded linux (4.12.3-1 -> 4.11.9-1)
[2017-08-16 15:21] [ALPM-SCRIPTLET] >>> Updating module dependencies. Please wait ...
[2017-08-16 15:21] [ALPM] downgraded linux-docs (4.12.3-1 -> 4.11.9-1)
[2017-08-16 15:22] [ALPM] downgraded linux-hardened (4.12.4.a-1 -> 4.12.3.a-1)
[2017-08-16 15:22] [ALPM-SCRIPTLET] >>> Updating module dependencies. Please wait ...
[2017-08-16 15:22] [ALPM] downgraded linux-hardened-docs (4.12.4.a-1 -> 4.12.3.a-1)
[2017-08-16 15:22] [ALPM] downgraded linux-hardened-headers (4.12.4.a-1 -> 4.12.3.a-1)
[2017-08-16 15:22] [ALPM] downgraded linux-headers (4.12.3-1 -> 4.11.9-1)
[2017-08-16 15:22] [ALPM] downgraded man-pages (4.12-1 -> 4.11-1)
[2017-08-16 15:22] [ALPM] downgraded nano (2.8.6-1 -> 2.8.5-1)
[2017-08-16 15:22] [ALPM] warning: /etc/pacman.d/mirrorlist installed as /etc/pacman.d/mirrorlist.pacnew
[2017-08-16 15:22] [ALPM] downgraded pacman-mirrorlist (20170729-1 -> 20170714-1)
[2017-08-16 15:22] [ALPM] downgraded sdl (1.2.15-9 -> 1.2.15-8)
[2017-08-16 15:22] [ALPM] downgraded whois (5.2.17-1 -> 5.2.16-1)
[2017-08-16 15:22] [ALPM] transaction completed
[2017-08-16 15:22] [ALPM] running '90-linux-hardened.hook'...
SNIP -- MKINITCPIO
[2017-08-16 15:24] [ALPM] running 'glib-compile-schemas.hook'...
[2017-08-16 15:24] [ALPM] running 'gtk-update-icon-cache.hook'...
[2017-08-16 15:24] [ALPM] running 'systemd-sysusers.hook'...
[2017-08-16 15:24] [ALPM] running 'systemd-tmpfiles.hook'...
[2017-08-16 15:24] [ALPM] running 'systemd-update.hook'...
[2017-08-16 15:24] [ALPM] running 'texinfo-install.hook'...
[2017-08-16 15:24] [ALPM] running 'update-desktop-database.hook'...

The most relevant thing in there, (and the only packages) on which cryptsetup relies are util-linux and libutil-linux

Last edited by osteichthyes (2017-08-16 22:41:48)

Offline

#17 2017-08-16 22:49:42

osteichthyes
Member
Registered: 2016-04-20
Posts: 38

Re: Luks encrypted home not mounting

The break seems to have been introduced by the util-linux/libutil-linux upgrade from 2.30 to 2.30.1

Offline

#18 2018-03-25 12:25:15

vapoto
Member
Registered: 2018-03-25
Posts: 3

Re: Luks encrypted home not mounting

I didn't manage to get this to work using the info in the wiki, this thread and the bug report... Even after downgrading (lib)util-linux to the suggested version, I get

systemd[473]: pam_exec(systemd-user:session): /usr/bin/cryptsetup failed: exit code 1

I also never get another exit code. Using the latest versions of everything, I get exactly the same, even when removing the line from /etc/fstab to test the automatic unlocking.

My /etc/pam.d/system-auth is as follows:

#%PAM-1.0

auth      required  pam_unix.so     try_first_pass nullok
auth	  optional  pam_exec.so expose_authtok quiet /usr/bin/cryptsetup open /dev/nvme0n1p8 home-vapoto
auth      optional  pam_permit.so
auth      required  pam_env.so

account   required  pam_unix.so
account   optional  pam_permit.so
account   required  pam_time.so

password  required  pam_unix.so     try_first_pass nullok sha512 shadow
password  optional  pam_permit.so

session	  optional  pam_exec.so quiet /usr/bin/cryptsetup open /dev/nvme0n1p8 home-vapoto
session   required  pam_limits.so
session   required  pam_unix.so
session   optional  pam_permit.so

Is there anything I'm missing?

Offline

Board footer

Powered by FluxBB