Projet

Général

Profil

eolebase-partitioning.diff

Daniel Dehennin, 20/05/2011 12:42

Télécharger (8,37 ko)

Voir les différences:

amonecoleng.seed
1 1
# Include common configuration 
2 2
# anchored at /./ in the url in isolinux/text.cfg
3 3
d-i preseed/include string /common.seed
4
d-i preseed/include string /partition.seed
4 5

  
5 6
# Any hostname and domain names assigned from dhcp take precedence over
6 7
# values set here. However, setting the values still prevents the questions
amonng.seed
1 1
# Include common configuration 
2 2
# anchored at /./ in the url in isolinux/text.cfg
3 3
d-i preseed/include string /common.seed
4
d-i preseed/include string /partition.seed
4 5

  
5 6
# Any hostname and domain names assigned from dhcp take precedence over
6 7
# values set here. However, setting the values still prevents the questions
common.seed
84 84
adduser	adduser/homedir-permission	boolean	false
85 85

  
86 86
# ### Partitioning
87
# Avoid USB disks
88
# NU=""; for d in `list-devices disk`; do for u in `list-devices usb-partition`; do echo $u | grep $d > /dev/null 2>&1 || NU="$NU $d" && break; done; done
89
# # If the system has free space you can choose to only partition that space.
90
d-i partman-auto/init_automatically_partition select biggest_free
91

  
92
d-i partman-partitioning/choose_label string msdos
93

  
94 87
# This command is run immediately before the partitioner starts. It may be
95 88
# useful to apply dynamic partitioner preseeding that depends on the state
96 89
# of the disks (which may not be visible when preseed/early_command runs).
......
98 91
d-i partman/early_command string preseed_fetch gen_part_recipe.sh /tmp \
99 92
    && /bin/sh -c /tmp/gen_part_recipe.sh
100 93

  
101
# To install on the first non usb disk in multi-disk installation, use
102
# the following in partman/early_command:
103
#
104
#     NU="$(for d in `list-devices disk`; \
105
#            do \
106
#              for u in `list-devices usb-partition`; \
107
#              do \
108
#                  echo $u | grep $d > /dev/null 2>&1 || echo $d && break; \
109
#              done; \
110
#            done | head -n1)" \
111
#     && debconf-set partman-auto/disk $NU \
112
#     && debconf-set grub-installer/bootdev $NU
113
# partman-auto/disk and grub-installer/bootdev need to be preseed
114

  
115
# # In addition, you'll need to specify the method to use.
116
# # The presently available methods are: "regular", "lvm" and "crypto"
117
d-i partman-auto/method string lvm
118

  
119
# # If one of the disks that are going to be automatically partitioned
120
# # contains an old LVM configuration, the user will normally receive a
121
# # warning. This can be preseeded away...
122
d-i partman-lvm/device_remove_lvm boolean true
123

  
124
# # The same applies to pre-existing software RAID array:
125
d-i partman-md/device_remove_md boolean true
126

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

  
130
# # This makes partman automatically partition without confirmation, provided
131
# # that you told it what to do using one of the methods above.
132
d-i partman/confirm_nooverwrite boolean true
133
d-i partman-lvm/confirm_nooverwrite boolean true
134
d-i partman/confirm_write_new_label boolean true
135
d-i partman/choose_partition select finish
136
d-i partman/confirm boolean true
137

  
138 94
# ### Base system installation
139 95
# # Select the initramfs generator used to generate the initrd for 2.6 kernels.
140 96
#d-i base-installer/kernel/linux/initramfs-generators string yaird
eolebase.recipe
1
500 10000 1000000000 ext4
2
              $lvmok{ }
3
              method{ keep }
4
      .
