From 9ecd7e9591b83e09b75025dd663a07127a672ba3 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Thu, 10 Sep 2009 15:07:20 +0000 Subject: Fix, should allow "/" in automnt_dir variable. Fixing call of ntpd for Scientific Linux. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3149 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/stage3-stuff/bin/servconfig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'initramfs/stage3-stuff/bin/servconfig') diff --git a/initramfs/stage3-stuff/bin/servconfig b/initramfs/stage3-stuff/bin/servconfig index dcadc70a..c88c58ce 100755 --- a/initramfs/stage3-stuff/bin/servconfig +++ b/initramfs/stage3-stuff/bin/servconfig @@ -187,12 +187,13 @@ auto.master." >/mnt/etc/auto.misc strinstr "/" ${automnt_dir} && error "$scfg_erratpld" nonfatal amserv=$(uri_token $automnt_src server) ampath=$(uri_token $automnt_src path) - echo -e "/${automnt_dir}\t/etc/auto.${automnt_dir}\n" \ + amdirn=$(echo ${automnt_dir}|sed "s,/,_,g") + echo -e "/${automnt_dir}\t/etc/auto.${amdirn}\n" \ >> /mnt/etc/auto.master - echo -e "# /etc/auto.${automnt_dir} created by $0:\n" \ + echo -e "# /etc/auto.${amdirn} created by $0:\n" \ > /mnt/etc/auto.${automnt_dir} echo -e "*\t-rsize=32768,wsize=32768,rw\t${amserv}:${ampath}/&" \ - >> /mnt/etc/auto.${automnt_dir} + >> /mnt/etc/auto.${amdirn} # no tempfs needed if automounter operates on /home [ "${automnt_dir}" = "home" ] && umount -t tmpfs /mnt/home 2>/dev/null # portmapper is needed for remote NFS sources and local nfs directories -- cgit v1.2.3-55-g7522