[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: r39563 - in trunk/packages/debian-installer-utils: .



Colin Watson wrote:
> * Add locking to chroot-setup.sh, since people sometimes try to run two
>   parallel instances of apt-install or in-target and that breaks horribly.
> 
> Modified: trunk/packages/debian-installer-utils/chroot-setup.sh
> ==============================================================================
> --- trunk/packages/debian-installer-utils/chroot-setup.sh	(original)
> +++ trunk/packages/debian-installer-utils/chroot-setup.sh	Fri Aug  4 08:43:20 2006
> @@ -6,6 +6,16 @@
>  }
>  
>  chroot_setup () {
> +	if [ -e /var/run/chroot-setup.lock ]; then
> +		cat >&2 <<EOF
> +apt-install or in-target is already running, so you cannot run either of
> +them again until the other instance finishes. You may be able to use
> +'chroot /target ...' instead.
> +EOF
> +		exit 1
> +	fi
> +	touch /var/run/chroot-setup.lock
> +

What creates /var/run in the installer? Wasn't aware we had one..

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: