diff options
author | Andrew Cady <d@cryptonomic.net> | 2021-03-11 01:49:39 -0500 |
---|---|---|
committer | Andrew Cady <d@cryptonomic.net> | 2021-03-11 01:49:39 -0500 |
commit | 1d34271f07a4d8b5efd052e0dcf59ba85701b9d8 (patch) | |
tree | 06aece0d3c547cf8192885ba31e3f0a7ce25b148 /src | |
parent | 4874ca889045f291e9a314349285c2fca67c5f00 (diff) |
initrd: umount /mnt/* before booting
Diffstat (limited to 'src')
-rw-r--r-- | src/initrd/btrfs-create.sh | 4 |
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 | ||
132 | samizdat_movemounts() | 132 | samizdat_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 |