X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Fhooks%2Fpartition.DEFAULT;fp=fai%2Fconfig%2Fhooks%2Fpartition.DEFAULT;h=9adaa76ee5babdf1603d5f963bbc085c8388e77c;hp=410b915651aef26b658fce62fc3492c2c173d395;hb=006906dba1cee38c7fce6d09e8637d5d44c94d30;hpb=ceeb4e46d3bb326d01fcc7ed98d94ab0b580eda3 diff --git a/fai/config/hooks/partition.DEFAULT b/fai/config/hooks/partition.DEFAULT index 410b915..9adaa76 100755 --- a/fai/config/hooks/partition.DEFAULT +++ b/fai/config/hooks/partition.DEFAULT @@ -27,7 +27,6 @@ if [[ $EUID != 0 ]]; then fi # for calling outside of FAI without args: -# fai-redep # # source /b/fai/fai-wrapper # - set any appropriate classes with: fai-setclass OPT1... which sets CLASS_OPT1=true... @@ -43,7 +42,7 @@ fi # happen to already be setup. # # mktab: for running outside of fai and generating a crypttab for -# the main root fs in /tmp/fai. Must run with env var, eg export DISTRO=trisquelnabia. +# the main root fs in /tmp/fai. Must run with env var, eg export DISTRO=trisquelaramo. # # Example use in a bootstrap distro: # scp /a/bin/fai/fai/config/{distro-install-common/devbyid,hooks/partition.DEFAULT} root@HOST: @@ -61,9 +60,8 @@ fi # # environment variables: # -# HOSTNAME: if frodo, we exclude 2 devices from the /boot array, which -# the bios does not see. if demohost, we set the luks password to just -# 'x'. +# HOSTNAME: if demohost, we set the luks password to just +# 'x'. Used in various other ways too. # # SPECIAL_DISK: For use outside of fai. A base disk name like # /dev/sdk. If set, we just cryptsetup and partition this one disk then @@ -168,8 +166,6 @@ fi # boot - - ##### end configuration ##### begin function defs @@ -332,6 +328,27 @@ ROOT_PARTITION=\${ROOT_PARTITION:-$first_root_dev} SWAPLIST=\${SWAPLIST:-"${swap_devs[@]}"} EOF + if [[ $HOSTNAME == frodo ]]; then + big_disks=( + ata-Hitachi_HDS722020ALA330_JK1121YAG7SXWS-part1 + ata-Hitachi_HDS722020ALA330_JK1121YAG7SY4S-part1 + ata-Hitachi_HDS723030ALA640_MK0311YHG2WUSA-part1 + ata-ST4000DM000-1F2168_Z300AZ6K-part1 + ata-ST6000DM001-1XY17Z_Z4D2WMZK-part1 + ata-TOSHIBA_MD04ACA500_8539K4TQFS9A-part1 + ata-TOSHIBA_MD04ACA500_85NAK4T2FS9A-part1 + ata-TOSHIBA_MD04ACA500_9551K615FS9A-part1 + ata-TOSHIBA_MD04ACA500_Y5IFK6IJFS9A-part1 + ) + for d in ${big_disks[@]}; do + cat >>/tmp/fai/crypttab <> /tmp/fai/fstab <