X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=schrootupdate;fp=schrootupdate;h=a55e2cdf886ecc73ff54da8a83310f9490339881;hb=da085f71e5ae00a9f78ed903be6ae675f66eacfa;hp=8d3d1e9ced18a9e8ba630197e7b94e72baa5472f;hpb=2a1cee2e73d9291dde9af831bbe9e996199b7cbc;p=distro-setup diff --git a/schrootupdate b/schrootupdate index 8d3d1e9..a55e2cd 100755 --- a/schrootupdate +++ b/schrootupdate @@ -23,7 +23,9 @@ if [[ ! $dev ]]; then exit 0 fi mkdir -p /mnt/tmptimer -mount -o subvol=debianbullseye_bootstrap $dev /mnt/tmptimer +if ! mountpoint /mnt/tmptimer &>/dev/null; then + mount -o subvol=debianbullseye_bootstrap $dev /mnt/tmptimer +fi cd /mnt/tmptimer for d in dev proc sys dev/pts; do [[ -d $d ]] @@ -39,3 +41,4 @@ for d in dev/pts dev proc sys; do umount $d fi done +umount /mnt/tmptimer