X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=ed2f629ada76310c1337d1b7160f9f2da4e21501;hp=e2dbc6aa4a5261dcf9f08adc4b76412096b3ee77;hb=2f71bdb77c2311f68c35074ff1f736ccaff2ed42;hpb=14f208efcbfb7503c98d7a9441ad121510f181ec diff --git a/grml-debootstrap b/grml-debootstrap index e2dbc6a..ed2f629 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -307,11 +307,15 @@ grubdevice() { config_swraid_setup() { TMPFILE=$(mktemp) -RAIDLEVEL=$(dialog --stdout --title "$PN" --default-item raid1 \ - --menu "Which RAID level do you want to use?" 0 0 0 \ - raid1 "Software RAID level 1" \ - raid5 "Software RAID level 5") -[ $? -eq 0 ] || bailout 20 + +# Currently we support only raid1: +RAIDLEVEL='raid1' + +#RAIDLEVEL=$(dialog --stdout --title "$PN" --default-item raid1 \ +# --menu "Which RAID level do you want to use?" 0 0 0 \ +# raid1 "Software RAID level 1" \ +# raid5 "Software RAID level 5") +#[ $? -eq 0 ] || bailout 20 MD_LIST=$(for i in $(seq 0 9) ; do awk '{print $4}' /proc/partitions | grep -q md$i || \ @@ -376,7 +380,7 @@ prompt_for_swraid() if dialog --stdout --title "$PN" \ --defaultno --yesno "Do you want to configure Software RAID? -Please notice that currently only RAID levels 1 and 5 are supported by ${PN}. Configuration will take place using mdadm." 0 0 ; then +Please notice that only RAID level 1 is supported by ${PN} currently. Configuration will take place using mdadm." 0 0 ; then config_swraid_setup fi }