I was reading
https://www.debian.org/releases/stable/i386/apbs04.html.en#preseed-partman
AND
https://anonscm.debian.org/cgit/d-i/debian-installer.git/plain/doc/devel/partman-auto-recipe.txt .


# If the system has free space you can choose to only partition that space.
# This is only honored if partman-auto/method is not set.
d-i partman-auto/init_automatically_partition select biggest_free
d-i partman-auto/disk string /dev/sda

I'm envisioning a preseed.cfg file whose beginning will look like:

# You provide a recipe of your own...
# putting recipe into the preconfiguration file in one
# (logical) line.
partman-auto/text/home_scheme ::        \
300 4000 7000 ext3                      \
        method{ format }                \
        format{ }                       \
        use_filesystem{ }               \
        filesystem{ ext3 }              \
        mountpoint{ / }                 \
        label{ owlett1 }                \
        .                               \
100 10000 -1 ext3                       \
        method{ keep } .


The target hardware has existing partitions which I wish to remain as is. Note that there is no primary nor bootable nor swap partition(s) specified. If there is an existing swap partition I explicitly wish the installer to ignore it (as can be done using expert mode. The partition created with the keep method will be removed after installation is completed. The intention is to then run another install with a similar preseed.cfg file - the relevant change being "owlett1" changed to "owlett2".
Eventually I will use an external recipe file.

Will this work as expected?
Is there additional relevant documentation &/or examples available on the web?

TIA






Reply via email to