partman-auto?
What scripts needed hack to get this preseed working?
--clip--
# first disk, /dev/discs/disc0/disc
d-i partman-auto/expert_recipe string disc0 :: 200 512 1024 raid \
$primary{ } $bootable{ } method{ raid1 } device{ md0 }.\
128 200% 200% raid $primary{ } method{ raid1 } device { md1 }.\
6000 10000 300000 raid $primary{ } method{ raid1 } device { md2 }.
# second disk, maybe missing, people can add later
d-i partman-auto/expert_recipe string disc1 :: 200 512 1024 raid \
$primary{ } $bootable{ } method{ raid } device{ md0 }.\
128 200% 200% raid $primary{ } method{ raid1 } device { md1 }.\
6000 10000 300000 raid $primary{ } method{ raid1 } device { md2 }.
# start array
d-i partman-auto/expert_raidstart multiselect md0, md1, md2
# direct swap/filesystem partition creation on md
d-i partman-auto/expert_recipe string md0 :: 200 512 1024 reiserfs\
method{ format } use_filesystem{ }\
filesystem{ reiserfs } mountpoint{ / } mountoptions{ notail }
d-i partman-auto/expert_recipe string md1 :: 128 200% 200% linux-swap \
method{ swap } format{ }
# give name for VG
# d-i lvmcfg/vgcreate_name string system_vg # this exist use it or..?
d-i partman-auto/vg_default_name string system_vg
# do locical volumes in md2, use VG default name
d-i partman-auto/lvmcfg string md2 :: 200 512 1024 tmp method{ format }\
use_filesystem{ } filesystem{ reiserfs } mountpoint{ /tmp }.\
# posible swap place:
# 128 200% 200% linux-swap method{ swap } format{ }.\
200 512 1024 var method{ format } use_filesystem{ }\
filesystem{ reiserfs } mountpoint{ /var } mountoptions{ notail }.\
2000 6000 15000 usr method{ format } use_filesystem{ }\
filesystem{ reiserfs } mountpoint{ /usr }.\
200 20000 55000 home method{ format } use_filesystem{ }\
filesystem{ reiserfs } mountpoint{ /home } mountoptions{ usrquota }.
# and root in lvm should work
# 200 512 1024 root method{ format } use_filesystem{ }\
# filesystem{ reiserfs } mountpoint{ / } mountoptions{ notail }.\
--/clip--
# installer current status:
# this make partitions, but nothing else. No md or lvm yet posible
d-i partman-auto/expert_recipe string raid-lvm :: 200 512 1024 raid \
$primary{ } $bootable{ } method{ raid } . 128 200% 200% raid $primary{ }\
method{ raid $ } . 6000 10000 300000 raid $primary{ } method{ raid } .
I checed source, "perform_recipe", decode_recipe() expand_scheme() seems
to need rewriting. Raid and lvm functions need write from scratch. Am I
right?
Any ideas? There is almost all needed code pices, put they need
someone litle experienced shellcoder than I to do new partman-auto..
I'll want install servers automatically. Current D-I can't do that..
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
**** Eerin Rosenström ****
** Servinmaijantie 12 F 77 **
** 02150 Espoo **
** p. +358 9 4682997 **
**** p.+358 40 5205030 ****
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Reply to: