Skip to content

Instantly share code, notes, and snippets.

@lorin
Last active May 8, 2024 13:43
Show Gist options
  • Save lorin/5140029 to your computer and use it in GitHub Desktop.
Save lorin/5140029 to your computer and use it in GitHub Desktop.

Revisions

  1. lorin revised this gist Mar 14, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion preseed-fragment.seed
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,7 @@ d-i partman-lvm/confirm_nooverwrite boolean true
    # 2. Boot partition: 250 MB
    # 2. LVM, with the following logical volumes
    # - Root partition: 250 GB (256000 MB), ext4.
    # - Swap: 100% RAM of RAM
    # - Swap: 100% of RAM
    # - Data partition: remaining space, XFS
    d-i partman-auto/expert_recipe string \
    boot-root :: \
  2. lorin revised this gist Mar 14, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion preseed-fragment.seed
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # User LVM for partitioning
    # Use LVM for partitioning
    d-i partman-auto/method string lvm

    # If one of the disks that are going to be automatically partitioned
  3. lorin renamed this gist Mar 12, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. lorin created this gist Mar 12, 2013.
    57 changes: 57 additions & 0 deletions preseed-fragment.cfg
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    # User LVM for partitioning
    d-i partman-auto/method string lvm

    # If one of the disks that are going to be automatically partitioned
    # contains an old LVM configuration, the user will normally receive a
    # warning. Preseed this away
    d-i partman-lvm/device_remove_lvm boolean true

    # And the same goes for the confirmation to write the lvm partitions.
    d-i partman-lvm/confirm boolean true

    # Really, please don't prompt me!
    d-i partman-lvm/confirm_nooverwrite boolean true

    # partitioning
    # Physical partitions:
    # 1. BIOS boot partition: 1 MB See https://wiki.archlinux.org/index.php/GRUB2#GUID_Partition_Table_.28GPT.29_specific_instructions
    # 2. Boot partition: 250 MB
    # 2. LVM, with the following logical volumes
    # - Root partition: 250 GB (256000 MB), ext4.
    # - Swap: 100% RAM of RAM
    # - Data partition: remaining space, XFS
    d-i partman-auto/expert_recipe string \
    boot-root :: \
    1 1 1 free method{ biosgrub } . \
    250 250 250 ext2 \
    $primary{ } $bootable{ } \
    method{ format } format{ } \
    use_filesystem{ } filesystem{ ext2 } \
    mountpoint{ /boot } \
    . \
    100% 2048 100% linux-swap \
    lv_name{ swap } \
    method{ swap } format{ } \
    $lvmok{ } \
    . \
    256000 256000 256000 ext4 \
    lv_name{ root } \
    method{ lvm } format{ } \
    use_filesystem{ } filesystem{ ext4 } \
    mountpoint{ / } \
    $lvmok{ } \
    . \
    1024 1024 -1 xfs \
    lv_name{ data } \
    method{ lvm } format{ } \
    use_filesystem{ } filesystem{ xfs } \
    mountpoint{ /data } \
    $lvmok{ } \
    .

    # This makes partman automatically partition without confirmation, provided
    # that you told it what to do using one of the methods above.
    d-i partman-partitioning/confirm_write_new_label boolean true
    d-i partman/choose_partition select finish
    d-i partman/confirm boolean true
    d-i partman/confirm_nooverwrite boolean true