Browse Source

added $mnt/boot/efi to unmount

Toastie 1 year ago
parent
commit
8e4769bebd
1 changed files with 8 additions and 8 deletions
  1. 8 8
      bootstrap-bookworm.sh

+ 8 - 8
bootstrap-bookworm.sh

@@ -306,15 +306,15 @@ fi
 
 unmount(){
 # Unmount if mounted
-! mountpoint -q $mnt/proc    || umount $mnt/proc
-! mountpoint -q $mnt/sys     || umount $mnt/sys
-! mountpoint -q $mnt/dev/pts || umount $mnt/dev/pts
-! mountpoint -q $mnt/dev     || umount $mnt/dev
-! mountpoint -q $mnt/root    || umount $mnt/root
-! mountpoint -q $disk0       || umount $disk0
-! mountpoint -q $disk1       || umount $disk1
+! mountpoint -q $mnt/proc     || umount $mnt/proc
+! mountpoint -q $mnt/sys      || umount $mnt/sys
+! mountpoint -q $mnt/dev/pts  || umount $mnt/dev/pts
+! mountpoint -q $mnt/dev      || umount $mnt/dev
+! mountpoint -q $mnt/boot/efi || umount $mnt/boot/efi
+! mountpoint -q $mnt          || umount $mnt
 # Delete mount-point if empty and not mounted
-[ -z "$(ls -A /mnt/)" ] &&  ! mountpoint -q $mnt  && rm -R $mnt
+[ -z "$(ls -A $mnt)"          ] &&  ! mountpoint -q $mnt           && rm -R $mnt
+[ -z "$(ls -A $mnt/boot/efi)" ] &&  ! mountpoint -q $mnt/boot/efi  && rm -R $mnt/boot/efi
 }