Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#33486 - [systemd] does not honor the "timeout=0" in /etc/crypttab
Attached to Project:
Arch Linux
Opened by Zygfryd Homonto (zyghom) - Monday, 21 January 2013, 07:03 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 27 January 2013, 15:18 GMT
Opened by Zygfryd Homonto (zyghom) - Monday, 21 January 2013, 07:03 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 27 January 2013, 15:18 GMT
|
DetailsDescription: cryptsetup does not honor the "timeout=0" in /etc/crypttab
During the boot process it still waits 1m30sec and then timeout It should wait indefinitely if timeout=0 according to cryptsetup documentation Additional info: * package version(s) cryptsetup 1.5.1-1 * config and/or log files etc. cat /etc/crypttab # NAME SOURCE DEVICE PASSWORD OPTIONS home /dev/sda8 - timeout=0 Steps to reproduce: always the same |
This task depends upon
Closed by Dave Reisner (falconindy)
Sunday, 27 January 2013, 15:18 GMT
Reason for closing: Not a bug
Additional comments about closing: user configuration error.
Sunday, 27 January 2013, 15:18 GMT
Reason for closing: Not a bug
Additional comments about closing: user configuration error.
I assume you're mounting this device via /etc/fstab as well? You need to mark that device with x-systemd.device-timeout=0 too -- I suspect this is what's timing out, not the wait for /dev/sda8, but that's merely speculation since you've not actually posted the error.
tmpfs /tmp tmpfs nodev,nosuid,size=8G 0 0
none /dev/shm tmpfs defaults,size=8G,noexec,nodev,nosuid 0 0
debugfs /sys/kernel/debug debugfs defaults 0 0
/dev/sda7 / ext4 defaults 0 1
/dev/sda9 none swap defaults 0 0
/dev/mapper/home /home ext4 defaults 0 1
21:52:01 root@baboonsony:/home/papio# cat /etc/crypttab | grep -v '#'
home /dev/disk/by-uuid/b3f57f29-994b-417b-9485-525c567fc453 - timeout=0
And as stated earlier, what's timing out isn't the crypttab entry, it's /dev/mapper/home. Add x-systemd.device-timeout=0 to your /etc/fstab for /dev/mapper/home.
07:16:52 root@baboonsony:/home/papio# cat /etc/crypttab | grep -v '#'
home /dev/disk/by-uuid/b3f57f29-994b-417b-9485-525c567fc453
-
07:16:53 root@baboonsony:/home/papio# cat /etc/fstab | grep -v '#'
tmpfs /tmp tmpfs nodev,nosuid,size=8G 0 0
/dev/sda7 / ext4 defaults 0 1
/dev/sda9 none swap defaults 0 0
/dev/mapper/home /home ext4 x-systemd.device-timeout=0,defaults 0 1
also command "journalctl -xb" shows for this related (I think) timeout such info:
Jan 27 07:05:47 baboonsony systemd-cryptsetup[468]: Timed out
Jan 27 07:05:47 baboonsony systemd-cryptsetup[468]: Failed to query password: Timer expired
Jan 27 07:05:47 baboonsony systemd[1]: systemd-cryptsetup@home.service: main process exited, code=exited, status=1/FAILURE
Jan 27 07:05:47 baboonsony systemd-journal[141]: Forwarding to syslog missed 14 messages.
-- Subject: One or more messages could not be forwarded to syslog
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/0027229ca0644181a76c4e92458afa2e
--
-- One or more messages could not be forwarded to the syslog service
-- running side-by-side with journald. This usually indicates that the
-- syslog implementation has not been able to keep up with the speed of
-- messages queued.
Jan 27 07:05:47 baboonsony systemd[1]: Failed to start Cryptography Setup for home.
-- Subject: Unit systemd-cryptsetup@home.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
--
-- Unit systemd-cryptsetup@home.service has failed.
--
-- The result is failed.
Jan 27 07:05:47 baboonsony systemd[1]: Dependency failed for Encrypted Volumes.
-- Subject: Unit cryptsetup.target has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
--
-- Unit cryptsetup.target has failed.
--
-- The result is dependency.
Jan 27 07:05:47 baboonsony systemd[1]: Dependency failed for dev-mapper-home.device.
-- Subject: Unit dev-mapper-home.device has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
--
-- Unit dev-mapper-home.device has failed.
--
-- The result is dependency.
Jan 27 07:05:47 baboonsony systemd[1]: Dependency failed for /home.
-- Subject: Unit home.mount has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
--
-- Unit home.mount has failed.
--
-- The result is dependency.
Jan 27 07:05:47 baboonsony systemd[1]: Dependency failed for Local File Systems.
-- Subject: Unit local-fs.target has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
--
that is why I don't know why it should be in /etc/fstab
but as I am a lamer... ;-)
let me know if more info is required please and thank you for your time
it is not killing issue but annoying at least
and making my system not being KISS
No, this isn't annoying, this is how device dependencies work.
1-first timeout in /etc/crypttab to wait for phasprasse
2-second in /etc/fstab to wait with mounting until it is taken by cryptsetup
and - as you expected - it is working
thank you very much ;-)