#!/bin/sh # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- # ex: ts=8 sw=4 sts=4 et filetype=sh . /lib/dracut-lib.sh SYSTEMD_RUN='/run/systemd/system' CRYPTSETUP='/usr/lib/systemd/systemd-cryptsetup' TOUT=$(getargs rd.luks.key.tout) if [ ! -z "$TOUT" ]; then mkdir -p "${SYSTEMD_RUN}/luks-auto-key.service.d" cat > "${SYSTEMD_RUN}/luks-auto-key.service.d/drop-in.conf" < "${SYSTEMD_RUN}/systemd-cryptsetup@luks\x2d${_UUID_ESC}.service.d/drop-in.conf" < "${SYSTEMD_RUN}/luks-auto@${_UUID_ESC}.service" <