X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=7fff972e5cf37bdfc923d6a0ea4f50166b62a1ec;hp=a4faa87343f3e5d1462aeb782a5b109a246a8d73;hb=86a6099d7d3cb82df7101b1611700134f633b337;hpb=0e4cbb69e71cf942fab3842c4b70c981e80148be diff --git a/autoconfig.functions b/autoconfig.functions index a4faa87..7fff972 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -357,8 +357,9 @@ config_hostname(){ if checkbootparam 'hostname' ; then HOSTNAME="$(getbootparam 'hostname' 2>>$DEBUG)" if [ -z "$HOSTNAME" ] && [ -x /usr/bin/random-hostname ] ; then - einfo "Generating random hostname as no hostname was specified" + einfo "Generating random hostname as no hostname was specified." HOSTNAME="$(/usr/bin/random-hostname)" + eend $? fi einfo "Setting hostname to $HOSTNAME as requested." grml-hostname $HOSTNAME >>$DEBUG ; RC=$? @@ -2030,6 +2031,7 @@ fi # {{{ /cdrom/.*-options config_debs(){ if checkbootparam 'debs' ; then + iszsh && setopt localoptions shwordsplit DEBS="$(getbootparam 'debs' 2>>$DEBUG)" if ! echo $DEBS | grep -q '/'; then # backwards compatibility: if no path is given get debs from debs/ @@ -2427,7 +2429,7 @@ config_lvm(){ # {{{ debnet: setup network based on an existing one found on a partition config_debnet(){ if checkbootparam 'debnet' ; then - iszsh && setopt shwordsplit + iszsh && setopt localoptions shwordsplit DEVICES="$(< /proc/partitions tail -n +3 | awk '{print "/dev/"$4}' | tr "\n" " ")" DEVICES="$DEVICES $(ls /dev/mapper/*)" FOUND_DEBNET=""