### Running custom commands during the installation ###
# This first command is run as early as possible, just after
# preseeding is read.
#d-i preseed/early_command string anna-install some-udeb
d-i preseed/early_command string \
wget http://1.1.1.1/ubuntu1404/support/diskrecipe1 -O /tmp/diskrecipe1 ; \
wget http://1.1.1.1/ubuntu1404/support/diskrecipe2 -O /tmp/diskrecipe2 ; \
if [ "$(dmesg | grep -q ModelXYZ && echo $?)" = 0 ]; then debconf-set-selections /tmp/diskrecipe1; fi ; \
if [ "$(dmesg | grep -q ModelXYZ && echo $?)" = 0 ]; then debconf-set-selections /tmp/diskrecipe1; fi