I am building a .deb package which will install software to create a RAID array from prexisting system devices. I would like to have a question presented to the user through the templates file, using the multiselect type to choose their devices.

How would I go about referencing an array variable in the templates file?

Template: raid/question4
Title: RAID Devices
Type: multiselect
Default: ${devices[@]}
Description: Select devices to include in RAID array.

1 Answer 1


Found an old thread which answers my question, looks like the proper way to do this is with db_subst: here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.