Skip to content

Commit 358937d

Browse files
committed
Switch to auto policy for questions answers
1 parent 01c9bc5 commit 358937d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

data/yam/agama/auto/template.libsonnet

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ function(bootloader=true,
2424
patterns_to_add='',
2525
patterns_to_remove='',
2626
product='',
27+
questions_policy='user'
2728
registration_code='',
2829
registration_code_ha='',
2930
registration_packagehub=false,
@@ -69,11 +70,12 @@ function(bootloader=true,
6970
[if scripts_post_partitioning != '' then 'postPartitioning']: [ scripts_post_partitioning_lib[x] for x in std.split(scripts_post_partitioning, ',') ],
7071
[if scripts_pre != '' then 'pre']: [ scripts_pre_lib[x] for x in std.split(scripts_pre, ',') ],
7172
},
72-
[if decrypt_password != '' || registration_packagehub || multipath_activate then 'questions']: {
73+
[if decrypt_password != '' || registration_packagehub || multipath_activate || auto_answer then 'questions']: {
74+
[if questions_policy= == 'auto' then 'policy']: auto_answer,
7375
answers: std.prune([
74-
if decrypt_password != '' then answers_lib.questions_decrypt(decrypt_password),
76+
if decrypt_password != '' || questions_policy == 'auto' then answers_lib.questions_decrypt(decrypt_password),
7577
if registration_packagehub then answers_lib.questions_import_gpg(),
76-
if multipath_activate then answers_lib.questions_activate_multipath(),
78+
if multipath_activate || questions_policy == 'auto' then answers_lib.questions_activate_multipath(),
7779
]),
7880
},
7981
[if storage != '' then 'storage']: storage_lib[storage],

0 commit comments

Comments
 (0)