[Libguestfs] [PATCH] builder: templates: debian: use single-partition layout

Richard W.M. Jones rjones at redhat.com
Fri Aug 18 09:36:54 UTC 2017


On Tue, Aug 15, 2017 at 12:06:09AM +0200, Florian Klink wrote:
> The previously selected 'atomic' recipe resulted in 2GB swap in a 6GB
> volume. Also, we don't really need the boot partition, so just create a
> partition using the whole disk space.
> ---
>  builder/templates/debian.preseed | 13 ++++++++++++-
>  1 file changed, 12 insertions(+), 1 deletion(-)
> 
> diff --git a/builder/templates/debian.preseed b/builder/templates/debian.preseed
> index b56eb67ff..3cffb3b9b 100644
> --- a/builder/templates/debian.preseed
> +++ b/builder/templates/debian.preseed
> @@ -174,12 +174,23 @@ d-i partman-md/device_remove_md boolean true
>  # And the same goes for the confirmation to write the lvm partitions.
>  d-i partman-lvm/confirm boolean true
>  d-i partman-lvm/confirm_nooverwrite boolean true
> +d-i partman-basicfilesystems/no_swap boolean false
> +
> +d-i partman-auto/expert_recipe string myroot :: 500 10000 1000000 ext4 \
> +	$primary{ } \
> +	$bootable{ } \
> +	method{ format } \
> +	format{ } \
> +	use_filesystem{ } \
> +	filesystem{ ext4 } \
> +	mountpoint{ / } .
>  
>  # You can choose one of the three predefined partitioning recipes:
>  # - atomic: all files in one partition
>  # - home:   separate /home partition
>  # - multi:  separate /home, /var, and /tmp partitions
> -d-i partman-auto/choose_recipe select atomic
> +
> +d-i partman-auto/choose_recipe select myroot
>  
>  # Or provide a recipe of your own...
>  # If you have a way to get a recipe file into the d-i environment, you can

Sorry for the delay, I have been (in fact, still am) on holiday.

I pushed this now.

Thanks,

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW




More information about the Libguestfs mailing list