Unexpected results from custom partitioning scheme - Ubuntu preseed unattended install

Posted by Mark Renouf on Server Fault See other posts from Server Fault or by Mark Renouf
Published on 2010-04-15T16:37:29Z Indexed on 2010/04/15 16:43 UTC
Read the original article Hit count: 596

Filed under:
|
|
|

Hi... I need some help with partman-auto custom recipe in preseed.... it's doing unexpected things, the docs aren't so clear.

This is in my preseed file:

d-i partman-auto/expert_recipe string                     \
  boot-root-var ::                                        \
          1024 100 1024 ext4                               \
                  $primary{ } $bootable{ }                \
                  method{ format } format{ }              \
                  use_filesystem{ } filesystem{ ext4 }    \
                  mountpoint{ /boot }                     \
          .                                               \
          2048  50 4096 ext4                              \
                  method{ format } format{ }              \
                  use_filesystem{ } filesystem{ ext4 }    \
                  mountpoint{ / }                         \
          .                                               \
          4096  25 100000 ext4                            \
                  method{ format } format{ }              \
                  use_filesystem{ } filesystem{ ext4 }    \
                  mountpoint{ /var }                      \
          .                                               \
           256  75 100% linux-swap                        \
                  method{ swap } format{ }                \
          .

Given an 80GB drive. I ended up with these partitions:

/     2GB
/boot 1GB
/var  4GB
swap  72GB

What went wrong? What I want is:

/     2GB
/boot 1GB
/var  72GB
swap  4GB

© Server Fault or respective owner

Related posts about linux

Related posts about partitioning