summaryrefslogtreecommitdiffstats
path: root/debian/tests/cryptroot-lvm.d/postinst
blob: b9ffe35f97415523353ab5c657ffb5a1df1e9f2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 :