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

Re: Bug#757985: kfreebsd: hang with ENOSPC after a few components are loaded



Control: reassign -1 rootskel
Control: affects -1 debian-installer

Steven Chamberlain <steven@pyro.eu.org> (2014-08-21):
> The simple patch for this issue is as follows.  It has been tested now
> on kfreebsd-amd64 and kfreebsd-i386 with varying amounts of available
> RAM.
> 
>   * On kfreebsd, use dynamically-sized tmpfs for:
>     - /var/cache/anna
>     - /var/lib/cdebconf
>     to avoid running out of space in the fixed-size initrd.
>     (Closes: #757985)
> 
> diff --git a/src/sbin/init-kfreebsd b/src/sbin/init-kfreebsd
> index e8ea04d..e10f149 100755
> --- a/src/sbin/init-kfreebsd
> +++ b/src/sbin/init-kfreebsd
> @@ -19,6 +19,8 @@ mount /dev
>  mount /dev/fd
>  mount /proc
>  mount /sys
> +mount -t tmpfs tmpfs /var/cache/anna
> +mount -t tmpfs tmpfs /var/lib/cdebconf
>  ln -s /var/run/log /dev/log
>  
>  # Get all kernel parameters that can be exported as environment variables

For those following at home this is a patch for rootskel.

Thanks, I've applied it and I'm uploading 1.108 in a moment.

Out of curiosity: maybe this could have been done for wheezy in order to
avoid having to tweak the initrd size several times?

KiBi.

Attachment: signature.asc
Description: Digital signature


Reply to: