You are not logged in.

#1 2012-10-23 15:15:36

mentat
Member
From: France
Registered: 2009-01-13
Posts: 138
Website

[SOLVED] crypttab fail with mixed systemd/sysvinit installation

Hi,

At boot my LUKS partition /home doesn't mount, no password asking.
/home is my only one LUKS partition.

The emergency mode shell appear:
I didn't see the mapper device in /dev/mapper

systemctl status home

... say:

dev/mapper/home doesn't exist
Failed to mount /home

I can unlocking/Mapping LUKS Partitions and mount it

I exit with:

systemctl default

the boot process finish well.
systemd journal say:

... systemd[1]: home.mount mount process exited, code=exited status=32
... systemd[1]: Failed to mount /home.
... systemd[1]: Dependency failed for Local File Systems.
... systemd[1]: Job local-fs.target/start failed with result 'dependency'.

If I modify fstab with 'noauto' option:

    dev/mapper/home /home   ext3    defaults,noauto 0 1

at boot systemd ask me passphrase, the boot process finish BUT it's not mounted (need manual mounting).

Thanks if someone can help.

Ultimate question: Is the mixed systemd/sysvinit/initscripts install compatible with LUKS or is it full systemd only?

Some infos

My system boot and work like a charm with sysvinit.

I follow the wiki mixed systemd/sysvinit/initscripts:

- native systemd configuration files (ok)
- systemd installed wink

init=/usr/lib/systemd/systemd 

... to the kernel parameters (ok)

menu.lst

# (0) Arch Linux
title  Arch Linux systemd
root   (hd0,2)
kernel /vmlinuz-linux root=/dev/disk/by-uuid/**** ro init=/usr/lib/systemd/systemd
initrd /initramfs-linux.img

fstab

dev/mapper/home /home   ext3    defaults 0 1

crypttab

home           UUID=a2853b76-28b0-48f1-a945-7378bcd9fd95 none

Last edited by mentat (2012-10-23 17:04:11)

Offline

#2 2012-10-23 16:23:53

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: [SOLVED] crypttab fail with mixed systemd/sysvinit installation

possibly stupid suggestion: is that just a copy/paste error, or are you missing a leading '/' in your fstab? I.e., should it be /dev/mapper/home?

Offline

#3 2012-10-23 17:00:59

mentat
Member
From: France
Registered: 2009-01-13
Posts: 138
Website

Re: [SOLVED] crypttab fail with mixed systemd/sysvinit installation

Ouch' tomegun,
your hit me because you're so right.
Thanks very much,
you have great bionic eyes.

All this years and never see this ...
Shame on me.
Sorry for this lame post.

Offline

Board footer

Powered by FluxBB