Skip to content

Commit

Permalink
idaholab#529, in ISO installer, prompt to format other drives for art…
Browse files Browse the repository at this point in the history
…ifact storage rather than just doing it automatically
  • Loading branch information
mmguero committed Aug 14, 2024
1 parent 1fa2364 commit f83e88b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions shared/bin/preseed_late_user_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,38 @@ Description:
Template: malcolm/ssh_password_auth_title
Type: text
Description: SSH Password Authentication
Template: malcolm/format_large_storage
Type: boolean
Default: false
Description:
Format non-OS drive(s) for artifact storage?
Template: malcolm/format_large_storage_title
Type: text
Description: Format Non-OS Drive(s)?
!EOF!

# load template
db_x_loadtemplatefile /tmp/malcolm.template malcolm

# set title
db_settitle malcolm/format_large_storage_title

# prompt
db_input critical malcolm/format_large_storage
db_go

# get answer to $RET
db_get malcolm/format_large_storage

if [ "$RET" = false ]; then
# capture_storage_format file was already created in preseed, remove it
rm -f /etc/capture_storage_format*
fi

echo "malcolm/format_large_storage=$RET" >> /tmp/malcolm.answer

# set title
db_settitle malcolm/disable_ipv6_title

Expand Down

0 comments on commit f83e88b

Please sign in to comment.