You are not logged in.

#1 2012-07-29 21:03:18

yodaz
Member
Registered: 2011-03-08
Posts: 41

[SOLVED] systemd and encrypted partition

Hi !

I've switched recently to systemd and I've a problem to type my passphrase for unlocking my encrypted /home and swap at boot.

I see the prompt, but I don't have time to type anything, systemd continues booting anyway.

How can I force systemd to stop waiting for me to finish typing my passphrase ?

Here's my crypttab :

    swap           /dev/sda2        none    timeout=1h
    home           /dev/sda9        none    timeout=1h

Thanks for your help.

Last edited by yodaz (2012-07-31 20:49:54)

Offline

#2 2012-07-30 18:32:00

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED] systemd and encrypted partition

What hooks you have in mkinitcpio.conf?

Offline

#3 2012-07-30 19:40:35

yodaz
Member
Registered: 2011-03-08
Posts: 41

Re: [SOLVED] systemd and encrypted partition

Hi,

I have the following hooks :

HOOKS="base udev autodetect pata scsi sata filesystems usbinput keymap shutdown fsck usr"

Offline

#4 2012-07-30 21:18:02

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED] systemd and encrypted partition

Offline

#5 2012-07-30 21:41:44

yodaz
Member
Registered: 2011-03-08
Posts: 41

Re: [SOLVED] systemd and encrypted partition

I'm not sure it's related to my problem ; I'm not using keyfile, I type passphrase on each boot.
And I don't need to mount ciphered partition from initramfs because only my home and my swap are crypted.

Here's my fstab :

# 
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>

/dev/mapper/home /home ext3 defaults 0 1
/dev/mapper/swap swap swap defaults 0 0
UUID=0b408d8d-176a-4125-963d-3336c1122623 /var ext4 defaults 0 1
UUID=504126a5-5f6a-4241-b8e8-2dc7f43bf4eb /boot ext2 defaults 0 1
UUID=74682c6c-2144-4f13-ad15-fad581855295 /tmp ext4 defaults 0 1
UUID=869039e9-ade7-49b7-a7b1-23c25393edb4 / ext4 defaults 0 1
UUID=c2513c12-0df0-4740-9989-9a796bb97eae /usr ext4 defaults 0 1

Offline

#6 2012-07-31 20:38:48

yodaz
Member
Registered: 2011-03-08
Posts: 41

Re: [SOLVED] systemd and encrypted partition

Ok, I've found what's wrong. I had the following line at end of my /etc/fstab that caused problem :

//192.168.0.2/media    /media/nas      cifs defaults,credentials=/etc/smb.credentials,ro,gid=91,uid=1000,iocharset=utf8,file_mode=0444,dir_mode=0555 0 0

With this line, mounting filesystems failed and goes into endless error loop.
I've solved the problem by using automount : I've added noauto,x-systemd.automount in mount options, and everything works well


//192.168.0.2/media    /media/nas      cifs defaults,credentials=/etc/smb.credentials,ro,gid=91,uid=1000,iocharset=utf8,file_mode=0444,dir_mode=0555,noauto,x-systemd.automount 0 0

Offline

#7 2012-07-31 20:42:34

yodaz
Member
Registered: 2011-03-08
Posts: 41

Re: [SOLVED] systemd and encrypted partition

How can I flag this topic as solved please ?

Offline

#8 2012-07-31 20:45:17

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] systemd and encrypted partition

Edit the first post and prepend [Solved] to the subject.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#9 2012-07-31 20:48:56

yodaz
Member
Registered: 2011-03-08
Posts: 41

Re: [SOLVED] systemd and encrypted partition

Thanks, and sorry for the lame question ><

Offline

Board footer

Powered by FluxBB