2

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.

migrated from stackoverflow.com Dec 21 '15 at 18:42

This question came from our site for professional and enthusiast programmers.

0

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.