1
0
mirror of https://github.com/kairos-io/kcrypt.git synced 2025-05-14 11:19:50 +00:00
kcrypt/dracut/29kcrypt/mount-local.sh
2022-10-03 11:03:48 +02:00

16 lines
270 B
Bash
Executable File

#!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
OEM=$(blkid -L COS_OEM)
if [ "$OEM" != "" ]; then
mkdir /oem
mount $OEM /oem
fi
kcrypt unlock-all
if [ "$OEM" != "" ]; then
umount /oem
fi