eolebase.seed
12 12

  
13 13
# Paquets supplémentaires
14 14
d-i pkgsel/include string eolebase-pkg
15

  
16
# # You can choose one of the three predefined partitioning recipes:
17
# # - atomic: all files in one partition
18
# # - home:   separate /home partition
19
# # - multi:  separate /home, /usr, /var, and /tmp partitions
20

  
21
# Use recipe generated by early_command in common.seed
22
d-i partman-auto/choose_recipe select eolebase
gen_part_recipe.sh
16 16

  
17 17
# Copy the common recipe from the preseed directory
18 18
preseed_fetch common.recipe /tmp
19
# Copy the module recipe from the preseed directory
20
preseed_fetch ${MODULE_NAME}.recipe /tmp
19 21

  
20
if [ -z "$MODULE_NAME" ]
21
then
22
    MODULE_NAME=eolebase
23
else
24
    # Copy the module recipe from the preseed directory
25
    preseed_fetch ${MODULE_NAME}.recipe /tmp
26
fi
22
[ -z "$MODULE_NAME" ] && MODULE_NAME=eolebase
27 23

  
28 24
# Create a recipe file usable in partman-auto/choose_recipe
29 25
RECIPE="/lib/partman/recipes/10$MODULE_NAME"
30 26

  
31 27
echo "partman-auto/text/${MODULE_NAME}_scheme :" > ${RECIPE} \
32
    && cat /tmp/common.recipe  >> ${RECIPE}
33
if [ "$MODULE_NAME" != "eolebase" ]
34
then
35
    cat /tmp/${MODULE_NAME}.recipe >> ${RECIPE}
36
fi
28
    && cat /tmp/common.recipe /tmp/${MODULE_NAME}.recipe >> ${RECIPE}
horusng.seed
1 1
# Include common configuration 
2 2
# anchored at /./ in the url in isolinux/text.cfg
3 3
d-i preseed/include string /common.seed
4
d-i preseed/include string /partition.seed
4 5

  
5 6
# Any hostname and domain names assigned from dhcp take precedence over
6 7
# values set here. However, setting the values still prevents the questions
partition.seed
1
d-i partman-partitioning/choose_label string msdos
2

  
3
# # If the system has free space you can choose to only partition that space.
4
d-i partman-auto/init_automatically_partition select biggest_free
5

  
6
# # In addition, you'll need to specify the method to use.
7
# # The presently available methods are: "regular", "lvm" and "crypto"
8
d-i partman-auto/method string lvm
9

  
10
# # If one of the disks that are going to be automatically partitioned
11
# # contains an old LVM configuration, the user will normally receive a
12
# # warning. This can be preseeded away...
13
d-i partman-lvm/device_remove_lvm boolean true
14

  
15
# # The same applies to pre-existing software RAID array:
16
d-i partman-md/device_remove_md boolean true
17

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

  
21
# # This makes partman automatically partition without confirmation, provided
22
# # that you told it what to do using one of the methods above.
23
d-i partman/confirm_nooverwrite boolean true
24
d-i partman-lvm/confirm_nooverwrite boolean true
25
d-i partman/confirm_write_new_label boolean true
26
d-i partman/choose_partition select finish
27
d-i partman/confirm boolean true
scribeng.seed
1 1
# Include common configuration 
2 2
# anchored at /./ in the url in isolinux/text.cfg
3 3
d-i preseed/include string /common.seed
4
d-i preseed/include string /partition.seed
4 5

  
5 6
# Any hostname and domain names assigned from dhcp take precedence over
6 7
# values set here. However, setting the values still prevents the questions
sphynxng.seed
1 1
# Include common configuration 
2 2
# anchored at /./ in the url in isolinux/text.cfg
3 3
d-i preseed/include string /common.seed
4
d-i preseed/include string /partition.seed
4 5

  
5 6
# Any hostname and domain names assigned from dhcp take precedence over
6 7
# values set here. However, setting the values still prevents the questions
zephirng.seed
1 1
# Include common configuration 
2 2
# anchored at /./ in the url in isolinux/text.cfg
3 3
d-i preseed/include string /common.seed
4
d-i preseed/include string /partition.seed
4 5

  
5 6
# Any hostname and domain names assigned from dhcp take precedence over
6 7
# values set here. However, setting the values still prevents the questions