diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 08:04:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 08:04:29 +0000 |
commit | 409ea80402885dd937c6c37e4648d2afb7500414 (patch) | |
tree | af4ae653b1affe4e7190dd3854b2e2b029d71a36 /debian/tests/cryptroot-lvm.d/postinst | |
parent | Adding upstream version 2:2.6.1. (diff) | |
download | cryptsetup-409ea80402885dd937c6c37e4648d2afb7500414.tar.xz cryptsetup-409ea80402885dd937c6c37e4648d2afb7500414.zip |
Adding debian version 2:2.6.1-6.debian/2%2.6.1-6
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/cryptroot-lvm.d/postinst')
-rw-r--r-- | debian/tests/cryptroot-lvm.d/postinst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/tests/cryptroot-lvm.d/postinst b/debian/tests/cryptroot-lvm.d/postinst new file mode 100644 index 0000000..b9ffe35 --- /dev/null +++ b/debian/tests/cryptroot-lvm.d/postinst @@ -0,0 +1,17 @@ +mkdir /etc/systemd/system/systemd-suspend.service.d +cat >/etc/systemd/system/systemd-suspend.service.d/zz-cryptsetup-suspend-mock.conf <<-EOF + # override the command and don't call openvt(1) here since VT8 isn't + # available from the mocking logic -- we use /dev/console instead + + [Service] + StandardInput=tty + StandardOutput=inherit + StandardError=inherit + TTYPath=/dev/console + TTYReset=yes + + ExecStart= + ExecStart=/lib/cryptsetup/scripts/suspend/cryptsetup-suspend-wrapper +EOF + +# vim: set filetype=sh : |