summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2021-03-11 01:49:39 -0500
committerAndrew Cady <d@cryptonomic.net>2021-03-11 01:49:39 -0500
commit1d34271f07a4d8b5efd052e0dcf59ba85701b9d8 (patch)
tree06aece0d3c547cf8192885ba31e3f0a7ce25b148
parent4874ca889045f291e9a314349285c2fca67c5f00 (diff)
initrd: umount /mnt/* before booting
-rw-r--r--src/initrd/btrfs-create.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/initrd/btrfs-create.sh b/src/initrd/btrfs-create.sh
index cea4c29..894d835 100644
--- a/src/initrd/btrfs-create.sh
+++ b/src/initrd/btrfs-create.sh
@@ -131,6 +131,10 @@ movemounts()
131 131
132samizdat_movemounts() 132samizdat_movemounts()
133{ 133{
134 for m in /mnt/*
135 do
136 ! mountpoint "$m" || umount "$m" || true
137 done
134 local imgfile="$1" mountpoint 138 local imgfile="$1" mountpoint
135 139
136 if [ "$imgfile" ]; then 140 if [ "$imgfile" ]; then