Unmount and remount
This commit is contained in:
parent
1f5177a44c
commit
15f736beac
|
@ -181,9 +181,11 @@ $SUDO dd if=$DEBIAN_FILE_NAME.img of=$MICROSD_DRIVE
|
||||||
sync
|
sync
|
||||||
|
|
||||||
sleep 5
|
sleep 5
|
||||||
if [ ! -d $MICROSD_MOUNT_POINT/$ROOTFS ]; then
|
if [ -d $MICROSD_MOUNT_POINT/$ROOTFS ]; then
|
||||||
$SUDO mkdir -p $MICROSD_MOUNT_POINT/$ROOTFS
|
umount $MICROSD_MOUNT_POINT/$ROOTFS
|
||||||
|
$SUDO rm $MICROSD_MOUNT_POINT/$ROOTFS
|
||||||
fi
|
fi
|
||||||
|
$SUDO mkdir -p $MICROSD_MOUNT_POINT/$ROOTFS
|
||||||
$SUDO mount ${MICROSD_DRIVE}1 $MICROSD_MOUNT_POINT/$ROOTFS
|
$SUDO mount ${MICROSD_DRIVE}1 $MICROSD_MOUNT_POINT/$ROOTFS
|
||||||
sync
|
sync
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue