Re: Partman recipe
Ok here is what I did.
I wrote the following script (thanks Free Ekanayaka for your sources):
#!/bin/sh
set -e
#
# Choice of the right partman-recipe
#
# Partition that will be mounted on /home
HOME=/dev/discs/disc0/part6
# Where to mount the partition
MNT=/tmp/mnt
# Path of the partman-recipe
RECIPE=/tmp/partman-recipe
RECIPE_KEEP=/cdrom/wedux-extra/partman-recipe-keep
RECIPE_FORMAT=/cdrom/wedux-extra/partman-recipe-format
depmod
modprobe jbd
modprobe ext3
mkdir -p $MNT
if mount $HOME $MNT; then
cp $RECIPE_KEEP $RECIPE
umount $MNT
else
cp $RECIPE_FORMAT $RECIPE
fi
I tried using a preseed file that contains the following fields:
d-i partman-auto/expert_recipe_file string /tmp/partman-recipe
d-i preseed/early_command string sh
/cdrom/wedux-extra/partman-auto-recipe.sh (the script above)
Unfortunately, this doesn't work. The early-command is run too early, and
the modules ext3 and jbd fail to load.
So do you think there is a way to run this script right before partman
starts (so using preseeding only) or do I have to create a udeb ?
Thanks a lot for your answers.
--
View this message in context: http://www.nabble.com/Partman-recipe-tf1824269.html#a5064225
Sent from the debian-custom forum at Nabble.com.
Reply to: