Project

General

Profile

Actions

Feature #637

closed

Ruby variable on LVM configuration for preseed files

Added by Goa Cid about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Unattended installations
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I'd like to be able to define in my LVM configuration file :

d-i partman-auto/disk string /dev/<%= @host.params["dev_disk"] >
d-i partman-auto/method string lvm
d-i partman-auto-lvm/new_vg_name string vg-<
= @host.name >
d-i partman-lvm/vgcreate string vg-<
= @host.name >
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto/expert_recipe string \
my-recipe :: \
100 100 100 ext3 \
$primary{ } $bootable{ } \
label{ boot } \
use_filesystem{ } filesystem{ ext4 } \
method{ format } format{ } \
mountpoint{ /boot } \
. \
20480 20480 1000000000 lvm \
$primary{ } \
$default_ignore{ } \
method{ lvm } \
vg_name{ vg-<
= @host.name %> } \
.

But the variable aren't interpreted. I understand why when looking at the preseed template, but I'm sur their is a way to make it work

Actions #1

Updated by Ohad Levy about 13 years ago

  • Category changed from Dashboard to Unattended installations

You are correct, this is because it does not get evaluated rather treated as text.

one ugly option until we'll resolve this issue would be to replace that code with a snippet, which will get evaluated, and simply remove the reference to disk layout.

Actions #2

Updated by Goa Cid about 13 years ago

Ohad Levy wrote:

You are correct, this is because it does not get evaluated rather treated as text.

one ugly option until we'll resolve this issue would be to replace that code with a snippet, which will get evaluated, and simply remove the reference to disk layout.

Thanks for your reply (really fast). I'm not familiar yet with snippet, but I will take some time to work on it. This feature is really important when working on virtual machine.

Actions #3

Updated by Ohad Levy about 13 years ago

Goa Cid wrote:

Ohad Levy wrote:

You are correct, this is because it does not get evaluated rather treated as text.

one ugly option until we'll resolve this issue would be to replace that code with a snippet, which will get evaluated, and simply remove the reference to disk layout.

Thanks for your reply (really fast). I'm not familiar yet with snippet, but I will take some time to work on it. This feature is really important when working on virtual machine.

You might want to look at the latest development version, as it has many new features regarding provisioning.

you can create your own deb packages using rake pkg:deb

Actions #4

Updated by Goa Cid about 13 years ago

Ok, I let you close the ticket :)
Thanks for your help

Actions #5

Updated by Goa Cid about 13 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF