From 6393cb765e0b6ee5fc57abb4fabaf4b58a7521e1 Mon Sep 17 00:00:00 2001 From: penglei Date: Wed, 17 Aug 2022 12:56:58 +0800 Subject: [PATCH] nixos/boot/stage-1-init: umount /findiso in stage-1 --- nixos/modules/system/boot/stage-1-init.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/system/boot/stage-1-init.sh b/nixos/modules/system/boot/stage-1-init.sh index 337064034ef..994aa0e33cb 100644 --- a/nixos/modules/system/boot/stage-1-init.sh +++ b/nixos/modules/system/boot/stage-1-init.sh @@ -555,6 +555,9 @@ while read -u 3 mountPoint; do umount /tmp-iso rmdir /tmp-iso + if [ -n "$isoPath" ] && [ $fsType = "iso9660" ] && mountpoint -q /findiso; then + umount /findiso + fi continue fi