From b9fc1d49ff1755dce07e6ddb6366d2ab394974ba Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Wed, 15 May 2024 15:34:39 -0700 Subject: [PATCH] proper close /oem in uki after install Signed-off-by: Nianyu Shen --- cloudconfigs/80_stylus_uki.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudconfigs/80_stylus_uki.yaml b/cloudconfigs/80_stylus_uki.yaml index e62c4e1..7984ee6 100644 --- a/cloudconfigs/80_stylus_uki.yaml +++ b/cloudconfigs/80_stylus_uki.yaml @@ -25,5 +25,5 @@ stages: - mkdir -p /oem/opt.bind - cp -rfv /run/initramfs/live/luet /oem/opt.bind/ - cp -rfv /run/initramfs/live/stylus-image.tar /oem/opt.bind/ - - umount /dev/mapper/oem + - if mount | grep /oem >/dev/null; then umount /oem; fi - if [ -e /dev/mapper/oem ]; then cryptsetup close /dev/mapper/oem; fi