From: Guillaume Pellerin Date: Mon, 29 Jan 2024 13:34:41 +0000 (+0100) Subject: fix umount X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=938a517677186659aaf615fc7b9ae913ee336372;p=clone-me.git fix umount --- diff --git a/tc_clone_nuc_nv_efi.sh b/tc_clone_nuc_nv_efi.sh index 57c441f..2b56b85 100755 --- a/tc_clone_nuc_nv_efi.sh +++ b/tc_clone_nuc_nv_efi.sh @@ -26,15 +26,26 @@ do esac done +# UMOUNT +DIR=$CLONE/home +if [ d $DIR ]; then + umount $DIR +fi +DIR=$CLONE/var +if [ d $DIR ]; then + umount $DIR +fi +DIR=$CLONE/boot/efi +if [ d $DIR ]; then + umount $DIR +fi + + CLONE=/mnt/$ID if [ ! -d $CLONE ]; then mkdir $CLONE fi -umount /dev/$HOME_PART $$CLONE/home -umount /dev/$VAR_PART $CLONE/var -umount /dev/$ROOT_PART $CLONE -umount /dev/$EFI_PART if [ $PARTITIONS ]; then sfdisk /dev/$DISK < $PARTITIONS