Here's a really simple hack for your preseed.txt file:
1. Comment out the partman_auto/disk directive.
2: Add:
d-i partman/early_command string if [ -f "/sys/module/cciss/version" ]; then debconf-set partman-auto/disk /dev/cciss/c0d0 ; else debconf-set partman-auto/disk /dev/sda ; fi
I had started towards creating my own udeb, yada yada. Maybe it would have made for a more interesting blog post but my last three working days have been filled with many curse words directed at HP and Ubiquity (d-i). This just works.
Note: the Kernel kids are pushing for the hpsa driver over the cciss driver. I'm all for it, but this means that detecting /dev/cciss/* devices will become a thing of the past. It also means that dirty hacks like the one above may not work in the future. Maybe it won't matter (/sys/module/cciss/version won't exist) or maybe it will. I'll cross that bridge when I get there.
0 comments:
Post a Comment